test: more time

This commit is contained in:
Naramsim 2024-06-03 06:46:28 +02:00
parent c850b6e118
commit 5887254da9

View file

@ -98,7 +98,7 @@ jobs:
bash Resources/scripts/wait.sh http://localhost:8001/api/v1/namespaces/pokeapi/services/pokeapi/proxy/api/v2/pal-park-area/5/ bash Resources/scripts/wait.sh http://localhost:8001/api/v1/namespaces/pokeapi/services/pokeapi/proxy/api/v2/pal-park-area/5/
- name: K8s wait for job - name: K8s wait for job
run: | run: |
kubectl wait --timeout=1020s --for=condition=complete job/load-graphql kubectl wait --timeout=10020s --for=condition=complete job/load-graphql
last_command=$(kubectl get job -o jsonpath='{.status.succeeded}' load-graphql) last_command=$(kubectl get job -o jsonpath='{.status.succeeded}' load-graphql)
test "$last_command" -eq 1 test "$last_command" -eq 1
kubectl logs jobs load-graphql kubectl logs jobs load-graphql