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