[CDRIVER-2639] Spec tests should use the same format for bulk writes Created: 02/May/18 Updated: 28/Oct/23 Resolved: 04/May/18 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.10.0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Rathi Gnanasekaran | Assignee: | A. Jesse Jiryu Davis |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Description |
|
There are three changes, the first two are breaking. The two breaking changes are in three command-monitoring tests: "bulkWrite.yml", "unacknowledgedBulkWrite.yml" and "insertMany.yml": https://github.com/mongodb/specifications/commit/bebf9b688f64afdec46a860f102bad0841b04c02 The format of the "requests" array and "ordered" option changes from this:
To this:
This brings Command Monitoring tests in line with the Retryable Writes and forthcoming Transactions tests. The non-breaking change is in the Retryable Writes tests: https://github.com/mongodb/specifications/commit/c0ce96daac5661f2603bfa52c9b3f683c176a292 Before, the tests said in prose that all MongoClients should be created with retryWrites=true. Now, the tests include the following YAML:
The clientOptions are the same for all Retryable Writes tests. Interpreting this field now will prepare you for the Transactions tests, which make real use of the field. |
| Comments |
| Comment by A. Jesse Jiryu Davis [ 04/May/18 ] |
|
Fixed in https://github.com/mongodb/mongo-c-driver/commit/a77f9b74933c4415c312b85988273255d2dbdbd5 |