Skip to content

Commit cd70302

Browse files
authored
RUST-1930 Update tests to run on pre-4.9 servers (#1198)
1 parent d0b81aa commit cd70302

File tree

10 files changed

+18
-19
lines changed

10 files changed

+18
-19
lines changed

src/test/spec/json/load-balancers/sdam-error-handling.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"description": "state change errors are correctly handled",
3-
"schemaVersion": "1.3",
3+
"schemaVersion": "1.4",
44
"runOnRequirements": [
55
{
66
"topologies": [
@@ -263,7 +263,7 @@
263263
"description": "errors during the initial connection hello are ignored",
264264
"runOnRequirements": [
265265
{
266-
"minServerVersion": "4.9"
266+
"minServerVersion": "4.4.7"
267267
}
268268
],
269269
"operations": [
@@ -511,4 +511,4 @@
511511
]
512512
}
513513
]
514-
}
514+
}

src/test/spec/json/load-balancers/sdam-error-handling.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
description: state change errors are correctly handled
22

3-
schemaVersion: '1.3'
3+
schemaVersion: '1.4'
44

55
runOnRequirements:
66
- topologies: [ load-balanced ]
@@ -141,9 +141,8 @@ tests:
141141
# to the same mongos on which the failpoint is set.
142142
- description: errors during the initial connection hello are ignored
143143
runOnRequirements:
144-
# Server version 4.9+ is needed to set a fail point on the initial
145-
# connection handshake with the appName filter due to SERVER-49336.
146-
- minServerVersion: '4.9'
144+
# Require SERVER-49336 for failCommand + appName on the initial handshake.
145+
- minServerVersion: '4.4.7'
147146
operations:
148147
- name: failPoint
149148
object: testRunner
@@ -271,4 +270,4 @@ tests:
271270
# getMore should not clear the pool because the connection's
272271
# generation number is stale.
273272
- connectionCheckedInEvent: {}
274-
- connectionClosedEvent: {}
273+
- connectionClosedEvent: {}

src/test/spec/json/server-discovery-and-monitoring/unified/hello-command-error.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"schemaVersion": "1.4",
44
"runOnRequirements": [
55
{
6-
"minServerVersion": "4.9",
6+
"minServerVersion": "4.4.7",
77
"serverless": "forbid",
88
"topologies": [
99
"single",

src/test/spec/json/server-discovery-and-monitoring/unified/hello-command-error.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ description: hello-command-error
44
schemaVersion: "1.4"
55

66
runOnRequirements:
7-
# failCommand appName requirements
8-
- minServerVersion: "4.9"
7+
# Require SERVER-49336 for failCommand + appName on the initial handshake.
8+
- minServerVersion: "4.4.7"
99
serverless: forbid
1010
topologies: [ single, replicaset, sharded ]
1111

src/test/spec/json/server-discovery-and-monitoring/unified/hello-network-error.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"schemaVersion": "1.4",
44
"runOnRequirements": [
55
{
6-
"minServerVersion": "4.9",
6+
"minServerVersion": "4.4.7",
77
"serverless": "forbid",
88
"topologies": [
99
"single",

src/test/spec/json/server-discovery-and-monitoring/unified/hello-network-error.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ description: hello-network-error
44
schemaVersion: "1.4"
55

66
runOnRequirements:
7-
# failCommand appName requirements
8-
- minServerVersion: "4.9"
7+
# Require SERVER-49336 for failCommand + appName on the initial handshake.
8+
- minServerVersion: "4.4.7"
99
serverless: forbid
1010
topologies: [ single, replicaset, sharded ]
1111

src/test/spec/json/server-discovery-and-monitoring/unified/interruptInUse-pool-clear.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"schemaVersion": "1.11",
44
"runOnRequirements": [
55
{
6-
"minServerVersion": "4.9",
6+
"minServerVersion": "4.4",
77
"serverless": "forbid",
88
"topologies": [
99
"replicaset",

src/test/spec/json/server-discovery-and-monitoring/unified/interruptInUse-pool-clear.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ schemaVersion: "1.11"
55

66
runOnRequirements:
77
# failCommand appName requirements
8-
- minServerVersion: "4.9"
8+
- minServerVersion: "4.4"
99
serverless: forbid
1010
topologies: [ replicaset, sharded ]
1111

src/test/spec/json/server-discovery-and-monitoring/unified/minPoolSize-error.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"schemaVersion": "1.4",
44
"runOnRequirements": [
55
{
6-
"minServerVersion": "4.9",
6+
"minServerVersion": "4.4.7",
77
"serverless": "forbid",
88
"topologies": [
99
"single"

src/test/spec/json/server-discovery-and-monitoring/unified/minPoolSize-error.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ description: minPoolSize-error
44
schemaVersion: "1.4"
55

66
runOnRequirements:
7-
# failCommand appName requirements
8-
- minServerVersion: "4.9"
7+
# Require SERVER-49336 for failCommand + appName on the initial handshake.
8+
- minServerVersion: "4.4.7"
99
serverless: forbid
1010
topologies:
1111
- single

0 commit comments

Comments
 (0)