...

Text file src/go.mongodb.org/mongo-driver/testdata/server-discovery-and-monitoring/load-balanced/discover_load_balancer.yml

Documentation: go.mongodb.org/mongo-driver/testdata/server-discovery-and-monitoring/load-balanced

     1description: "Load balancer can be discovered and only has the address property set"
     2
     3uri: "mongodb://a/?loadBalanced=true"
     4
     5phases:
     6
     7  # There should be no monitoring in LoadBalanced mode, so no responses are necessary to get the topology into the
     8  # correct state.
     9  - outcome:
    10      servers:
    11        a:27017:
    12          type: LoadBalancer
    13          setName: null
    14          setVersion: null
    15          electionId: null
    16          logicalSessionTimeoutMinutes: null
    17          minWireVersion: null
    18          maxWireVersion: null
    19          topologyVersion: null
    20      topologyType: LoadBalanced
    21      setName: null
    22      logicalSessionTimeoutMinutes: null
    23      maxSetVersion: null
    24      maxElectionId: null
    25      compatible: true

View as plain text