|
52 | 52 | "minItems": 1,
|
53 | 53 | "items": {
|
54 | 54 | "type": "string",
|
55 |
| - "enum": ["single", "replicaset", "sharded", "sharded-replicaset"] |
| 55 | + "enum": ["single", "replicaset", "sharded", "sharded-replicaset", "load-balanced"] |
56 | 56 | }
|
57 | 57 | },
|
58 | 58 | "serverParameters": {
|
59 | 59 | "type": "object",
|
60 | 60 | "minProperties": 1
|
61 |
| - } |
| 61 | + }, |
| 62 | + "auth": { "type": "boolean" } |
62 | 63 | }
|
63 | 64 | },
|
64 | 65 |
|
|
81 | 82 | "minItems": 1,
|
82 | 83 | "items": {
|
83 | 84 | "type": "string",
|
84 |
| - "enum": ["commandStartedEvent", "commandSucceededEvent", "commandFailedEvent"] |
| 85 | + "enum": [ |
| 86 | + "commandStartedEvent", |
| 87 | + "commandSucceededEvent", |
| 88 | + "commandFailedEvent", |
| 89 | + "poolCreatedEvent", |
| 90 | + "poolReadyEvent", |
| 91 | + "poolClearedEvent", |
| 92 | + "poolClosedEvent", |
| 93 | + "connectionCreatedEvent", |
| 94 | + "connectionReadyEvent", |
| 95 | + "connectionClosedEvent", |
| 96 | + "connectionCheckOutStartedEvent", |
| 97 | + "connectionCheckOutFailedEvent", |
| 98 | + "connectionCheckedOutEvent", |
| 99 | + "connectionCheckedInEvent" |
| 100 | + ] |
85 | 101 | }
|
86 | 102 | },
|
87 | 103 | "ignoreCommandMonitoringEvents": {
|
|
194 | 210 | "required": ["client", "events"],
|
195 | 211 | "properties": {
|
196 | 212 | "client": { "type": "string" },
|
197 |
| - "events": { |
198 |
| - "type": "array", |
199 |
| - "items": { "$ref": "#/definitions/expectedEvent" } |
| 213 | + "eventType": { |
| 214 | + "type": "string", |
| 215 | + "enum": ["command", "cmap"] |
| 216 | + }, |
| 217 | + "events": { "type": "array" } |
| 218 | + }, |
| 219 | + "oneOf": [ |
| 220 | + { |
| 221 | + "required": ["eventType"], |
| 222 | + "properties": { |
| 223 | + "eventType": { "const": "command" }, |
| 224 | + "events": { |
| 225 | + "type": "array", |
| 226 | + "items": { "$ref": "#/definitions/expectedCommandEvent" } |
| 227 | + } |
| 228 | + } |
| 229 | + }, |
| 230 | + { |
| 231 | + "required": ["eventType"], |
| 232 | + "properties": { |
| 233 | + "eventType": { "const": "cmap" }, |
| 234 | + "events": { |
| 235 | + "type": "array", |
| 236 | + "items": { "$ref": "#/definitions/expectedCmapEvent" } |
| 237 | + } |
| 238 | + } |
| 239 | + }, |
| 240 | + { |
| 241 | + "additionalProperties": false, |
| 242 | + "properties": { |
| 243 | + "client": { "type": "string" }, |
| 244 | + "events": { |
| 245 | + "type": "array", |
| 246 | + "items": { "$ref": "#/definitions/expectedCommandEvent" } |
| 247 | + } |
| 248 | + } |
200 | 249 | }
|
201 |
| - } |
| 250 | + ] |
202 | 251 | },
|
203 | 252 |
|
204 |
| - "expectedEvent": { |
| 253 | + "expectedCommandEvent": { |
205 | 254 | "type": "object",
|
206 | 255 | "additionalProperties": false,
|
207 | 256 | "maxProperties": 1,
|
|
213 | 262 | "properties": {
|
214 | 263 | "command": { "type": "object" },
|
215 | 264 | "commandName": { "type": "string" },
|
216 |
| - "databaseName": { "type": "string" } |
| 265 | + "databaseName": { "type": "string" }, |
| 266 | + "hasServiceId": { "type": "boolean" } |
217 | 267 | }
|
218 | 268 | },
|
219 | 269 | "commandSucceededEvent": {
|
220 | 270 | "type": "object",
|
221 | 271 | "additionalProperties": false,
|
222 | 272 | "properties": {
|
223 | 273 | "reply": { "type": "object" },
|
224 |
| - "commandName": { "type": "string" } |
| 274 | + "commandName": { "type": "string" }, |
| 275 | + "hasServiceId": { "type": "boolean" } |
225 | 276 | }
|
226 | 277 | },
|
227 | 278 | "commandFailedEvent": {
|
228 | 279 | "type": "object",
|
229 | 280 | "additionalProperties": false,
|
230 | 281 | "properties": {
|
231 |
| - "commandName": { "type": "string" } |
| 282 | + "commandName": { "type": "string" }, |
| 283 | + "hasServiceId": { "type": "boolean" } |
232 | 284 | }
|
233 | 285 | }
|
234 | 286 | }
|
235 | 287 | },
|
236 | 288 |
|
| 289 | + "expectedCmapEvent": { |
| 290 | + "type": "object", |
| 291 | + "additionalProperties": false, |
| 292 | + "maxProperties": 1, |
| 293 | + "minProperties": 1, |
| 294 | + "properties": { |
| 295 | + "poolCreatedEvent": { |
| 296 | + "type": "object", |
| 297 | + "additionalProperties": false, |
| 298 | + "properties": {} |
| 299 | + }, |
| 300 | + "poolReadyEvent": { |
| 301 | + "type": "object", |
| 302 | + "additionalProperties": false, |
| 303 | + "properties": {} |
| 304 | + }, |
| 305 | + "poolClearedEvent": { |
| 306 | + "type": "object", |
| 307 | + "additionalProperties": false, |
| 308 | + "properties": { |
| 309 | + "hasServiceId": { "type": "boolean" } |
| 310 | + } |
| 311 | + }, |
| 312 | + "poolClosedEvent": { |
| 313 | + "type": "object", |
| 314 | + "additionalProperties": false, |
| 315 | + "properties": {} |
| 316 | + }, |
| 317 | + "connectionCreatedEvent": { |
| 318 | + "type": "object", |
| 319 | + "additionalProperties": false, |
| 320 | + "properties": {} |
| 321 | + }, |
| 322 | + "connectionReadyEvent": { |
| 323 | + "type": "object", |
| 324 | + "additionalProperties": false, |
| 325 | + "properties": {} |
| 326 | + }, |
| 327 | + "connectionClosedEvent": { |
| 328 | + "type": "object", |
| 329 | + "additionalProperties": false, |
| 330 | + "properties": { |
| 331 | + "reason": { "type": "string" } |
| 332 | + } |
| 333 | + }, |
| 334 | + "connectionCheckOutStartedEvent": { |
| 335 | + "type": "object", |
| 336 | + "additionalProperties": false, |
| 337 | + "properties": {} |
| 338 | + }, |
| 339 | + "connectionCheckOutFailedEvent": { |
| 340 | + "type": "object", |
| 341 | + "additionalProperties": false, |
| 342 | + "properties": { |
| 343 | + "reason": { "type": "string" } |
| 344 | + } |
| 345 | + }, |
| 346 | + "connectionCheckedOutEvent": { |
| 347 | + "type": "object", |
| 348 | + "additionalProperties": false, |
| 349 | + "properties": {} |
| 350 | + }, |
| 351 | + "connectionCheckedInEvent": { |
| 352 | + "type": "object", |
| 353 | + "additionalProperties": false, |
| 354 | + "properties": {} |
| 355 | + } |
| 356 | + } |
| 357 | + }, |
| 358 | + |
237 | 359 | "collectionOrDatabaseOptions": {
|
238 | 360 | "type": "object",
|
239 | 361 | "additionalProperties": false,
|
|
263 | 385 | "name": { "type": "string" },
|
264 | 386 | "object": { "type": "string" },
|
265 | 387 | "arguments": { "type": "object" },
|
| 388 | + "ignoreResultAndError": { "type": "boolean" }, |
266 | 389 | "expectError": { "$ref": "#/definitions/expectedError" },
|
267 | 390 | "expectResult": {},
|
268 | 391 | "saveResultAsEntity": { "type": "string" }
|
269 | 392 | },
|
270 | 393 | "allOf": [
|
271 | 394 | { "not": { "required": ["expectError", "expectResult"] } },
|
272 |
| - { "not": { "required": ["expectError", "saveResultAsEntity"] } } |
| 395 | + { "not": { "required": ["expectError", "saveResultAsEntity"] } }, |
| 396 | + { "not": { "required": ["ignoreResultAndError", "expectResult"] } }, |
| 397 | + { "not": { "required": ["ignoreResultAndError", "expectError"] } }, |
| 398 | + { "not": { "required": ["ignoreResultAndError", "saveResultAsEntity"] } } |
273 | 399 | ]
|
274 | 400 | },
|
275 | 401 |
|
|
0 commit comments