...
1{
2 "description": "findOneAndDelete-hint-clientError",
3 "schemaVersion": "1.0",
4 "runOnRequirements": [
5 {
6 "maxServerVersion": "4.0.99"
7 }
8 ],
9 "createEntities": [
10 {
11 "client": {
12 "id": "client0",
13 "observeEvents": [
14 "commandStartedEvent"
15 ]
16 }
17 },
18 {
19 "database": {
20 "id": "database0",
21 "client": "client0",
22 "databaseName": "crud-v2"
23 }
24 },
25 {
26 "collection": {
27 "id": "collection0",
28 "database": "database0",
29 "collectionName": "findOneAndDelete_hint"
30 }
31 }
32 ],
33 "initialData": [
34 {
35 "collectionName": "findOneAndDelete_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": "FindOneAndDelete with hint string unsupported (client-side error)",
52 "operations": [
53 {
54 "object": "collection0",
55 "name": "findOneAndDelete",
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": "findOneAndDelete_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": "FindOneAndDelete with hint document",
92 "operations": [
93 {
94 "object": "collection0",
95 "name": "findOneAndDelete",
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": "findOneAndDelete_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