Skip to content

Commit 1999532

Browse files
committed
test: skip bucket encryption enforcement tests if defaultKmsKeyName is missing
1 parent 986878c commit 1999532

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

storage/system-test/buckets.test.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ afterEach(async () => {
4646
await new Promise(res => setTimeout(res, 1000));
4747
});
4848

49-
it('should set bucket encryption enforcement configuration', async () => {
49+
it('should set bucket encryption enforcement configuration', async function () {
50+
if (!defaultKmsKeyName) {
51+
this.skip();
52+
}
5053
const output = execSync(
5154
`node setBucketEncryptionEnforcementConfig.js ${bucketName} ${defaultKmsKeyName}`
5255
);
@@ -85,7 +88,10 @@ it('should set bucket encryption enforcement configuration', async () => {
8588
);
8689
});
8790

88-
it('should get bucket encryption enforcement configuration', async () => {
91+
it('should get bucket encryption enforcement configuration', async function () {
92+
if (!defaultKmsKeyName) {
93+
this.skip();
94+
}
8995
const output = execSync(
9096
`node getBucketEncryptionEnforcementConfig.js ${bucketName}`
9197
);

0 commit comments

Comments
 (0)