1{
2 "description": "deleteMany-hint-serverError",
3 "schemaVersion": "1.0",
4 "runOnRequirements": [
5 {
6 "minServerVersion": "3.4.0",
7 "maxServerVersion": "4.3.3"
8 }
9 ],
10 "createEntities": [
11 {
12 "client": {
13 "id": "client0",
14 "observeEvents": [
15 "commandStartedEvent"
16 ]
17 }
18 },
19 {
20 "database": {
21 "id": "database0",
22 "client": "client0",
23 "databaseName": "crud-v2"
24 }
25 },
26 {
27 "collection": {
28 "id": "collection0",
29 "database": "database0",
30 "collectionName": "DeleteMany_hint"
31 }
32 }
33 ],
34 "initialData": [
35 {
36 "collectionName": "DeleteMany_hint",
37 "databaseName": "crud-v2",
38 "documents": [
39 {
40 "_id": 1,
41 "x": 11
42 },
43 {
44 "_id": 2,
45 "x": 22
46 },
47 {
48 "_id": 3,
49 "x": 33
50 }
51 ]
52 }
53 ],
54 "tests": [
55 {
56 "description": "DeleteMany with hint string unsupported (server-side error)",
57 "operations": [
58 {
59 "object": "collection0",
60 "name": "deleteMany",
61 "arguments": {
62 "filter": {
63 "_id": {
64 "$gt": 1
65 }
66 },
67 "hint": "_id_"
68 },
69 "expectError": {
70 "isError": true
71 }
72 }
73 ],
74 "expectEvents": [
75 {
76 "client": "client0",
77 "events": [
78 {
79 "commandStartedEvent": {
80 "command": {
81 "delete": "DeleteMany_hint",
82 "deletes": [
83 {
84 "q": {
85 "_id": {
86 "$gt": 1
87 }
88 },
89 "hint": "_id_",
90 "limit": 0
91 }
92 ]
93 }
94 }
95 }
96 ]
97 }
98 ],
99 "outcome": [
100 {
101 "collectionName": "DeleteMany_hint",
102 "databaseName": "crud-v2",
103 "documents": [
104 {
105 "_id": 1,
106 "x": 11
107 },
108 {
109 "_id": 2,
110 "x": 22
111 },
112 {
113 "_id": 3,
114 "x": 33
115 }
116 ]
117 }
118 ]
119 },
120 {
121 "description": "DeleteMany with hint document unsupported (server-side error)",
122 "operations": [
123 {
124 "object": "collection0",
125 "name": "deleteMany",
126 "arguments": {
127 "filter": {
128 "_id": {
129 "$gt": 1
130 }
131 },
132 "hint": {
133 "_id": 1
134 }
135 },
136 "expectError": {
137 "isError": true
138 }
139 }
140 ],
141 "expectEvents": [
142 {
143 "client": "client0",
144 "events": [
145 {
146 "commandStartedEvent": {
147 "command": {
148 "delete": "DeleteMany_hint",
149 "deletes": [
150 {
151 "q": {
152 "_id": {
153 "$gt": 1
154 }
155 },
156 "hint": {
157 "_id": 1
158 },
159 "limit": 0
160 }
161 ]
162 }
163 }
164 }
165 ]
166 }
167 ],
168 "outcome": [
169 {
170 "collectionName": "DeleteMany_hint",
171 "databaseName": "crud-v2",
172 "documents": [
173 {
174 "_id": 1,
175 "x": 11
176 },
177 {
178 "_id": 2,
179 "x": 22
180 },
181 {
182 "_id": 3,
183 "x": 33
184 }
185 ]
186 }
187 ]
188 }
189 ]
190}
View as plain text