Skip to content

Commit

Permalink
test(travis): make sure FLE tests are skipped w/out env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
daprahamian committed Jul 25, 2019
1 parent 0254223 commit 467ec15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ jobs:
- MONGODB_VERSION=latest
- MONGODB_UNIFIED_TOPOLOGY=1
- MONGODB_ENVIRONMENT=replicaset
- MONGODB_CLIENT_ENCRYPTION=1

allow_failures:
- env:
Expand Down
3 changes: 2 additions & 1 deletion test/functional/client_side_encryption_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ const generateTopologyTests = require('./runner').generateTopologyTests;

const missingAwsConfiguration =
process.env.AWS_ACCESS_KEY_ID == null || process.env.AWS_SECRET_ACCESS_KEY == null;
const skipTests = missingAwsConfiguration || process.env.MONGODB_CLIENT_ENCRYPTION == null;

describe('Client Side Encryption', function() {
if (missingAwsConfiguration) {
if (skipTests) {
console.log('skipping Client Side Encryption tests due to lack of AWS credentials');
return;
}
Expand Down

0 comments on commit 467ec15

Please sign in to comment.