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 ef2440b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/scripts/post-test-query.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -e

access_token="$(curl -s --request POST \
access_token="$(curl -s -L --request POST \
--url http://localhost:8083/auth/realms/feasibility/protocol/openid-connect/token \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data grant_type=password \
Expand All @@ -9,6 +9,8 @@ access_token="$(curl -s --request POST \
--data password=testpassword \
--data scope=openid | jq '.access_token' | tr -d '"')"

echo "$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"

result_location=$(echo "$response" | grep -i location | awk '{print $2}')
sleep 5
nr_of_pats=$(curl -v \
Expand Down

0 comments on commit ef2440b

Please sign in to comment.