| 1 | { |
| 2 | "description": "connection establishment for load-balanced clusters", |
| 3 | "schemaVersion": "1.3", |
| 4 | "runOnRequirements": [ |
| 5 | { |
| 6 | "topologies": [ |
| 7 | "load-balanced" |
| 8 | ] |
| 9 | } |
| 10 | ], |
| 11 | "createEntities": [ |
| 12 | { |
| 13 | "client": { |
| 14 | "id": "client0", |
| 15 | "uriOptions": { |
| 16 | "loadBalanced": false |
| 17 | }, |
| 18 | "observeEvents": [ |
| 19 | "commandStartedEvent" |
| 20 | ] |
| 21 | } |
| 22 | }, |
| 23 | { |
| 24 | "database": { |
| 25 | "id": "database0", |
| 26 | "client": "client0", |
| 27 | "databaseName": "database0" |
| 28 | } |
| 29 | } |
| 30 | ], |
| 31 | "tests": [ |
| 32 | { |
| 33 | "description": "operations against load balancers fail if URI contains loadBalanced=false", |
| 34 | "skipReason": "servers have not implemented LB support yet so they will not fail the connection handshake in this case", |
| 35 | "operations": [ |
| 36 | { |
| 37 | "name": "runCommand", |
| 38 | "object": "database0", |
| 39 | "arguments": { |
| 40 | "commandName": "ping", |
| 41 | "command": { |
| 42 | "ping": 1 |
| 43 | } |
| 44 | }, |
| 45 | "expectError": { |
| 46 | "isClientError": false |
| 47 | } |
| 48 | } |
| 49 | ], |
| 50 | "expectEvents": [ |
| 51 | { |
| 52 | "client": "client0", |
| 53 | "events": [] |
| 54 | } |
| 55 | ] |
| 56 | } |
| 57 | ] |
| 58 | } |