You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/test/spec/json/read-write-concern/README.rst
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,25 @@ array of test case objects, each of which have the following keys:
52
52
- ``isServerDefault:`` Indicates whether the read or write concern is considered the server's default.
53
53
- ``isAcknowledged:`` Indicates if the write concern should be considered acknowledged.
54
54
55
+
Operation
56
+
~~~~~~~~~
57
+
58
+
These tests check that the default write concern is omitted in operations.
59
+
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:
61
+
62
+
- ``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:
63
+
64
+
.. code:: c
65
+
66
+
/* Create a default write concern, and set on a collection object. */
If the driver has no way to explicitly set a default write concern on a database or collection, ignore the empty ``writeConcern`` document and continue with the test.
71
+
- The operations ``createIndex``, ``dropIndex`` are introduced.
0 commit comments