...
1# This file was created automatically using mongodb-spec-converter.
2# Please review the generated file, then remove this notice.
3
4description: unacknowledged-bulkWrite-delete-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 BulkWrite_delete_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
38 -
39 _id: 4
40 x: 44
41tests:
42 -
43 description: 'Unacknowledged bulkWrite deleteOne with hints fails with client-side error'
44 operations:
45 -
46 object: *collection0
47 name: bulkWrite
48 arguments:
49 requests:
50 -
51 deleteOne:
52 filter: &deleteOne_filter1
53 _id: 1
54 hint: &hint_string _id_
55 -
56 deleteOne:
57 filter: &deleteOne_filter2
58 _id: 2
59 hint: &hint_doc
60 _id: 1
61 ordered: true
62 expectError:
63 isError: true
64 expectEvents:
65 -
66 client: *client0
67 events: []
68 outcome: &outcome
69 -
70 collectionName: *collection_name
71 databaseName: *database_name
72 documents:
73 -
74 _id: 1
75 x: 11
76 -
77 _id: 2
78 x: 22
79 -
80 _id: 3
81 x: 33
82 -
83 _id: 4
84 x: 44
85 -
86 description: 'Unacknowledged bulkWrite deleteMany with hints fails with client-side error'
87 operations:
88 -
89 object: *collection0
90 name: bulkWrite
91 arguments:
92 requests:
93 -
94 deleteMany:
95 filter: &deleteMany_filter1
96 _id:
97 $lt: 3
98 hint: *hint_string
99 -
100 deleteMany:
101 filter: &deleteMany_filter2
102 _id:
103 $gte: 4
104 hint: *hint_doc
105 ordered: true
106 expectError:
107 isError: true
108 expectEvents:
109 -
110 client: *client0
111 events: []
112 outcome: *outcome
View as plain text