...
1# This file was created automatically using mongodb-spec-converter.
2# Please review the generated file, then remove this notice.
3
4description: unacknowledged-updateMany-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 Updatemany_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
38tests:
39 -
40 description: 'Unacknowledged updateMany with hint string fails with client-side error'
41 operations:
42 -
43 object: *collection0
44 name: updateMany
45 arguments:
46 filter: &filter
47 _id:
48 $gt: 1
49 update: &update
50 $inc:
51 x: 1
52 hint: _id_
53 expectError:
54 isError: true
55 expectEvents:
56 -
57 client: *client0
58 events: []
59 outcome: &outcome
60 -
61 collectionName: *collection_name
62 databaseName: *database_name
63 documents:
64 -
65 _id: 1
66 x: 11
67 -
68 _id: 2
69 x: 22
70 -
71 _id: 3
72 x: 33
73 -
74 description: 'Unacknowledged updateMany with hint document fails with client-side error'
75 operations:
76 -
77 object: *collection0
78 name: updateMany
79 arguments:
80 filter: *filter
81 update: *update
82 hint:
83 _id: 1
84 expectError:
85 isError: true
86 expectEvents:
87 -
88 client: *client0
89 events: []
90 outcome: *outcome
View as plain text