1{
2 "runOn": [
3 {
4 "minServerVersion": "4.4",
5 "authEnabled": true
6 }
7 ],
8 "database_name": "sdam-tests",
9 "collection_name": "auth-misc-error",
10 "data": [
11 {
12 "_id": 1
13 },
14 {
15 "_id": 2
16 }
17 ],
18 "tests": [
19 {
20 "description": "Reset server and pool after misc command error",
21 "failPoint": {
22 "configureFailPoint": "failCommand",
23 "mode": {
24 "times": 1
25 },
26 "data": {
27 "failCommands": [
28 "saslContinue"
29 ],
30 "appName": "authMiscErrorTest",
31 "errorCode": 1
32 }
33 },
34 "clientOptions": {
35 "retryWrites": false,
36 "appname": "authMiscErrorTest"
37 },
38 "operations": [
39 {
40 "name": "insertMany",
41 "object": "collection",
42 "arguments": {
43 "documents": [
44 {
45 "_id": 3
46 },
47 {
48 "_id": 4
49 }
50 ]
51 },
52 "error": true
53 },
54 {
55 "name": "waitForEvent",
56 "object": "testRunner",
57 "arguments": {
58 "event": "ServerMarkedUnknownEvent",
59 "count": 1
60 }
61 },
62 {
63 "name": "waitForEvent",
64 "object": "testRunner",
65 "arguments": {
66 "event": "PoolClearedEvent",
67 "count": 1
68 }
69 },
70 {
71 "name": "insertMany",
72 "object": "collection",
73 "arguments": {
74 "documents": [
75 {
76 "_id": 5
77 },
78 {
79 "_id": 6
80 }
81 ]
82 }
83 },
84 {
85 "name": "assertEventCount",
86 "object": "testRunner",
87 "arguments": {
88 "event": "ServerMarkedUnknownEvent",
89 "count": 1
90 }
91 },
92 {
93 "name": "assertEventCount",
94 "object": "testRunner",
95 "arguments": {
96 "event": "PoolClearedEvent",
97 "count": 1
98 }
99 }
100 ],
101 "expectations": [
102 {
103 "command_started_event": {
104 "command": {
105 "insert": "auth-misc-error",
106 "documents": [
107 {
108 "_id": 5
109 },
110 {
111 "_id": 6
112 }
113 ]
114 },
115 "command_name": "insert",
116 "database_name": "sdam-tests"
117 }
118 }
119 ],
120 "outcome": {
121 "collection": {
122 "data": [
123 {
124 "_id": 1
125 },
126 {
127 "_id": 2
128 },
129 {
130 "_id": 5
131 },
132 {
133 "_id": 6
134 }
135 ]
136 }
137 }
138 }
139 ]
140}
View as plain text