All checks were successful
/ Verify (pull_request) Successful in 1m12s
Important: there are changes here to adapt the tests and the Keycloak test realm that are incompatible with the changes in #29. Ultimately, the changes in #29 need to be applied over this.
27 lines
984 B
Bash
Executable file
27 lines
984 B
Bash
Executable file
#!/bin/sh
|
|
|
|
#
|
|
# Use curl to run a test export of Dooris ssh keys
|
|
#
|
|
|
|
set -e
|
|
|
|
ACCESS_TOKEN="$(curl -s --request POST \
|
|
--url http://localhost:8080/realms/testing/protocol/openid-connect/token \
|
|
--header 'content-type: application/x-www-form-urlencoded' \
|
|
--data scope=openid \
|
|
--data client_id=export-mailing-list-addresses \
|
|
--data client_secret=export-mailing-list-addresses-secret \
|
|
--data grant_type=client_credentials | jq --raw-output .access_token -)"
|
|
|
|
echo "chaos@"
|
|
curl -s --request GET \
|
|
--url http://localhost:8080/realms/testing/attribute-endpoints-provider/export/mailing-list-addresses-chaos \
|
|
--header "authorization: Bearer ${ACCESS_TOKEN}" \
|
|
--header "content-type: application/json" | jq . -
|
|
|
|
echo "intern@"
|
|
curl -s --request GET \
|
|
--url http://localhost:8080/realms/testing/attribute-endpoints-provider/export/mailing-list-addresses-intern \
|
|
--header "authorization: Bearer ${ACCESS_TOKEN}" \
|
|
--header "content-type: application/json" | jq . -
|