|
1 | 1 | { |
2 | | - "description": "backpressure hello-command-error", |
| 2 | + "description": "auth-error", |
3 | 3 | "schemaVersion": "1.17", |
4 | 4 | "runOnRequirements": [ |
5 | 5 | { |
6 | | - "minServerVersion": "4.4.7", |
| 6 | + "minServerVersion": "4.4", |
| 7 | + "auth": true, |
7 | 8 | "serverless": "forbid", |
8 | 9 | "topologies": [ |
9 | 10 | "single", |
|
22 | 23 | ], |
23 | 24 | "initialData": [ |
24 | 25 | { |
25 | | - "collectionName": "backpressure hello-command-error", |
| 26 | + "collectionName": "auth-error", |
26 | 27 | "databaseName": "sdam-tests", |
27 | | - "documents": [] |
| 28 | + "documents": [ |
| 29 | + { |
| 30 | + "_id": 1 |
| 31 | + }, |
| 32 | + { |
| 33 | + "_id": 2 |
| 34 | + } |
| 35 | + ] |
28 | 36 | } |
29 | 37 | ], |
30 | 38 | "tests": [ |
31 | 39 | { |
32 | | - "description": "hello command error with backpressure label does not clear the pool", |
| 40 | + "description": "does not reset the server or clear the pool after AuthenticationFailure error with backpressure label", |
33 | 41 | "operations": [ |
| 42 | + { |
| 43 | + "name": "failPoint", |
| 44 | + "object": "testRunner", |
| 45 | + "arguments": { |
| 46 | + "client": "setupClient", |
| 47 | + "failPoint": { |
| 48 | + "configureFailPoint": "failCommand", |
| 49 | + "mode": { |
| 50 | + "times": 1 |
| 51 | + }, |
| 52 | + "data": { |
| 53 | + "failCommands": [ |
| 54 | + "saslContinue" |
| 55 | + ], |
| 56 | + "appName": "authErrorTest", |
| 57 | + "errorCode": 18, |
| 58 | + "errorLabels": [ |
| 59 | + "SystemOverloadedError" |
| 60 | + ] |
| 61 | + } |
| 62 | + } |
| 63 | + } |
| 64 | + }, |
34 | 65 | { |
35 | 66 | "name": "createEntities", |
36 | 67 | "object": "testRunner", |
|
41 | 72 | "id": "client", |
42 | 73 | "useMultipleMongoses": false, |
43 | 74 | "observeEvents": [ |
44 | | - "serverHeartbeatSucceededEvent", |
45 | | - "poolClearedEvent", |
| 75 | + "commandStartedEvent", |
46 | 76 | "poolReadyEvent", |
47 | | - "commandStartedEvent" |
| 77 | + "poolClearedEvent" |
48 | 78 | ], |
49 | 79 | "uriOptions": { |
50 | 80 | "retryWrites": false, |
51 | | - "heartbeatFrequencyMS": 10000, |
52 | | - "serverMonitoringMode": "poll", |
53 | | - "directConnection": true, |
54 | | - "appname": "backpressureCommandErrorHandshakeTest" |
| 81 | + "appname": "authErrorTest" |
55 | 82 | } |
56 | 83 | } |
57 | 84 | }, |
|
66 | 93 | "collection": { |
67 | 94 | "id": "collection", |
68 | 95 | "database": "database", |
69 | | - "collectionName": "backpressure hello-command-error" |
| 96 | + "collectionName": "auth-error" |
70 | 97 | } |
71 | 98 | } |
72 | 99 | ] |
73 | 100 | } |
74 | 101 | }, |
75 | 102 | { |
76 | | - "name": "waitForEvent", |
77 | | - "object": "testRunner", |
78 | | - "arguments": { |
79 | | - "client": "client", |
80 | | - "event": { |
81 | | - "serverHeartbeatSucceededEvent": {} |
82 | | - }, |
83 | | - "count": 1 |
84 | | - } |
85 | | - }, |
86 | | - { |
87 | | - "name": "failPoint", |
88 | | - "object": "testRunner", |
| 103 | + "name": "insertMany", |
| 104 | + "object": "collection", |
89 | 105 | "arguments": { |
90 | | - "client": "setupClient", |
91 | | - "failPoint": { |
92 | | - "configureFailPoint": "failCommand", |
93 | | - "mode": "alwaysOn", |
94 | | - "data": { |
95 | | - "failCommands": [ |
96 | | - "hello", |
97 | | - "isMaster" |
98 | | - ], |
99 | | - "appName": "backpressureCommandErrorHandshakeTest", |
100 | | - "closeConnection": false, |
101 | | - "errorCode": 9001, |
102 | | - "errorLabels": [ |
103 | | - "SystemOverloadedError" |
104 | | - ] |
| 106 | + "documents": [ |
| 107 | + { |
| 108 | + "_id": 3 |
| 109 | + }, |
| 110 | + { |
| 111 | + "_id": 4 |
105 | 112 | } |
106 | | - } |
| 113 | + ] |
| 114 | + }, |
| 115 | + "expectError": { |
| 116 | + "isError": true |
107 | 117 | } |
108 | 118 | }, |
109 | 119 | { |
|
112 | 122 | "arguments": { |
113 | 123 | "documents": [ |
114 | 124 | { |
115 | | - "_id": 1 |
| 125 | + "_id": 5 |
116 | 126 | }, |
117 | 127 | { |
118 | | - "_id": 2 |
| 128 | + "_id": 6 |
119 | 129 | } |
120 | 130 | ] |
121 | | - }, |
122 | | - "expectError": { |
123 | | - "isError": true |
124 | 131 | } |
125 | 132 | } |
126 | 133 | ], |
|
136 | 143 | }, |
137 | 144 | { |
138 | 145 | "client": "client", |
139 | | - "eventType": "sdam", |
140 | | - "ignoreExtraEvents": false, |
| 146 | + "eventType": "command", |
141 | 147 | "events": [ |
142 | 148 | { |
143 | | - "serverHeartbeatSucceededEvent": {} |
| 149 | + "commandStartedEvent": { |
| 150 | + "command": { |
| 151 | + "insert": "auth-error", |
| 152 | + "documents": [ |
| 153 | + { |
| 154 | + "_id": 5 |
| 155 | + }, |
| 156 | + { |
| 157 | + "_id": 6 |
| 158 | + } |
| 159 | + ] |
| 160 | + }, |
| 161 | + "commandName": "insert", |
| 162 | + "databaseName": "sdam-tests" |
| 163 | + } |
| 164 | + } |
| 165 | + ] |
| 166 | + } |
| 167 | + ], |
| 168 | + "outcome": [ |
| 169 | + { |
| 170 | + "collectionName": "auth-error", |
| 171 | + "databaseName": "sdam-tests", |
| 172 | + "documents": [ |
| 173 | + { |
| 174 | + "_id": 1 |
| 175 | + }, |
| 176 | + { |
| 177 | + "_id": 2 |
| 178 | + }, |
| 179 | + { |
| 180 | + "_id": 5 |
| 181 | + }, |
| 182 | + { |
| 183 | + "_id": 6 |
144 | 184 | } |
145 | 185 | ] |
146 | 186 | } |
|
0 commit comments