...
1description: connection establishment for load-balanced clusters
2
3schemaVersion: '1.3'
4
5runOnRequirements:
6 - topologies: [ load-balanced ]
7
8createEntities:
9 - client:
10 id: &client0 client0
11 uriOptions:
12 # Explicitly set loadBalanced to false to override the option from the global URI.
13 loadBalanced: false
14 observeEvents:
15 - commandStartedEvent
16 - database:
17 id: &database0 database0
18 client: *client0
19 databaseName: &database0Name database0
20
21tests:
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 # No events should be published because the server fails the connection handshake, so the "ping" command is never
34 # sent.
35 - client: *client0
36 events: []
View as plain text