test: debug

This commit is contained in:
Naramsim 2024-06-03 09:43:39 +02:00
parent 7c868a7556
commit b1aa755523
2 changed files with 3 additions and 5 deletions

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/
- name: K8s wait for job
run: |
kubectl wait --timeout=600s --for=condition=complete job/load-graphql
kubectl wait --timeout=6000s --for=condition=complete job/load-graphql
last_command=$(kubectl get job -o jsonpath='{.status.succeeded}' load-graphql)
test "$last_command" -eq 1
- name: Get GQL output

View file

@ -18,9 +18,7 @@ spec:
done;
containers:
- name: load-graphql
image: curlimages/curl:latest
securityContext:
runAsUser: 0
image: debian:buster
env:
- name: HASURA_GRAPHQL_ADMIN_SECRET
valueFrom:
@ -34,7 +32,7 @@ spec:
key: POKEAPI_CHECKOUT_REF
command: ["sh", "-c"]
args:
- apk update && apk add git &&
- apt-get update && apt-get install curl git &&
curl -L https://github.com/hasura/graphql-engine/raw/stable/cli/get.sh | VERSION=v2.36.4 sh &&
cd /tmp &&
git clone https://github.com/PokeAPI/pokeapi.git &&