Skip to content

Commit b2b6c5b

Browse files
committed
PYTHON-5808 Fix CI failures after dropping MongoDB 4.2 support
Update post-42-*.json SDAM error fixtures and test_wire_version to use wire version 9 (MongoDB 4.4), which is now the minimum supported version.
1 parent 2548696 commit b2b6c5b

9 files changed

Lines changed: 17 additions & 17 deletions

test/discovery_and_monitoring/errors/post-42-InterruptedAtShutdown.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
],
1717
"setName": "rs",
1818
"minWireVersion": 0,
19-
"maxWireVersion": 8
19+
"maxWireVersion": 9
2020
}
2121
]
2222
],
@@ -42,7 +42,7 @@
4242
{
4343
"address": "a:27017",
4444
"when": "afterHandshakeCompletes",
45-
"maxWireVersion": 8,
45+
"maxWireVersion": 9,
4646
"type": "command",
4747
"response": {
4848
"ok": 0,

test/discovery_and_monitoring/errors/post-42-InterruptedDueToReplStateChange.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
],
1717
"setName": "rs",
1818
"minWireVersion": 0,
19-
"maxWireVersion": 8
19+
"maxWireVersion": 9
2020
}
2121
]
2222
],
@@ -42,7 +42,7 @@
4242
{
4343
"address": "a:27017",
4444
"when": "afterHandshakeCompletes",
45-
"maxWireVersion": 8,
45+
"maxWireVersion": 9,
4646
"type": "command",
4747
"response": {
4848
"ok": 0,

test/discovery_and_monitoring/errors/post-42-LegacyNotPrimary.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
],
1717
"setName": "rs",
1818
"minWireVersion": 0,
19-
"maxWireVersion": 8
19+
"maxWireVersion": 9
2020
}
2121
]
2222
],
@@ -42,7 +42,7 @@
4242
{
4343
"address": "a:27017",
4444
"when": "afterHandshakeCompletes",
45-
"maxWireVersion": 8,
45+
"maxWireVersion": 9,
4646
"type": "command",
4747
"response": {
4848
"ok": 0,

test/discovery_and_monitoring/errors/post-42-NotPrimaryNoSecondaryOk.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
],
1717
"setName": "rs",
1818
"minWireVersion": 0,
19-
"maxWireVersion": 8
19+
"maxWireVersion": 9
2020
}
2121
]
2222
],
@@ -42,7 +42,7 @@
4242
{
4343
"address": "a:27017",
4444
"when": "afterHandshakeCompletes",
45-
"maxWireVersion": 8,
45+
"maxWireVersion": 9,
4646
"type": "command",
4747
"response": {
4848
"ok": 0,

test/discovery_and_monitoring/errors/post-42-NotPrimaryOrSecondary.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
],
1717
"setName": "rs",
1818
"minWireVersion": 0,
19-
"maxWireVersion": 8
19+
"maxWireVersion": 9
2020
}
2121
]
2222
],
@@ -42,7 +42,7 @@
4242
{
4343
"address": "a:27017",
4444
"when": "afterHandshakeCompletes",
45-
"maxWireVersion": 8,
45+
"maxWireVersion": 9,
4646
"type": "command",
4747
"response": {
4848
"ok": 0,

test/discovery_and_monitoring/errors/post-42-NotWritablePrimary.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
],
1717
"setName": "rs",
1818
"minWireVersion": 0,
19-
"maxWireVersion": 8
19+
"maxWireVersion": 9
2020
}
2121
]
2222
],
@@ -42,7 +42,7 @@
4242
{
4343
"address": "a:27017",
4444
"when": "afterHandshakeCompletes",
45-
"maxWireVersion": 8,
45+
"maxWireVersion": 9,
4646
"type": "command",
4747
"response": {
4848
"ok": 0,

test/discovery_and_monitoring/errors/post-42-PrimarySteppedDown.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
],
1717
"setName": "rs",
1818
"minWireVersion": 0,
19-
"maxWireVersion": 8
19+
"maxWireVersion": 9
2020
}
2121
]
2222
],
@@ -42,7 +42,7 @@
4242
{
4343
"address": "a:27017",
4444
"when": "afterHandshakeCompletes",
45-
"maxWireVersion": 8,
45+
"maxWireVersion": 9,
4646
"type": "command",
4747
"response": {
4848
"ok": 0,

test/discovery_and_monitoring/errors/post-42-ShutdownInProgress.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
],
1717
"setName": "rs",
1818
"minWireVersion": 0,
19-
"maxWireVersion": 8
19+
"maxWireVersion": 9
2020
}
2121
]
2222
],
@@ -42,7 +42,7 @@
4242
{
4343
"address": "a:27017",
4444
"when": "afterHandshakeCompletes",
45-
"maxWireVersion": 8,
45+
"maxWireVersion": 9,
4646
"type": "command",
4747
"response": {
4848
"ok": 0,

test/test_topology.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ def test_wire_version(self):
581581
)
582582

583583
self.assertEqual(server.description.min_wire_version, 1)
584-
self.assertEqual(server.description.max_wire_version, 8)
584+
self.assertEqual(server.description.max_wire_version, common.MIN_SUPPORTED_WIRE_VERSION)
585585
t.select_servers(any_server_selector, _Op.TEST)
586586

587587
# Incompatible.

0 commit comments

Comments
 (0)