From 4cb118d67138e87eb6bb6ae34c4a7e261cbc5726 Mon Sep 17 00:00:00 2001 From: Joy Wang <49984055+joyjwang@users.noreply.github.com> Date: Fri, 30 Aug 2024 15:48:12 -0400 Subject: [PATCH] =?UTF-8?q?GODRIVER-2993=20[v1]=20SDAM=20unit=20test=20sha?= =?UTF-8?q?rded/too=5Fnew=20needs=20to=20defined=20wireVer=E2=80=A6=20(#17?= =?UTF-8?q?80)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- testdata/server-discovery-and-monitoring/rs/too_old.json | 4 +++- testdata/server-discovery-and-monitoring/rs/too_old.yml | 4 +++- testdata/server-discovery-and-monitoring/sharded/too_new.json | 4 +++- testdata/server-discovery-and-monitoring/sharded/too_new.yml | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/testdata/server-discovery-and-monitoring/rs/too_old.json b/testdata/server-discovery-and-monitoring/rs/too_old.json index 461d00acc4..c572b36680 100644 --- a/testdata/server-discovery-and-monitoring/rs/too_old.json +++ b/testdata/server-discovery-and-monitoring/rs/too_old.json @@ -30,7 +30,9 @@ "hosts": [ "a:27017", "b:27017" - ] + ], + "minWireVersion": 999, + "maxWireVersion": 1000 } ] ], diff --git a/testdata/server-discovery-and-monitoring/rs/too_old.yml b/testdata/server-discovery-and-monitoring/rs/too_old.yml index ab238dbab9..6235ac8d6d 100644 --- a/testdata/server-discovery-and-monitoring/rs/too_old.yml +++ b/testdata/server-discovery-and-monitoring/rs/too_old.yml @@ -18,7 +18,9 @@ phases: [ isWritablePrimary: false, secondary: true, setName: "rs", - hosts: ["a:27017", "b:27017"] + hosts: ["a:27017", "b:27017"], + minWireVersion: 999, + maxWireVersion: 1000 }] ], outcome: { diff --git a/testdata/server-discovery-and-monitoring/sharded/too_new.json b/testdata/server-discovery-and-monitoring/sharded/too_new.json index 4b997d2163..c4e984ddec 100644 --- a/testdata/server-discovery-and-monitoring/sharded/too_new.json +++ b/testdata/server-discovery-and-monitoring/sharded/too_new.json @@ -21,7 +21,9 @@ "ok": 1, "helloOk": true, "isWritablePrimary": true, - "msg": "isdbgrid" + "msg": "isdbgrid", + "minWireVersion": 7, + "maxWireVersion": 900 } ] ], diff --git a/testdata/server-discovery-and-monitoring/sharded/too_new.yml b/testdata/server-discovery-and-monitoring/sharded/too_new.yml index 7d59cb4305..03032a4948 100644 --- a/testdata/server-discovery-and-monitoring/sharded/too_new.yml +++ b/testdata/server-discovery-and-monitoring/sharded/too_new.yml @@ -15,7 +15,9 @@ phases: [ ok: 1, helloOk: true, isWritablePrimary: true, - msg: "isdbgrid" + msg: "isdbgrid", + minWireVersion: 7, + maxWireVersion: 900 }] ], outcome: {