@@ -63,42 +63,9 @@ insert command (because all documents in the first command will be processed in
63
63
or delete that is split into two commands, the ` skip ` should be set to the number of statements in the first command to
64
64
allow the fail point to trigger on the second command.
65
65
66
- ## Command Construction Tests
67
-
68
- Drivers should also assert that command documents are properly constructed with or without a transaction ID, depending
69
- on whether the write operation is supported.
70
- [ Command Logging and Monitoring] ( ../../command-logging-and-monitoring/command-logging-and-monitoring.md ) may be used to
71
- check for the presence of a ` txnNumber ` field in the command document. Note that command documents may always include an
72
- ` lsid ` field per the [ Driver Session] ( ../../sessions/driver-sessions.md ) specification.
73
-
74
- These tests may be run against both a replica set and shard cluster.
75
-
76
- Drivers should test that transaction IDs are never included in commands for unsupported write operations:
77
-
78
- - Write commands with unacknowledged write concerns (e.g. ` {w: 0} ` )
79
- - Unsupported single-statement write operations
80
- - ` updateMany() `
81
- - ` deleteMany() `
82
- - Unsupported multi-statement write operations
83
- - ` bulkWrite() ` that includes ` UpdateMany ` or ` DeleteMany `
84
- - Unsupported write commands
85
- - ` aggregate ` with write stage (e.g. ` $out ` , ` $merge ` )
86
-
87
- Drivers should test that transactions IDs are always included in commands for supported write operations:
88
-
89
- - Supported single-statement write operations
90
- - ` insertOne() `
91
- - ` updateOne() `
92
- - ` replaceOne() `
93
- - ` deleteOne() `
94
- - ` findOneAndDelete() `
95
- - ` findOneAndReplace() `
96
- - ` findOneAndUpdate() `
97
- - Supported multi-statement write operations
98
- - ` insertMany() ` with ` ordered=true `
99
- - ` insertMany() ` with ` ordered=false `
100
- - ` bulkWrite() ` with ` ordered=true ` (no ` UpdateMany ` or ` DeleteMany ` )
101
- - ` bulkWrite() ` with ` ordered=false ` (no ` UpdateMany ` or ` DeleteMany ` )
66
+ ## ~~ Command Construction Tests~~
67
+
68
+ The command construction prose tests have been removed in favor of command event assertions in the unified format tests.
102
69
103
70
## Prose Tests
104
71
@@ -297,6 +264,8 @@ debugger, code coverage tool, etc.
297
264
298
265
## Changelog
299
266
267
+ - 2024 - 10 - 29 : Convert command construction tests to unified format.
268
+
300
269
- 2024 - 05 - 30 : Migrated from reStructuredText to Markdown.
301
270
302
271
- 2024 - 02 - 27 : Convert legacy retryable writes tests to unified format.
0 commit comments