Skip to content

Commit d8fd5f8

Browse files
committed
chore(NODE-5822): sync CSOT spec tests and setup prose stubs
1 parent 8504d91 commit d8fd5f8

File tree

58 files changed

+61751
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+61751
-0
lines changed

test/integration/client-side-operations-timeout/.gitkeep

Whitespace-only changes.

test/integration/client-side-operations-timeout/client_side_operations_timeout.prose.test.ts

Lines changed: 507 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { join } from 'path';
2+
3+
import { loadSpecTests } from '../../spec';
4+
import { runUnifiedSuite } from '../../tools/unified-spec-runner/runner';
5+
6+
describe.skip('CSOT spec tests', function () {
7+
runUnifiedSuite(loadSpecTests(join('client-side-operations-timeout')));
8+
});
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
/* eslint-disable @typescript-eslint/no-empty-function */
2+
/**
3+
* The following tests are described in CSOTs spec prose tests as "unit" tests
4+
* The tests enumerated in this section could not be expressed in either spec or prose format.
5+
* Drivers SHOULD implement these if it is possible to do so using the driver's existing test infrastructure.
6+
*/
7+
8+
describe.skip('CSOT spec unit tests', () => {
9+
context('Operations should ignore waitQueueTimeoutMS if timeoutMS is also set.', () => {});
10+
11+
context(
12+
'If timeoutMS is set for an operation, the remaining timeoutMS value should apply to connection checkout after a server has been selected.',
13+
() => {}
14+
);
15+
16+
context(
17+
'If timeoutMS is not set for an operation, waitQueueTimeoutMS should apply to connection checkout after a server has been selected.',
18+
() => {}
19+
);
20+
21+
context(
22+
'If a new connection is required to execute an operation, min(remaining computedServerSelectionTimeout, connectTimeoutMS) should apply to socket establishment.',
23+
() => {}
24+
);
25+
26+
context(
27+
'For drivers that have control over OCSP behavior, min(remaining computedServerSelectionTimeout, 5 seconds) should apply to HTTP requests against OCSP responders.',
28+
() => {}
29+
);
30+
31+
context(
32+
'If timeoutMS is unset, operations fail after two non-consecutive socket timeouts.',
33+
() => {}
34+
);
35+
36+
context(
37+
'The remaining timeoutMS value should apply to HTTP requests against KMS servers for CSFLE.',
38+
() => {}
39+
);
40+
41+
context(
42+
'The remaining timeoutMS value should apply to commands sent to mongocryptd as part of automatic encryption.',
43+
() => {}
44+
);
45+
46+
context(
47+
'When doing minPoolSize maintenance, connectTimeoutMS is used as the timeout for socket establishment.',
48+
() => {}
49+
);
50+
});
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-empty-function */
2+
/* Anything javascript specific relating to timeouts */
3+
4+
describe.skip('CSOT driver tests', () => {});

0 commit comments

Comments
 (0)