diff --git a/tests/python/test-specs.yml b/tests/python/test-specs.yml index f31c564..0210dfa 100644 --- a/tests/python/test-specs.yml +++ b/tests/python/test-specs.yml @@ -6,6 +6,7 @@ scenarios: - helm install test-python ./chart/ --set=scenarioTag="${SCENARIO_TAG}" -n default - sleep 5 - kubectl wait --for=condition=Ready -n default --all pods --timeout=2m + - command -v jq - kubectl get pods --output json | jq '.items[].spec.initContainers | select( . != null )[].name' | grep -q "newrelic-instrumentation-" || $(echo "Operator failed to attach initcontainer." >&2; exit 1) - curl --fail-with-body $(minikube service test-app-python-service --url -n default) tests: