@@ -32,7 +32,6 @@ describe('End-to-End Tests', () => {
3232 const { ID_TOKEN } = process . env ;
3333 if ( ! ID_TOKEN ) throw Error ( 'ID token not in envvar' ) ;
3434 const { SAMPLE_VERSION } = process . env ;
35- const PLATFORM = 'managed' ;
3635 const REGION = 'us-central1' ;
3736
3837 let BASE_URL ;
@@ -41,7 +40,7 @@ describe('End-to-End Tests', () => {
4140 let buildRendererCmd =
4241 `gcloud builds submit --project ${ GOOGLE_CLOUD_PROJECT } ` +
4342 '--config ../renderer/test/e2e_test_setup.yaml ' +
44- `--substitutions _SERVICE=renderer-${ SERVICE_NAME } ,_PLATFORM= ${ PLATFORM } , _REGION=${ REGION } ` ;
43+ `--substitutions _SERVICE=renderer-${ SERVICE_NAME } ,_REGION=${ REGION } ` ;
4544 if ( SAMPLE_VERSION ) buildRendererCmd += `,_VERSION=${ SAMPLE_VERSION } ` ;
4645
4746 console . log ( 'Starting Cloud Build for Renderer service...' ) ;
@@ -52,8 +51,9 @@ describe('End-to-End Tests', () => {
5251 let buildCmd =
5352 `gcloud builds submit --project ${ GOOGLE_CLOUD_PROJECT } ` +
5453 '--config ./test/e2e_test_setup.yaml ' +
55- `--substitutions _SERVICE=${ SERVICE_NAME } ,_PLATFORM= ${ PLATFORM } , _REGION=${ REGION } ` ;
54+ `--substitutions _SERVICE=${ SERVICE_NAME } ,_REGION=${ REGION } ` ;
5655 if ( SAMPLE_VERSION ) buildCmd += `,_VERSION=${ SAMPLE_VERSION } ` ;
56+ if ( SERVICE_ACCOUNT ) buildCmd += `,_SERVICE_ACCOUNT=${ SERVICE_ACCOUNT } ` ;
5757
5858 console . log ( 'Starting Cloud Build for Editor service...' ) ;
5959 execSync ( buildCmd , { timeout : 240000 } ) ; // timeout at 4 mins
@@ -72,8 +72,9 @@ describe('End-to-End Tests', () => {
7272 let cleanUpCmd =
7373 `gcloud builds submit --project ${ GOOGLE_CLOUD_PROJECT } ` +
7474 '--config ./test/e2e_test_cleanup.yaml ' +
75- `--substitutions _SERVICE=${ SERVICE_NAME } ,_PLATFORM= ${ PLATFORM } , _REGION=${ REGION } ` ;
75+ `--substitutions _SERVICE=${ SERVICE_NAME } ,_REGION=${ REGION } ` ;
7676 if ( SAMPLE_VERSION ) cleanUpCmd += `,_VERSION=${ SAMPLE_VERSION } ` ;
77+ if ( SERVICE_ACCOUNT ) cleanUpCmd += `,_SERVICE_ACCOUNT=${ SERVICE_ACCOUNT } ` ;
7778
7879 execSync ( cleanUpCmd ) ;
7980 } ) ;
0 commit comments