Skip to content

Commit 26831df

Browse files
committed
test: skip backups test in samples
1 parent 2096948 commit 26831df

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

samples/system-test/spanner.test.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ const KEY_RING_ID = 'test-key-ring-node';
9292
const KEY_ID = 'test-key';
9393
const DEFAULT_LEADER = 'us-central1';
9494
const DEFAULT_LEADER_2 = 'us-east1';
95+
const SKIP_BACKUPS = process.env.SKIP_BACKUPS;
96+
const KOKORO_JOB_NAME = process.env.KOKORO_JOB_NAME;
9597

9698
const 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);

0 commit comments

Comments
 (0)