diff --git a/.env b/.env index 010041896a..d98d12a90f 100644 --- a/.env +++ b/.env @@ -116,3 +116,6 @@ export SVIX_CALLBACK_URL=http://bats-tests:8080/webhook/ export KRATOS_PUBLIC_API="http://localhost:4433" export KRATOS_ADMIN_API="http://localhost:4434" + +export HYDRA_PUBLIC_API="http://localhost:4444" +export HYDRA_ADMIN_API="http://localhost:4445" diff --git a/.env.ci b/.env.ci index 1db06ab061..3d026eb668 100644 --- a/.env.ci +++ b/.env.ci @@ -69,4 +69,7 @@ SVIX_CALLBACK_URL=${SVIX_CALLBACK_URL} BRIA_API_KEY=${BRIA_API_KEY} UNSECURE_DEFAULT_LOGIN_CODE=${UNSECURE_DEFAULT_LOGIN_CODE} -UNSECURE_IP_FROM_REQUEST_OBJECT=${UNSECURE_IP_FROM_REQUEST_OBJECT} \ No newline at end of file +UNSECURE_IP_FROM_REQUEST_OBJECT=${UNSECURE_IP_FROM_REQUEST_OBJECT} + +HYDRA_PUBLIC_API="http://hydra:4444" +HYDRA_ADMIN_API="http://hydra:4445" \ No newline at end of file diff --git a/test/bats/admin.bats b/test/bats/admin.bats index b6a8f33e29..244403868f 100644 --- a/test/bats/admin.bats +++ b/test/bats/admin.bats @@ -51,7 +51,7 @@ gql_admin_file() { @test "admin: perform admin queries/mutations" { - client=$(curl -L -s -X POST http://127.0.0.1:4445/admin/clients \ + client=$(curl -L -s -X POST $HYDRA_ADMIN_API/admin/clients \ -H 'Content-Type: application/json' \ -d '{ "grant_types": ["client_credentials"], @@ -62,7 +62,7 @@ gql_admin_file() { client_secret=$(echo $client | jq -r '.client_secret') # get token from client_id and client_secret - admin_token=$(curl -s -X POST http://127.0.0.1:4444/oauth2/token \ + admin_token=$(curl -s -X POST $HYDRA_PUBLIC_API/oauth2/token \ -H 'Content-Type: application/x-www-form-urlencoded' \ -u "$client_id:$client_secret" \ -d "grant_type=client_credentials&scope=editor" | jq -r '.access_token'