...
1# This file was created automatically using mongodb-spec-converter.
2# Please review the generated file, then remove this notice.
3
4description: findOneAndReplace-hint-clientError
5schemaVersion: '1.0'
6runOnRequirements:
7 -
8 maxServerVersion: 4.0.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 findOneAndReplace_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: 'FindOneAndReplace with hint string unsupported (client-side error)'
39 operations:
40 -
41 object: *collection0
42 name: findOneAndReplace
43 arguments:
44 filter: &filter
45 _id: 1
46 replacement: &replacement
47 x: 33
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: 'FindOneAndReplace with hint document unsupported (client-side error)'
68 operations:
69 -
70 object: *collection0
71 name: findOneAndReplace
72 arguments:
73 filter: *filter
74 replacement: *replacement
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