From 1453dc23663b0a166bdaeab7e2637c5de3c6f4a5 Mon Sep 17 00:00:00 2001 From: Shane Harvey Date: Fri, 7 Mar 2025 12:05:58 -0800 Subject: [PATCH] PYTHON-5194 Test secondary with IPv6 literal in SDAM # --- .../rs/secondary_ipv6_literal.json | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 test/discovery_and_monitoring/rs/secondary_ipv6_literal.json diff --git a/test/discovery_and_monitoring/rs/secondary_ipv6_literal.json b/test/discovery_and_monitoring/rs/secondary_ipv6_literal.json new file mode 100644 index 0000000000..c23d8dc4c9 --- /dev/null +++ b/test/discovery_and_monitoring/rs/secondary_ipv6_literal.json @@ -0,0 +1,38 @@ +{ + "description": "Secondary with IPv6 literal", + "uri": "mongodb://[::1]/?replicaSet=rs", + "phases": [ + { + "responses": [ + [ + "[::1]:27017", + { + "ok": 1, + "helloOk": true, + "isWritablePrimary": false, + "secondary": true, + "setName": "rs", + "me": "[::1]:27017", + "hosts": [ + "[::1]:27017" + ], + "minWireVersion": 0, + "maxWireVersion": 26 + } + ] + ], + "outcome": { + "servers": { + "[::1]:27017": { + "type": "RSSecondary", + "setName": "rs" + } + }, + "topologyType": "ReplicaSetNoPrimary", + "setName": "rs", + "logicalSessionTimeoutMinutes": null, + "compatible": true + } + } + ] +}