Skip to content

Commit e45fa1f

Browse files
RUST-1446 Sync SDAM spec tests (#1424)
1 parent 4951769 commit e45fa1f

File tree

182 files changed

+1494
-585
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

182 files changed

+1494
-585
lines changed

src/test/spec/json/server-discovery-and-monitoring/README.rst

Lines changed: 0 additions & 293 deletions
This file was deleted.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# SDAM Monitoring Tests
2+
3+
The YAML and JSON files in this directory tree are platform-independent tests that drivers can use to prove their
4+
conformance to the SDAM Monitoring spec.
5+
6+
## Format
7+
8+
The format of the tests follows the standard SDAM test and should be able to leverage the existing test runner in each
9+
language for the SDAM tests.

src/test/spec/json/server-discovery-and-monitoring/monitoring/README.rst

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/test/spec/json/server-discovery-and-monitoring/monitoring/discovered_standalone.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"helloOk": true,
1212
"isWritablePrimary": true,
1313
"minWireVersion": 0,
14-
"maxWireVersion": 6
14+
"maxWireVersion": 21
1515
}
1616
]
1717
],

src/test/spec/json/server-discovery-and-monitoring/monitoring/discovered_standalone.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ phases:
55
responses:
66
-
77
- "a:27017"
8-
- { ok: 1, helloOk: true, isWritablePrimary: true, minWireVersion: 0, maxWireVersion: 6 }
8+
- { ok: 1, helloOk: true, isWritablePrimary: true, minWireVersion: 0, maxWireVersion: 21 }
99

1010
outcome:
1111
events:

src/test/spec/json/server-discovery-and-monitoring/monitoring/replica_set_with_no_primary.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"b:27017"
2020
],
2121
"minWireVersion": 0,
22-
"maxWireVersion": 6
22+
"maxWireVersion": 21
2323
}
2424
]
2525
],

src/test/spec/json/server-discovery-and-monitoring/monitoring/replica_set_with_no_primary.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ phases:
1717
- "a:27017"
1818
- "b:27017"
1919
minWireVersion: 0
20-
maxWireVersion: 6
20+
maxWireVersion: 21
2121
outcome:
2222
events:
2323
-

src/test/spec/json/server-discovery-and-monitoring/monitoring/replica_set_with_primary.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"b:27017"
1919
],
2020
"minWireVersion": 0,
21-
"maxWireVersion": 6
21+
"maxWireVersion": 21
2222
}
2323
]
2424
],

src/test/spec/json/server-discovery-and-monitoring/monitoring/replica_set_with_primary.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ phases:
1616
- "a:27017"
1717
- "b:27017"
1818
minWireVersion: 0
19-
maxWireVersion: 6
19+
maxWireVersion: 21
2020
outcome:
2121
events:
2222
-

src/test/spec/json/server-discovery-and-monitoring/monitoring/replica_set_with_removal.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"a:27017"
7070
],
7171
"minWireVersion": 0,
72-
"maxWireVersion": 6
72+
"maxWireVersion": 21
7373
}
7474
],
7575
[

0 commit comments

Comments
 (0)