...
1{
2 "description": "unacknowledged-deleteOne-hint-clientError",
3 "schemaVersion": "1.0",
4 "createEntities": [
5 {
6 "client": {
7 "id": "client0",
8 "observeEvents": [
9 "commandStartedEvent"
10 ]
11 }
12 },
13 {
14 "database": {
15 "id": "database0",
16 "client": "client0",
17 "databaseName": "crud-v2"
18 }
19 },
20 {
21 "collection": {
22 "id": "collection0",
23 "database": "database0",
24 "collectionName": "DeleteOne_hint",
25 "collectionOptions": {
26 "writeConcern": {
27 "w": 0
28 }
29 }
30 }
31 }
32 ],
33 "initialData": [
34 {
35 "collectionName": "DeleteOne_hint",
36 "databaseName": "crud-v2",
37 "documents": [
38 {
39 "_id": 1,
40 "x": 11
41 },
42 {
43 "_id": 2,
44 "x": 22
45 }
46 ]
47 }
48 ],
49 "tests": [
50 {
51 "description": "Unacknowledged deleteOne with hint string fails with client-side error",
52 "operations": [
53 {
54 "object": "collection0",
55 "name": "deleteOne",
56 "arguments": {
57 "filter": {
58 "_id": 1
59 },
60 "hint": "_id_"
61 },
62 "expectError": {
63 "isError": true
64 }
65 }
66 ],
67 "expectEvents": [
68 {
69 "client": "client0",
70 "events": []
71 }
72 ],
73 "outcome": [
74 {
75 "collectionName": "DeleteOne_hint",
76 "databaseName": "crud-v2",
77 "documents": [
78 {
79 "_id": 1,
80 "x": 11
81 },
82 {
83 "_id": 2,
84 "x": 22
85 }
86 ]
87 }
88 ]
89 },
90 {
91 "description": "Unacknowledged deleteOne with hint document fails with client-side error",
92 "operations": [
93 {
94 "object": "collection0",
95 "name": "deleteOne",
96 "arguments": {
97 "filter": {
98 "_id": 1
99 },
100 "hint": {
101 "_id": 1
102 }
103 },
104 "expectError": {
105 "isError": true
106 }
107 }
108 ],
109 "expectEvents": [
110 {
111 "client": "client0",
112 "events": []
113 }
114 ],
115 "outcome": [
116 {
117 "collectionName": "DeleteOne_hint",
118 "databaseName": "crud-v2",
119 "documents": [
120 {
121 "_id": 1,
122 "x": 11
123 },
124 {
125 "_id": 2,
126 "x": 22
127 }
128 ]
129 }
130 ]
131 }
132 ]
133}
View as plain text