| 1 |
description: connection establishment for load-balanced clusters |
| 2 |
|
| 3 |
schemaVersion: '1.3' |
| 4 |
|
| 5 |
runOnRequirements: |
| 6 |
- topologies: [ load-balanced ] |
| 7 |
|
| 8 |
createEntities: |
| 9 |
- client: |
| 10 |
id: &client0 client0 |
| 11 |
uriOptions: |
| 12 |
|
| 13 |
loadBalanced: false |
| 14 |
observeEvents: |
| 15 |
- commandStartedEvent |
| 16 |
- database: |
| 17 |
id: &database0 database0 |
| 18 |
client: *client0 |
| 19 |
databaseName: &database0Name database0 |
| 20 |
|
| 21 |
tests: |
| 22 |
- description: operations against load balancers fail if URI contains loadBalanced=false |
| 23 |
skipReason: servers have not implemented LB support yet so they will not fail the connection handshake in this case |
| 24 |
operations: |
| 25 |
- name: runCommand |
| 26 |
object: *database0 |
| 27 |
arguments: |
| 28 |
commandName: ping |
| 29 |
command: { ping: 1 } |
| 30 |
expectError: |
| 31 |
isClientError: false |
| 32 |
expectEvents: |
| 33 |
|
| 34 |
|
| 35 |
- client: *client0 |
| 36 |
events: [] |