@@ -33,6 +33,7 @@ describe('System Tests', () => {
3333 SERVICE_NAME = 'idp-sql' ;
3434 }
3535 const { SAMPLE_VERSION } = process . env ;
36+ const { SERVICE_ACCOUNT } = process . env ;
3637 const PLATFORM = 'managed' ;
3738 const REGION = 'us-central1' ;
3839
@@ -61,6 +62,7 @@ describe('System Tests', () => {
6162 `--substitutions _SERVICE=${ SERVICE_NAME } ,_PLATFORM=${ PLATFORM } ,_REGION=${ REGION } ` +
6263 `,_DB_PASSWORD=${ DB_PASSWORD } ,_CLOUD_SQL_CONNECTION_NAME=${ CLOUD_SQL_CONNECTION_NAME } ` ;
6364 if ( SAMPLE_VERSION ) buildCmd += `,_VERSION=${ SAMPLE_VERSION } ` ;
65+ if ( SERVICE_ACCOUNT ) buildCmd += `,_SERVICE_ACCOUNT=${ SERVICE_ACCOUNT } ` ;
6466
6567 console . log ( 'Starting Cloud Build...' ) ;
6668 execSync ( buildCmd , { timeout : 240000 , shell : true } ) ; // timeout at 4 mins
@@ -110,6 +112,7 @@ describe('System Tests', () => {
110112 '--config ./test/e2e_test_cleanup.yaml ' +
111113 `--substitutions _SERVICE=${ SERVICE_NAME } ,_PLATFORM=${ PLATFORM } ,_REGION=${ REGION } ` ;
112114 if ( SAMPLE_VERSION ) cleanUpCmd += `,_VERSION=${ SAMPLE_VERSION } ` ;
115+ if ( SERVICE_ACCOUNT ) cleanUpCmd += `,_SERVICE_ACCOUNT=${ SERVICE_ACCOUNT } ` ;
113116
114117 execSync ( cleanUpCmd , { shell : true } ) ;
115118 } ) ;
0 commit comments