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