Skip to content

Commit 5c6d9de

Browse files
committed
test: skip relevant tests
1 parent 9a47fca commit 5c6d9de

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/unit/assorted/auth.spec.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,23 @@
11
import { loadSpecTests } from '../../spec';
22
import { executeUriValidationTest } from '../../tools/uri_spec_runner';
33

4+
const SKIP = [
5+
'should throw an exception if username and no password (MONGODB-AWS)',
6+
'should use username and password if specified (MONGODB-AWS)',
7+
'should use username, password and session token if specified (MONGODB-AWS)'
8+
];
9+
410
describe('Auth option spec tests (legacy)', function () {
511
const suites = loadSpecTests('auth', 'legacy');
612

713
for (const suite of suites) {
814
describe(suite.name, function () {
915
for (const test of suite.tests) {
1016
it(`${test.description}`, function () {
17+
if (SKIP.includes(test.description)) {
18+
this.test.skipReason = `NODE-7046: ${test.description}`;
19+
this.test.skip();
20+
}
1121
executeUriValidationTest(test);
1222
});
1323
}

0 commit comments

Comments
 (0)