mongodb / specifications

Specifications related to MongoDB
http://specifications.readthedocs.io/en/latest
Other
389 stars 242 forks source link

DRIVERS-2577: add a runCommand specification #1389

Closed nbbeeken closed 1 year ago

nbbeeken commented 1 year ago

Link to github generated document

Process meta:


Adds a specification for the existing runCommand API. Generally, it summarizes requirements across the specifications and links the reader to the more detailed specification on the subject. Adds language that encourages drivers to not inspect nor modify user input, drivers will have to assess their current implementation and determine how that guidance can best be followed.

Test coverage is targeted at each subject in the spec inspecting command construction is performed as expected. For example, a new test asserts that a database configured with a RC will not attach read concern fields to the user's command document per the spec.

Removing Read Concern and Write Concern settings from the runCommand unified test operation because they intentionally are not supported and no tests have been written to use them.

Please complete the following before merging: