File tree Expand file tree Collapse file tree 4 files changed +288
-0
lines changed Expand file tree Collapse file tree 4 files changed +288
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "data" : [
3
+ {
4
+ "_id" : 1 ,
5
+ "x" : 11
6
+ },
7
+ {
8
+ "_id" : 2 ,
9
+ "x" : 22
10
+ },
11
+ {
12
+ "_id" : 3 ,
13
+ "x" : 33
14
+ }
15
+ ],
16
+ "tests" : [
17
+ {
18
+ "description" : " BulkWrite replaceOne prohibits atomic modifiers" ,
19
+ "operations" : [
20
+ {
21
+ "name" : " bulkWrite" ,
22
+ "arguments" : {
23
+ "requests" : [
24
+ {
25
+ "name" : " replaceOne" ,
26
+ "arguments" : {
27
+ "filter" : {
28
+ "_id" : 1
29
+ },
30
+ "replacement" : {
31
+ "$set" : {
32
+ "x" : 22
33
+ }
34
+ }
35
+ }
36
+ }
37
+ ]
38
+ },
39
+ "error" : true
40
+ }
41
+ ],
42
+ "expectations" : [],
43
+ "outcome" : {
44
+ "collection" : {
45
+ "data" : [
46
+ {
47
+ "_id" : 1 ,
48
+ "x" : 11
49
+ },
50
+ {
51
+ "_id" : 2 ,
52
+ "x" : 22
53
+ },
54
+ {
55
+ "_id" : 3 ,
56
+ "x" : 33
57
+ }
58
+ ]
59
+ }
60
+ }
61
+ },
62
+ {
63
+ "description" : " BulkWrite updateOne requires atomic modifiers" ,
64
+ "operations" : [
65
+ {
66
+ "name" : " bulkWrite" ,
67
+ "arguments" : {
68
+ "requests" : [
69
+ {
70
+ "name" : " updateOne" ,
71
+ "arguments" : {
72
+ "filter" : {
73
+ "_id" : 1
74
+ },
75
+ "update" : {
76
+ "x" : 22
77
+ }
78
+ }
79
+ }
80
+ ]
81
+ },
82
+ "error" : true
83
+ }
84
+ ],
85
+ "expectations" : [],
86
+ "outcome" : {
87
+ "collection" : {
88
+ "data" : [
89
+ {
90
+ "_id" : 1 ,
91
+ "x" : 11
92
+ },
93
+ {
94
+ "_id" : 2 ,
95
+ "x" : 22
96
+ },
97
+ {
98
+ "_id" : 3 ,
99
+ "x" : 33
100
+ }
101
+ ]
102
+ }
103
+ }
104
+ },
105
+ {
106
+ "description" : " BulkWrite updateMany requires atomic modifiers" ,
107
+ "operations" : [
108
+ {
109
+ "name" : " bulkWrite" ,
110
+ "arguments" : {
111
+ "requests" : [
112
+ {
113
+ "name" : " updateMany" ,
114
+ "arguments" : {
115
+ "filter" : {
116
+ "_id" : {
117
+ "$gt" : 1
118
+ }
119
+ },
120
+ "update" : {
121
+ "x" : 44
122
+ }
123
+ }
124
+ }
125
+ ]
126
+ },
127
+ "error" : true
128
+ }
129
+ ],
130
+ "expectations" : [],
131
+ "outcome" : {
132
+ "collection" : {
133
+ "data" : [
134
+ {
135
+ "_id" : 1 ,
136
+ "x" : 11
137
+ },
138
+ {
139
+ "_id" : 2 ,
140
+ "x" : 22
141
+ },
142
+ {
143
+ "_id" : 3 ,
144
+ "x" : 33
145
+ }
146
+ ]
147
+ }
148
+ }
149
+ }
150
+ ]
151
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "data" : [
3
+ {
4
+ "_id" : 1 ,
5
+ "x" : 11
6
+ }
7
+ ],
8
+ "tests" : [
9
+ {
10
+ "description" : " ReplaceOne prohibits atomic modifiers" ,
11
+ "operations" : [
12
+ {
13
+ "object" : " collection" ,
14
+ "name" : " replaceOne" ,
15
+ "arguments" : {
16
+ "filter" : {
17
+ "_id" : 1
18
+ },
19
+ "replacement" : {
20
+ "$set" : {
21
+ "x" : 22
22
+ }
23
+ }
24
+ },
25
+ "error" : true
26
+ }
27
+ ],
28
+ "expectations" : [],
29
+ "outcome" : {
30
+ "collection" : {
31
+ "data" : [
32
+ {
33
+ "_id" : 1 ,
34
+ "x" : 11
35
+ }
36
+ ]
37
+ }
38
+ }
39
+ }
40
+ ]
41
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "data" : [
3
+ {
4
+ "_id" : 1 ,
5
+ "x" : 11
6
+ },
7
+ {
8
+ "_id" : 2 ,
9
+ "x" : 22
10
+ },
11
+ {
12
+ "_id" : 3 ,
13
+ "x" : 33
14
+ }
15
+ ],
16
+ "tests" : [
17
+ {
18
+ "description" : " UpdateOne requires atomic modifiers" ,
19
+ "operations" : [
20
+ {
21
+ "object" : " collection" ,
22
+ "name" : " updateMany" ,
23
+ "arguments" : {
24
+ "filter" : {
25
+ "_id" : {
26
+ "$gt" : 1
27
+ }
28
+ },
29
+ "update" : {
30
+ "x" : 44
31
+ }
32
+ },
33
+ "error" : true
34
+ }
35
+ ],
36
+ "expectations" : [],
37
+ "outcome" : {
38
+ "collection" : {
39
+ "data" : [
40
+ {
41
+ "_id" : 1 ,
42
+ "x" : 11
43
+ },
44
+ {
45
+ "_id" : 2 ,
46
+ "x" : 22
47
+ },
48
+ {
49
+ "_id" : 3 ,
50
+ "x" : 33
51
+ }
52
+ ]
53
+ }
54
+ }
55
+ }
56
+ ]
57
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "data" : [
3
+ {
4
+ "_id" : 1 ,
5
+ "x" : 11
6
+ }
7
+ ],
8
+ "tests" : [
9
+ {
10
+ "description" : " UpdateOne requires atomic modifiers" ,
11
+ "operations" : [
12
+ {
13
+ "object" : " collection" ,
14
+ "name" : " updateOne" ,
15
+ "arguments" : {
16
+ "filter" : {
17
+ "_id" : 1
18
+ },
19
+ "update" : {
20
+ "x" : 22
21
+ }
22
+ },
23
+ "error" : true
24
+ }
25
+ ],
26
+ "expectations" : [],
27
+ "outcome" : {
28
+ "collection" : {
29
+ "data" : [
30
+ {
31
+ "_id" : 1 ,
32
+ "x" : 11
33
+ }
34
+ ]
35
+ }
36
+ }
37
+ }
38
+ ]
39
+ }
You can’t perform that action at this time.
0 commit comments