...
1# This file was created automatically using mongodb-spec-converter.
2# Please review the generated file, then remove this notice.
3
4description: bulkWrite-update-hint-clientError
5schemaVersion: '1.0'
6runOnRequirements:
7 -
8 maxServerVersion: 3.3.99
9createEntities:
10 -
11 client:
12 id: &client0 client0
13 observeEvents:
14 - commandStartedEvent
15 -
16 database:
17 id: &database0 database0
18 client: client0
19 databaseName: &database_name crud-v2
20 -
21 collection:
22 id: &collection0 collection0
23 database: database0
24 collectionName: &collection_name test_bulkwrite_update_hint
25initialData:
26 -
27 collectionName: *collection_name
28 databaseName: *database_name
29 documents:
30 -
31 _id: 1
32 x: 11
33 -
34 _id: 2
35 x: 22
36 -
37 _id: 3
38 x: 33
39 -
40 _id: 4
41 x: 44
42tests:
43 -
44 description: 'BulkWrite updateOne with update hints unsupported (client-side error)'
45 operations:
46 -
47 object: *collection0
48 name: bulkWrite
49 arguments:
50 requests:
51 -
52 updateOne:
53 filter: &updateOne_filter
54 _id: 1
55 update: &updateOne_update
56 $inc:
57 x: 1
58 hint: &hint_string _id_
59 -
60 updateOne:
61 filter: *updateOne_filter
62 update: *updateOne_update
63 hint: &hint_doc
64 _id: 1
65 ordered: true
66 expectError:
67 isError: true
68 expectEvents:
69 -
70 client: *client0
71 events: []
72 outcome: &outcome
73 -
74 collectionName: *collection_name
75 databaseName: *database_name
76 documents:
77 -
78 _id: 1
79 x: 11
80 -
81 _id: 2
82 x: 22
83 -
84 _id: 3
85 x: 33
86 -
87 _id: 4
88 x: 44
89 -
90 description: 'BulkWrite updateMany with update hints unsupported (client-side error)'
91 operations:
92 -
93 object: *collection0
94 name: bulkWrite
95 arguments:
96 requests:
97 -
98 updateMany:
99 filter: &updateMany_filter
100 _id:
101 $lt: 3
102 update: &updateMany_update
103 $inc:
104 x: 1
105 hint: *hint_string
106 -
107 updateMany:
108 filter: *updateMany_filter
109 update: *updateMany_update
110 hint: *hint_doc
111 ordered: true
112 expectError:
113 isError: true
114 expectEvents:
115 -
116 client: *client0
117 events: []
118 outcome: *outcome
119 -
120 description: 'BulkWrite replaceOne with update hints unsupported (client-side error)'
121 operations:
122 -
123 object: *collection0
124 name: bulkWrite
125 arguments:
126 requests:
127 -
128 replaceOne:
129 filter:
130 _id: 3
131 replacement:
132 x: 333
133 hint: *hint_string
134 -
135 replaceOne:
136 filter:
137 _id: 4
138 replacement:
139 x: 444
140 hint: *hint_doc
141 ordered: true
142 expectError:
143 isError: true
144 expectEvents:
145 -
146 client: *client0
147 events: []
148 outcome: *outcome
View as plain text