File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -182,6 +182,17 @@ jobs:
182182 done
183183 kubectl wait --for=condition=Ready pod/${POD} -n ${NS} --timeout=5m || true
184184
185+ - name : 🩹 Patch /etc/hosts in test pod with Vertica pod entries
186+ run : |
187+ echo "Adding Vertica pod entries to /etc/hosts in test pod..."
188+ POD=test-runner
189+ NS=my-verticadb-operator
190+ for p in $(kubectl -n $NS get pods -l app.kubernetes.io/instance=verticadb-sample -o jsonpath='{.items[*].metadata.name}'); do
191+ IP=$(kubectl -n $NS get pod $p -o jsonpath='{.status.podIP}')
192+ echo "$IP $p.$NS.svc.cluster.local $p" | kubectl -n $NS exec -i $POD -- tee -a /etc/hosts >/dev/null
193+ echo "✔ Added $p -> $IP"
194+ done
195+
185196 # ---------------------------
186197 # Keycloak + OAuth setup
187198 # ---------------------------
@@ -357,7 +368,6 @@ jobs:
357368 cd /workspace
358369 export VP_TEST_OAUTH_ACCESS_TOKEN='${TOKEN}'
359370 export VP_TEST_HOST='verticadb-sample-defaultsubcluster-0.my-verticadb-operator.svc.cluster.local'
360-
361371 export VP_TEST_PORT=5433
362372 export VP_TEST_DATABASE='vdb'
363373 export VP_TEST_OAUTH_USER='oauth_user'
@@ -378,8 +388,7 @@ jobs:
378388 echo '✅ Token introspection successful (active=true)'
379389 else
380390 echo '❌ Token introspection failed:'
381- echo \"\$INTROSPECT_OUTPUT\"
382- exit 1
391+ echo \"\$INTROSPECT_OUTPUT\"; exit 1
383392 fi
384393 echo '🚦 Running pytest suite via tox...'
385394 tox -e py
You can’t perform that action at this time.
0 commit comments