Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

Commit 3474821

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

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

samples/system-test/spanner.test.js

Lines changed: 5 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,9 @@ describe('Autogenerated Admin Clients', () => {
24272429
let instance_already_exists = false;
24282430
let key1, key2, key3;
24292431
before(async () => {
2432+
if (SKIP_BACKUPS === 'true' || KOKORO_JOB_NAME.includes('presubmit')) {
2433+
this.skip();
2434+
}
24302435
// Create multiple KMS keys covering `nam3`.
24312436
key1 = await getCryptoKey(KEY_LOCATION_ID1);
24322437
key2 = await getCryptoKey(KEY_LOCATION_ID2);

0 commit comments

Comments
 (0)