Код: Выделить всё
apiVersion: executor.testkube.io/v1
kind: Executor
metadata:
name: python-executor
namespace: testkube
spec:
executor_type: job
image: "python-runner:proto"
command: ["/bin/runner"]
args: ["{{ .TestContent }}"]
types:
- python/test
Код: Выделить всё
FROM python:3.10.1
RUN pip install python-runner
RUN ln -s /usr/local/lib/python3.10/dist-packages/python-runner /bin/runner
ENTRYPOINT ["/bin/runner"]
Код: Выделить всё
testkube create test --name cluster-scan --file ./pykube --type "python/test"
Когда я запускал тест с помощью: testkube run test groups -scan -f, я получил следующую ошибку -
Код: Выделить всё
Context: (2.1.71) Namespace: testkube
----------------------------------------
Type: python/test
Name: cluster-scan
Execution ID: 674ee94d3effb2a2995af122
Execution name: cluster-scan-12
Execution number: 12
Status: running
Start time: 2024-12-03 11:19:41.696673962 +0000 UTC
End time: 0001-01-01 00:00:00 +0000 UTC
Duration:
Getting logs from test job 674ee94d3effb2a2995af122
⨯
.
Test execution failed:
⨯ test container message: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/bin/runner": stat /bin/runner: no such file or directory: unknown reason: ContainerCannotRun
exit code: 127
wrong log type was found as last log: ✅ Initialization successful
Test URI: /tests/cluster-scan
Test Execution URI: /tests/cluster-scan/executions/674ee94d3effb2a2995af122
$ Watch test execution until complete \
kubectl testkube watch execution cluster-scan-12
$ Use following command to get test execution details \
kubectl testkube get execution cluster-scan-12
executions contain failed on errors (error: )
Подробнее здесь: https://stackoverflow.com/questions/792 ... 8s-cluster
Мобильная версия