Skip to content

Commit

Permalink
test(NODE-3777): skip entire prose test when no applicable
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed Feb 9, 2022
1 parent 8219832 commit dc29d39
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ const metadata = {
// Mng0NCt4ZHVUYUJCa1kxNkVyNUR1QURhZ2h2UzR2d2RrZzh0cFBwM3R6NmdWMDFBMUN3YkQ5aXRRMkhGRGdQV09wOGVNYUMxT2k3NjZKelhaQmRCZGJkTXVyZG9uSjFk
// TODO: NODE-3927 - these cannot run in lb mode but are not skipping based on metadata.
describe('Client Side Encryption Prose Tests', metadata, function () {
// https://github.com/mochajs/mocha/issues/2456
if (process.env.LOAD_BALANCER || !process.env.CSFLE_KMS_PROVIDERS) {
this.skip();
}
const dataDbName = 'db';
const dataCollName = 'coll';
const dataNamespace = `${dataDbName}.${dataCollName}`;
Expand Down Expand Up @@ -83,7 +87,6 @@ describe('Client Side Encryption Prose Tests', metadata, function () {
let clientEncryptionWithInvalidHostname;

before(async function () {
if (process.env.LOAD_BALANCER) this.skip();
tlsCaOptions = {
aws: {
tlsCAFile: process.env.KMIP_TLS_CA_FILE
Expand Down Expand Up @@ -165,7 +168,6 @@ describe('Client Side Encryption Prose Tests', metadata, function () {
});

beforeEach(async function () {
if (process.env.LOAD_BALANCER) this.skip();
await clientNoTls.connect();
await clientWithTls.connect();
await clientWithTlsExpired.connect();
Expand Down

0 comments on commit dc29d39

Please sign in to comment.