Skip to content

Commit e953ce2

Browse files
committed
test(travis): make sure FLE tests are skipped w/out env variable
1 parent 1b1858a commit e953ce2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ jobs:
8787
- MONGODB_VERSION=latest
8888
- MONGODB_UNIFIED_TOPOLOGY=1
8989
- MONGODB_ENVIRONMENT=replicaset
90+
- MONGODB_CLIENT_ENCRYPTION=1
9091

9192
allow_failures:
9293
- env:

test/functional/client_side_encryption_tests.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ const generateTopologyTests = require('./runner').generateTopologyTests;
77

88
const missingAwsConfiguration =
99
process.env.AWS_ACCESS_KEY_ID == null || process.env.AWS_SECRET_ACCESS_KEY == null;
10+
const skipTests = missingAwsConfiguration || process.env.MONGODB_CLIENT_ENCRYPTION == null;
1011

1112
describe('Client Side Encryption', function() {
12-
if (missingAwsConfiguration) {
13+
if (skipTests) {
1314
console.log('skipping Client Side Encryption tests due to lack of AWS credentials');
1415
return;
1516
}

0 commit comments

Comments
 (0)