Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Note that write errorResponse may need to be skipped in some drivers
  • Loading branch information
jmikola committed Oct 14, 2022
commit 1415116660d87cc8fafcfa97cc3e68c962e2983c
5 changes: 5 additions & 0 deletions source/crud/tests/unified/bulkWrite-errorResponse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ createEntities:
collectionName: &collection0Name test

tests:
# This test intentionally executes only a single insert operation in the bulk
# write to make the error code and response assertions less ambiguous. That
# said, some drivers may still need to skip this test because the CRUD spec
# does not prescribe how drivers should formulate a BulkWriteException beyond
# collecting write and write concern errors.
- description: "bulkWrite operations support errorResponse assertions"
runOnRequirements:
- minServerVersion: "4.0.0"
Expand Down
3 changes: 3 additions & 0 deletions source/crud/tests/unified/deleteOne-errorResponse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ createEntities:
collectionName: &collection0Name test

tests:
# Some drivers may still need to skip this test because the CRUD spec does not
# prescribe how drivers should formulate a WriteException beyond collecting a
# write or write concern error.
- description: "delete operations support errorResponse assertions"
runOnRequirements:
- minServerVersion: "4.0.0"
Expand Down
3 changes: 3 additions & 0 deletions source/crud/tests/unified/insertOne-errorResponse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ createEntities:
collectionName: &collection0Name test

tests:
# Some drivers may still need to skip this test because the CRUD spec does not
# prescribe how drivers should formulate a WriteException beyond collecting a
# write or write concern error.
- description: "insert operations support errorResponse assertions"
runOnRequirements:
- minServerVersion: "4.0.0"
Expand Down
3 changes: 3 additions & 0 deletions source/crud/tests/unified/updateOne-errorResponse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ createEntities:
collectionName: &collection0Name test

tests:
# Some drivers may still need to skip this test because the CRUD spec does not
# prescribe how drivers should formulate a WriteException beyond collecting a
# write or write concern error.
- description: "update operations support errorResponse assertions"
runOnRequirements:
- minServerVersion: "4.0.0"
Expand Down