File tree Expand file tree Collapse file tree 3 files changed +12
-5
lines changed
spec/spec_tests/data/crud_unified Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,9 @@ initialData: &initial_data
28
28
- _id : 4
29
29
x : 44
30
30
31
+ # Tests in this file differs from the one in specification repo because
32
+ # Ruby dirver does not group bulk write operations by command.
33
+ # See https://jira.mongodb.org/browse/DRIVERS-2215
31
34
tests :
32
35
- description : ' BulkWrite with string comment'
33
36
runOnRequirements :
@@ -48,15 +51,15 @@ tests:
48
51
- updateOne :
49
52
filter : &updateOne_filter
50
53
_id : 2
51
- update : &update { x: "updated" }
54
+ update : &update { $set: { x: "updated"} }
52
55
- deleteOne :
53
56
filter : &deleteOne_filter
54
57
_id : 3
55
58
comment : &string_comment "comment"
56
59
expectResult : &expect_results
57
60
deletedCount : 1
58
61
insertedCount : 1
59
- insertedIds : { 0: 5 }
62
+ insertedIds : { $$unsetOrMatches: { 0: 5} }
60
63
matchedCount : 2
61
64
modifiedCount : 2
62
65
upsertedCount : 0
92
95
delete : *collection_name
93
96
deletes :
94
97
- q : *deleteOne_filter
98
+ limit : 1
95
99
ordered : true
96
100
comment : *string_comment
97
101
outcome : &outcome
@@ -148,6 +152,7 @@ tests:
148
152
delete : *collection_name
149
153
deletes :
150
154
- q : *deleteOne_filter
155
+ limit : 1
151
156
ordered : true
152
157
comment : *document_comment
153
158
outcome : *outcome
Original file line number Diff line number Diff line change 29
29
object : *collection0
30
30
arguments :
31
31
filter : &filter { _id: 1 }
32
- update : &update
33
- - $set : { x: 22 }
32
+ update : &update { $set: {x: 22} }
34
33
comment : " comment"
35
34
expectEvents :
36
35
- client : *client0
42
41
-
43
42
q : *filter
44
43
u : *update
44
+ multi : true
45
45
comment : " comment"
46
46
outcome : &outcome
47
47
- collectionName : *collection0Name
69
69
-
70
70
q : *filter
71
71
u : *update
72
+ multi : true
72
73
comment : *comment
73
74
outcome : *outcome
74
75
94
95
-
95
96
q : *filter
96
97
u : *update
98
+ multi : true
97
99
comment : " comment"
98
100
outcome : *initialData
Original file line number Diff line number Diff line change 29
29
object : *collection0
30
30
arguments :
31
31
filter : &filter { _id: 1 }
32
- update : &update { x: 22 }
32
+ update : &update { $set: { x: 22} }
33
33
comment : " comment"
34
34
expectEvents :
35
35
- client : *client0
You can’t perform that action at this time.
0 commit comments