From 1b607c182409ab2bc7b8884af2fdc9a7dfd430da Mon Sep 17 00:00:00 2001 From: Tim Pansino Date: Thu, 23 Jan 2025 15:18:04 -0800 Subject: [PATCH] TEMP - ensure JQ is available --- tests/python/test-specs.yml | 1 + 1 file changed, 1 insertion(+) 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: