forked from mongodb/node-mongodb-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(retryableWrites): sync retryableWrites tests
Fixes NODE-1706 Fixes NODE-1714
- Loading branch information
1 parent
0178354
commit 93904eb
Showing
9 changed files
with
158 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"data": [ | ||
{ | ||
"_id": 1, | ||
"x": 11 | ||
}, | ||
{ | ||
"_id": 2, | ||
"x": 22 | ||
} | ||
], | ||
"minServerVersion": "3.6", | ||
"tests": [ | ||
{ | ||
"description": "DeleteMany ignores retryWrites", | ||
"clientOptions": { | ||
"retryWrites": true | ||
}, | ||
"operation": { | ||
"name": "deleteMany", | ||
"arguments": { | ||
"filter": {} | ||
} | ||
}, | ||
"outcome": { | ||
"result": { | ||
"deletedCount": 2 | ||
}, | ||
"collection": { | ||
"data": [] | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
data: | ||
- { _id: 1, x: 11 } | ||
- { _id: 2, x: 22 } | ||
|
||
minServerVersion: '3.6' | ||
|
||
tests: | ||
- | ||
description: "DeleteMany ignores retryWrites" | ||
clientOptions: | ||
retryWrites: true | ||
operation: | ||
name: "deleteMany" | ||
arguments: | ||
filter: { } | ||
outcome: | ||
result: | ||
deletedCount: 2 | ||
collection: | ||
data: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"data": [ | ||
{ | ||
"_id": 1, | ||
"x": 11 | ||
}, | ||
{ | ||
"_id": 2, | ||
"x": 22 | ||
} | ||
], | ||
"minServerVersion": "3.6", | ||
"tests": [ | ||
{ | ||
"description": "UpdateMany ignores retryWrites", | ||
"clientOptions": { | ||
"retryWrites": true | ||
}, | ||
"operation": { | ||
"name": "updateMany", | ||
"arguments": { | ||
"filter": {}, | ||
"update": { | ||
"$inc": { | ||
"x": 1 | ||
} | ||
} | ||
} | ||
}, | ||
"outcome": { | ||
"result": { | ||
"matchedCount": 2, | ||
"modifiedCount": 2, | ||
"upsertedCount": 0 | ||
}, | ||
"collection": { | ||
"data": [ | ||
{ | ||
"_id": 1, | ||
"x": 12 | ||
}, | ||
{ | ||
"_id": 2, | ||
"x": 23 | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
data: | ||
- { _id: 1, x: 11 } | ||
- { _id: 2, x: 22 } | ||
|
||
minServerVersion: '3.6' | ||
|
||
tests: | ||
- | ||
description: "UpdateMany ignores retryWrites" | ||
clientOptions: | ||
retryWrites: true | ||
operation: | ||
name: "updateMany" | ||
arguments: | ||
filter: { } | ||
update: { $inc: { x : 1 }} | ||
outcome: | ||
result: | ||
matchedCount: 2 | ||
modifiedCount: 2 | ||
upsertedCount: 0 | ||
collection: | ||
data: | ||
- { _id: 1, x: 12 } | ||
- { _id: 2, x: 23 } |