-
Notifications
You must be signed in to change notification settings - Fork 245
Add missing tests for bulkWrite command #1803
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…d unacknowledged write concern Co-Authored-By: [email protected] <[email protected]>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor changes requested.
namespace: *namespace | ||
document: { _id: 6, x: 66 } | ||
verboseResults: false | ||
ordered: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be ordered: true
.
@@ -349,3 +349,64 @@ tests: | |||
document: { _id: 3, x: 33 } | |||
nsInfo: | |||
- ns: *namespace | |||
- description: "client bulkWrite with unacknowledged write concern (w:0) for all batches" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Include in the description that this test is expected to return an error.
@@ -135,3 +135,56 @@ tests: | |||
- databaseName: *database0Name | |||
collectionName: *collection0Name | |||
documents: [] | |||
- description: "client bulk write delete with non-Int32 hint" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bulk write should be bulkWrite for consistency with other tests.
…tency Co-Authored-By: [email protected] <[email protected]>
@@ -349,7 +349,7 @@ tests: | |||
document: { _id: 3, x: 33 } | |||
nsInfo: | |||
- ns: *namespace | |||
- description: "client bulkWrite with unacknowledged write concern (w:0) for all batches" | |||
- description: "client bulkWrite with unacknowledged write concern (w:0) for all batches - expected to return an error" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indicate that this test involves w:0 with ordered:true.
Added missing tests for bulkWrite command
This PR adds tests for:
These tests cover recent changes to the bulk-write specification, specifically:
Changes
Link to Devin run: https://app.devin.ai/sessions/9b320f37d14b47999b5f313aa3df8fe4
Requested by: [email protected]