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