...
1{
2 "description": "deleteOne-errorResponse",
3 "schemaVersion": "1.12",
4 "createEntities": [
5 {
6 "client": {
7 "id": "client0",
8 "useMultipleMongoses": false
9 }
10 },
11 {
12 "database": {
13 "id": "database0",
14 "client": "client0",
15 "databaseName": "crud-tests"
16 }
17 },
18 {
19 "collection": {
20 "id": "collection0",
21 "database": "database0",
22 "collectionName": "test"
23 }
24 }
25 ],
26 "tests": [
27 {
28 "description": "delete operations support errorResponse assertions",
29 "runOnRequirements": [
30 {
31 "minServerVersion": "4.0.0",
32 "topologies": [
33 "single",
34 "replicaset"
35 ]
36 },
37 {
38 "minServerVersion": "4.2.0",
39 "topologies": [
40 "sharded"
41 ]
42 }
43 ],
44 "operations": [
45 {
46 "name": "failPoint",
47 "object": "testRunner",
48 "arguments": {
49 "client": "client0",
50 "failPoint": {
51 "configureFailPoint": "failCommand",
52 "mode": {
53 "times": 1
54 },
55 "data": {
56 "failCommands": [
57 "delete"
58 ],
59 "errorCode": 8
60 }
61 }
62 }
63 },
64 {
65 "name": "deleteOne",
66 "object": "collection0",
67 "arguments": {
68 "filter": {
69 "_id": 1
70 }
71 },
72 "expectError": {
73 "errorCode": 8,
74 "errorResponse": {
75 "code": 8
76 }
77 }
78 }
79 ]
80 }
81 ]
82}
View as plain text