Skip to content

Commit 1b1858a

Browse files
committed
test(ClientSideEncryption): fully skip when no credentials
1 parent aee1639 commit 1b1858a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/functional/client_side_encryption_tests.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ const missingAwsConfiguration =
99
process.env.AWS_ACCESS_KEY_ID == null || process.env.AWS_SECRET_ACCESS_KEY == null;
1010

1111
describe('Client Side Encryption', function() {
12+
if (missingAwsConfiguration) {
13+
console.log('skipping Client Side Encryption tests due to lack of AWS credentials');
14+
return;
15+
}
16+
1217
const testContext = new TestRunnerContext();
1318
const testSuites = gatherTestSuites(path.join(__dirname, 'spec', 'client-side-encryption'));
1419
after(() => testContext.teardown());
1520
before(function() {
1621
return testContext.setup(this.configuration);
1722
});
1823

19-
if (missingAwsConfiguration) {
20-
console.log('skipping Client Side Encryption tests due to lack of AWS credentials');
21-
return;
22-
}
23-
2424
generateTopologyTests(testSuites, testContext);
2525
});

0 commit comments

Comments
 (0)