Skip to content

Commit

Permalink
test(NODE-5645): Define wire versions for too_old and too_new tes…
Browse files Browse the repository at this point in the history
…ts (#4200)
  • Loading branch information
W-A-James authored Aug 23, 2024
1 parent c54466c commit 40ace73
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
6 changes: 4 additions & 2 deletions test/spec/server-discovery-and-monitoring/rs/too_old.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"b:27017"
],
"minWireVersion": 0,
"maxWireVersion": 6
"maxWireVersion": 21
}
],
[
Expand All @@ -30,7 +30,9 @@
"hosts": [
"a:27017",
"b:27017"
]
],
"minWireVersion": 999,
"maxWireVersion": 1000
}
]
],
Expand Down
6 changes: 4 additions & 2 deletions test/spec/server-discovery-and-monitoring/rs/too_old.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,17 @@ phases: [
setName: "rs",
hosts: ["a:27017", "b:27017"],
minWireVersion: 0,
maxWireVersion: 6
maxWireVersion: 21
}],
["b:27017", {
ok: 1,
helloOk: true,
isWritablePrimary: false,
secondary: true,
setName: "rs",
hosts: ["a:27017", "b:27017"]
hosts: ["a:27017", "b:27017"],
minWireVersion: 999,
maxWireVersion: 1000
}]
],
outcome: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
"ok": 1,
"helloOk": true,
"isWritablePrimary": true,
"msg": "isdbgrid"
"msg": "isdbgrid",
"minWireVersion": 7,
"maxWireVersion": 900
}
]
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ phases: [
ok: 1,
helloOk: true,
isWritablePrimary: true,
msg: "isdbgrid"
msg: "isdbgrid",
minWireVersion: 7,
maxWireVersion: 900
}]
],
outcome: {
Expand Down

0 comments on commit 40ace73

Please sign in to comment.