Skip to content

Commit b775b7a

Browse files
committed
Note that write errorResponse may need to be skipped in some drivers
1 parent 082b2e8 commit b775b7a

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

source/crud/tests/unified/bulkWrite-errorResponse.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ createEntities:
1515
collectionName: &collection0Name test
1616

1717
tests:
18+
# This test intentionally executes only a single insert operation in the bulk
19+
# write to make the error code and response assertions less ambiguous. That
20+
# said, some drivers may still need to skip this test because the CRUD spec
21+
# does not prescribe how drivers should formulate a BulkWriteException beyond
22+
# collecting write and write concern errors.
1823
- description: "bulkWrite operations support errorResponse assertions"
1924
runOnRequirements:
2025
- minServerVersion: "4.0.0"

source/crud/tests/unified/deleteOne-errorResponse.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ createEntities:
1515
collectionName: &collection0Name test
1616

1717
tests:
18+
# Some drivers may still need to skip this test because the CRUD spec does not
19+
# prescribe how drivers should formulate a WriteException beyond collecting a
20+
# write or write concern error.
1821
- description: "delete operations support errorResponse assertions"
1922
runOnRequirements:
2023
- minServerVersion: "4.0.0"

source/crud/tests/unified/insertOne-errorResponse.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ createEntities:
1515
collectionName: &collection0Name test
1616

1717
tests:
18+
# Some drivers may still need to skip this test because the CRUD spec does not
19+
# prescribe how drivers should formulate a WriteException beyond collecting a
20+
# write or write concern error.
1821
- description: "insert operations support errorResponse assertions"
1922
runOnRequirements:
2023
- minServerVersion: "4.0.0"

source/crud/tests/unified/updateOne-errorResponse.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ createEntities:
1515
collectionName: &collection0Name test
1616

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

0 commit comments

Comments
 (0)