Skip to content

Commit a7696bc

Browse files
authored
DRIVERS-1709: Convert legacy transactions spec tests to unified test format (#1502)
* Move legacy test format docs to separate file * Batch convert legacy spec files * Consolidate $$unsetOrMatches, $$type, $$exists, $$sessionLsid, and $numberLong * Consolidate document objects and configureFailPoint times option * Consolidate forbid_serverless using test-level runOnRequirements These files were originally split off in DRIVERS-2713 since the legacy format only allowed top-level requirements. * Use int|long for all getMore cursor ID type checking * Use lowercase read preference mode strings * DRIVERS-2834: Prohibit LB topology for tests using targetedFailPoint Adds clarification to the unified test format spec.
1 parent ac903bf commit a7696bc

File tree

148 files changed

+43278
-33555
lines changed

Some content is hidden

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

148 files changed

+43278
-33555
lines changed

source/client-side-encryption/tests/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ are true:
3939
Spec Test Format
4040
================
4141

42-
The spec tests format is an extension of `transactions spec tests <https://github.com/mongodb/specifications/blob/master/source/transactions/tests/README.rst>`_ with some additions:
42+
The spec tests format is an extension of the `transactions spec legacy test format <https://github.com/mongodb/specifications/blob/master/source/transactions/tests/legacy-test-format.rst>`__ with some additions:
4343

4444
- A ``json_schema`` to set on the collection used for operations.
4545

source/read-write-concern/tests/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Operation
5757

5858
These tests check that the default write concern is omitted in operations.
5959

60-
The spec test format is an extension of `transactions spec tests <https://github.com/mongodb/specifications/blob/master/source/transactions/tests/README.rst>`_ with the following additions:
60+
The spec test format is an extension of the `transactions spec legacy test format <https://github.com/mongodb/specifications/blob/master/source/transactions/tests/legacy-test-format.rst>`__ with the following additions:
6161

6262
- ``writeConcern`` in the ``databaseOptions`` or ``collectionOptions`` may be an empty document to indicate a `server default write concern <https://github.com/mongodb/specifications/blob/master/source/read-write-concern/read-write-concern.rst#servers-default-writeconcern>`_. For example, in libmongoc:
6363

source/transactions/tests/README.rst

Lines changed: 5 additions & 558 deletions
Large diffs are not rendered by default.

source/transactions/tests/legacy-test-format.rst

Lines changed: 570 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)