@@ -41,6 +41,7 @@ describe('End-to-End Tests', () => {
4141 ) ;
4242 }
4343 const { SAMPLE_VERSION } = process . env ;
44+ const { SERVICE_ACCOUNT } = process . env ;
4445 const PLATFORM = 'managed' ;
4546 const REGION = 'us-central1' ;
4647
@@ -52,6 +53,7 @@ describe('End-to-End Tests', () => {
5253 '--config ./test/e2e_test_setup.yaml ' +
5354 `--substitutions _SERVICE=${ SERVICE_NAME } ,_PLATFORM=${ PLATFORM } ,_REGION=${ REGION } ` ;
5455 if ( SAMPLE_VERSION ) buildCmd += `,_VERSION=${ SAMPLE_VERSION } ` ;
56+ if ( SERVICE_ACCOUNT ) buildCmd += `,_SERVICE_ACCOUNT=${ SERVICE_ACCOUNT } ` ;
5557
5658 console . log ( 'Starting Cloud Build...' ) ;
5759 execSync ( buildCmd , { timeout : 240000 } ) ; // timeout at 4 mins
@@ -79,6 +81,7 @@ describe('End-to-End Tests', () => {
7981 '--config ./test/e2e_test_cleanup.yaml ' +
8082 `--substitutions _SERVICE=${ SERVICE_NAME } ,_PLATFORM=${ PLATFORM } ,_REGION=${ REGION } ` ;
8183 if ( SAMPLE_VERSION ) cleanUpCmd += `,_VERSION=${ SAMPLE_VERSION } ` ;
84+ if ( SERVICE_ACCOUNT ) cleanUpCmd += `,_SERVICE_ACCOUNT=${ SERVICE_ACCOUNT } ` ;
8285
8386 execSync ( cleanUpCmd ) ;
8487 } ) ;
0 commit comments