Skip to content

Commit c2cff31

Browse files
UTR format tests
1 parent da46aea commit c2cff31

File tree

2 files changed

+5
-60
lines changed

2 files changed

+5
-60
lines changed

test/integration/client-side-encryption/client_side_encryption.spec.test.ts

Lines changed: 5 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -8,53 +8,6 @@ import {
88
} from '../../tools/spec-runner';
99
import { runUnifiedSuite } from '../../tools/unified-spec-runner/runner';
1010

11-
const isAuthEnabled = process.env.AUTH === 'auth';
12-
13-
// 'TODO: NODE-3891 - fix tests broken when AUTH enabled'
14-
const skippedAuthTests = [
15-
'Insert a document with auto encryption using the AWS provider with temporary credentials',
16-
'Insert a document with auto encryption using Azure KMS provider',
17-
'$rename works if target value has same encryption options',
18-
'Bulk write with encryption',
19-
'Insert with bypassAutoEncryption',
20-
'Insert with bypassAutoEncryption for local schema',
21-
'ping is bypassed',
22-
'deleteOne with deterministic encryption',
23-
'deleteMany with deterministic encryption',
24-
'distinct with deterministic encryption',
25-
'Find with deterministic encryption',
26-
'Find with $in with deterministic encryption',
27-
'findOneAndReplace with deterministic encryption',
28-
'findOneAndUpdate with deterministic encryption',
29-
'Insert a document with auto encryption using GCP KMS provider',
30-
'getMore with encryption',
31-
'unset works with an encrypted field',
32-
'updateOne with deterministic encryption',
33-
'updateMany with deterministic encryption',
34-
'replaceOne with encryption',
35-
'Insert with encryption on a missing key',
36-
'A local schema should override',
37-
'Count with deterministic encryption',
38-
'Insert a document with auto encryption using local KMS provider',
39-
'Insert with encryption using key alt name',
40-
'insertMany with encryption',
41-
'insertOne with encryption',
42-
'findOneAndDelete with deterministic encryption',
43-
'$unset works with an encrypted field',
44-
'Insert a document with auto encryption using KMIP KMS provider'
45-
];
46-
47-
// TODO(NODE-6048): Int32 and Long not allowed as batchSize option to cursor.
48-
const skippedNoAuthTests = ['getMore with encryption'];
49-
50-
const SKIPPED_TESTS = new Set([
51-
...(isAuthEnabled ? skippedAuthTests.concat(skippedNoAuthTests) : skippedNoAuthTests),
52-
...[
53-
// the node driver does not have a mapReduce helper
54-
'mapReduce deterministic encryption (unsupported)'
55-
]
56-
]);
57-
5811
describe('Client Side Encryption (Legacy)', function () {
5912
const testContext = new TestRunnerContext({ requiresCSFLE: true });
6013
const testSuites = gatherTestSuites(
@@ -70,8 +23,11 @@ describe('Client Side Encryption (Legacy)', function () {
7023

7124
generateTopologyTests(testSuites, testContext, (test, configuration) => {
7225
const { description } = test;
73-
if (SKIPPED_TESTS.has(description)) {
74-
return 'Skipped by generic test name skip filter.';
26+
if (description === 'getMore with encryption') {
27+
return `TODO(NODE-6048): Int32 and Long not allowed as batchSize option to cursor`;
28+
}
29+
if (description === 'mapReduce deterministic encryption (unsupported)') {
30+
return `the Node driver does not have a mapReduce helper.`;
7531
}
7632
if (
7733
[

test/integration/unified-test-format/unified_test_format.spec.test.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,6 @@ const filter: TestFilter = ({ description }) => {
2727
return 'TODO(NODE-5962): fix migration conflict in transaction tests';
2828
}
2929

30-
if (
31-
process.env.AUTH === 'auth' &&
32-
[
33-
'FindOneAndUpdate is committed on first attempt',
34-
'FindOneAndUpdate is not committed on first attempt',
35-
'FindOneAndUpdate is never committed'
36-
].includes(description)
37-
) {
38-
return 'TODO(NODE-3891): fix tests broken when AUTH enabled';
39-
}
40-
4130
return false;
4231
};
4332

0 commit comments

Comments
 (0)