Skip to content

Commit

Permalink
#294 - Update sq2cql to version v0.3.0
Browse files Browse the repository at this point in the history
- test
  • Loading branch information
michael-82 committed Jun 12, 2024
1 parent 60fb09a commit 4931b52
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/integration-test/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ services:
- "feasibility-auth-db:/var/lib/postgresql/data"

auth:
image: quay.io/keycloak/keycloak:25.0
command: ["start-dev", "--import-realm"]
image: keycloak/keycloak:21.1
command: ["start", "--import-realm"]
restart: unless-stopped
environment:
KC_DB: "postgres"
Expand Down
4 changes: 4 additions & 0 deletions .github/scripts/post-test-query.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ access_token="$(curl -s --request POST \
--data password=testpassword \
--data scope=openid | jq '.access_token' | tr -d '"')"

echo "access token is $access_token"

response=$(curl -s -i \
--url http://localhost:8091/api/v3/query \
--header "Authorization: Bearer $access_token" \
Expand Down Expand Up @@ -48,6 +50,8 @@ response=$(curl -s -i \
}
')

echo "response is $response"

result_location=$(echo "$response" | grep -i location | awk '{print $2}')
sleep 5
nr_of_pats=$(curl -v \
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/wait-for-url.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ eclipsed() {
}

# wait at maximum 240 seconds
while [[ ($(eclipsed) -lt 240) && ("$(curl -L -s -o /dev/null -w '%{response_code}' "$URL")" != "200") ]]; do
while [[ ($(eclipsed) -lt 240) && ("$(curl -s -o /dev/null -w '%{response_code}' "$URL")" != "200") ]]; do
sleep 2
done

Expand Down

0 comments on commit 4931b52

Please sign in to comment.