From fd9d14847c6f095acbe51a3db831b5fcd6f93d24 Mon Sep 17 00:00:00 2001 From: Warren James Date: Fri, 16 Aug 2024 13:11:18 -0400 Subject: [PATCH 1/3] add min and max wire version to sharded --- .../tests/sharded/too_new.json | 4 +++- .../server-discovery-and-monitoring/tests/sharded/too_new.yml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/source/server-discovery-and-monitoring/tests/sharded/too_new.json b/source/server-discovery-and-monitoring/tests/sharded/too_new.json index 4b997d2163..c4e984ddec 100644 --- a/source/server-discovery-and-monitoring/tests/sharded/too_new.json +++ b/source/server-discovery-and-monitoring/tests/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/source/server-discovery-and-monitoring/tests/sharded/too_new.yml b/source/server-discovery-and-monitoring/tests/sharded/too_new.yml index 7d59cb4305..03032a4948 100644 --- a/source/server-discovery-and-monitoring/tests/sharded/too_new.yml +++ b/source/server-discovery-and-monitoring/tests/sharded/too_new.yml @@ -15,7 +15,9 @@ phases: [ ok: 1, helloOk: true, isWritablePrimary: true, - msg: "isdbgrid" + msg: "isdbgrid", + minWireVersion: 7, + maxWireVersion: 900 }] ], outcome: { From 9a3a9e8906e5e717af8f43d947cbfb947dd3596e Mon Sep 17 00:00:00 2001 From: Warren James Date: Fri, 16 Aug 2024 13:16:54 -0400 Subject: [PATCH 2/3] add min/maxWireVersion fields as needed --- source/server-discovery-and-monitoring/tests/rs/too_old.json | 4 +++- source/server-discovery-and-monitoring/tests/rs/too_old.yml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/source/server-discovery-and-monitoring/tests/rs/too_old.json b/source/server-discovery-and-monitoring/tests/rs/too_old.json index 8100a663f5..dc8a5b2b9c 100644 --- a/source/server-discovery-and-monitoring/tests/rs/too_old.json +++ b/source/server-discovery-and-monitoring/tests/rs/too_old.json @@ -30,7 +30,9 @@ "hosts": [ "a:27017", "b:27017" - ] + ], + "minWireVersion": 999, + "maxWireVersion": 1000 } ] ], diff --git a/source/server-discovery-and-monitoring/tests/rs/too_old.yml b/source/server-discovery-and-monitoring/tests/rs/too_old.yml index 1fe611fbb9..f4d4bd8b55 100644 --- a/source/server-discovery-and-monitoring/tests/rs/too_old.yml +++ b/source/server-discovery-and-monitoring/tests/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: { From ab6cfb6ec557ee7f81a9ce4ae88d25d004003209 Mon Sep 17 00:00:00 2001 From: Warren James Date: Fri, 16 Aug 2024 13:20:45 -0400 Subject: [PATCH 3/3] update changelog --- .../server-discovery-and-monitoring.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/server-discovery-and-monitoring/server-discovery-and-monitoring.md b/source/server-discovery-and-monitoring/server-discovery-and-monitoring.md index 0be74347dd..e0c89e67f5 100644 --- a/source/server-discovery-and-monitoring/server-discovery-and-monitoring.md +++ b/source/server-discovery-and-monitoring/server-discovery-and-monitoring.md @@ -1888,6 +1888,8 @@ oversaw the specification process. ## Changelog +- 2024-08-16: Updated host b wire versions in `too_new` and `too_old` tests + - 2024-08-09: Updated wire versions in tests to 4.0+. - 2024-05-08: Migrated from reStructuredText to Markdown.