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