Skip to content

Commit c05beef

Browse files
committed
revert "try using x-headers"
1 parent 4e64db2 commit c05beef

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

run/idp-sql/test/e2e_test_setup.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ steps:
5858
- |
5959
./test/retry.sh "gcloud run deploy ${_SERVICE} \
6060
--image gcr.io/${PROJECT_ID}/${_SERVICE}:${_VERSION} \
61-
--no-allow-unauthenticated \
61+
--allow-unauthenticated \
6262
--region ${_REGION} \
6363
--service-account ${_SERVICE_ACCOUNT} \
6464
--add-cloudsql-instances ${_CLOUD_SQL_CONNECTION_NAME} \

run/idp-sql/test/system.test.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,6 @@ describe('System Tests', () => {
5757
throw Error('"IDP_KEY" env var not found.');
5858
}
5959

60-
// Get ID token for the authentication part
61-
const {ID_TOKEN} = process.env;
62-
if (!ID_TOKEN) {
63-
throw Error('"ID_TOKEN" env var not found.');
64-
}
65-
6660
let BASE_URL, CUSTOM_TOKEN;
6761
before(async () => {
6862
// Deploy service using Cloud Build
@@ -152,8 +146,7 @@ describe('System Tests', () => {
152146
method: 'POST',
153147
form: {team: 'DOGS'},
154148
headers: {
155-
Authorization: `Bearer ${CUSTOM_TOKEN.trim()}`,
156-
"X-Serverless-Authorization": `Bearer ${ID_TOKEN}`
149+
Authorization: `Bearer ${CUSTOM_TOKEN.trim()}`
157150
},
158151
retry: {
159152
limit: 5,
@@ -178,8 +171,7 @@ describe('System Tests', () => {
178171
method: 'POST',
179172
form: {team: 'DOGS'},
180173
headers: {
181-
Authorization: 'Bearer iam-a-token',
182-
"X-Serverless-Authorization": `Bearer ${ID_TOKEN}`
174+
Authorization: 'Bearer iam-a-token'
183175
},
184176
retry: {
185177
limit: 5,

0 commit comments

Comments
 (0)