...
1# This file was created automatically using mongodb-spec-converter.
2# Please review the generated file, then remove this notice.
3
4description: updateOne-hint-serverError
5schemaVersion: '1.0'
6runOnRequirements:
7 -
8 minServerVersion: 3.4.0
9 maxServerVersion: 4.1.9
10createEntities:
11 -
12 client:
13 id: &client0 client0
14 observeEvents:
15 - commandStartedEvent
16 -
17 database:
18 id: &database0 database0
19 client: client0
20 databaseName: &database_name crud-v2
21 -
22 collection:
23 id: &collection0 collection0
24 database: database0
25 collectionName: &collection_name test_updateone_hint
26initialData:
27 -
28 collectionName: *collection_name
29 databaseName: *database_name
30 documents:
31 -
32 _id: 1
33 x: 11
34 -
35 _id: 2
36 x: 22
37tests:
38 -
39 description: 'UpdateOne with hint string unsupported (server-side error)'
40 operations:
41 -
42 object: *collection0
43 name: updateOne
44 arguments:
45 filter: &filter
46 _id:
47 $gt: 1
48 update: &update
49 $inc:
50 x: 1
51 hint: _id_
52 expectError:
53 isError: true
54 expectEvents:
55 -
56 client: *client0
57 events:
58 -
59 commandStartedEvent:
60 command:
61 update: *collection_name
62 updates:
63 -
64 q: *filter
65 u: *update
66 hint: _id_
67 multi: { $$unsetOrMatches: false }
68 upsert: { $$unsetOrMatches: false }
69 outcome: &outcome
70 -
71 collectionName: *collection_name
72 databaseName: *database_name
73 documents:
74 -
75 _id: 1
76 x: 11
77 -
78 _id: 2
79 x: 22
80 -
81 description: 'UpdateOne with hint document unsupported (server-side error)'
82 operations:
83 -
84 object: *collection0
85 name: updateOne
86 arguments:
87 filter: *filter
88 update: *update
89 hint:
90 _id: 1
91 expectError:
92 isError: true
93 expectEvents:
94 -
95 client: *client0
96 events:
97 -
98 commandStartedEvent:
99 command:
100 update: *collection_name
101 updates:
102 -
103 q: *filter
104 u: *update
105 hint:
106 _id: 1
107 multi: { $$unsetOrMatches: false }
108 upsert: { $$unsetOrMatches: false }
109 outcome: *outcome
View as plain text