File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,8 @@ const KEY_RING_ID = 'test-key-ring-node';
9292const KEY_ID = 'test-key' ;
9393const DEFAULT_LEADER = 'us-central1' ;
9494const DEFAULT_LEADER_2 = 'us-east1' ;
95+ const SKIP_BACKUPS = process . env . SKIP_BACKUPS ;
96+ const KOKORO_JOB_NAME = process . env . KOKORO_JOB_NAME ;
9597
9698const spanner = new Spanner ( {
9799 projectId : PROJECT_ID ,
@@ -2427,6 +2429,12 @@ describe('Autogenerated Admin Clients', () => {
24272429 let instance_already_exists = false ;
24282430 let key1 , key2 , key3 ;
24292431 before ( async ( ) => {
2432+ if (
2433+ SKIP_BACKUPS === 'true' ||
2434+ ( KOKORO_JOB_NAME && KOKORO_JOB_NAME . includes ( 'presubmit' ) )
2435+ ) {
2436+ this . skip ( ) ;
2437+ }
24302438 // Create multiple KMS keys covering `nam3`.
24312439 key1 = await getCryptoKey ( KEY_LOCATION_ID1 ) ;
24322440 key2 = await getCryptoKey ( KEY_LOCATION_ID2 ) ;
You can’t perform that action at this time.
0 commit comments