Skip to content

Commit dd5ec39

Browse files
committed
GODRIVER-3098 Sync SDAM spec tests at 348d2f39.
1 parent b177a7b commit dd5ec39

File tree

215 files changed

+1830
-628
lines changed

Some content is hidden

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

215 files changed

+1830
-628
lines changed

internal/integration/unified_spec_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ var directories = []string{
164164
"convenient-transactions",
165165
"retryable-reads/legacy",
166166
"read-write-concern/operation",
167-
"server-discovery-and-monitoring/integration",
168167
"atlas-data-lake-testing",
169168
}
170169

internal/spectest/skip.go

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,27 @@ var skipTests = map[string]string{
135135
// (BadValue) cannot set maxTimeMS on getMore command for a non-awaitData cursor
136136
//
137137
"TestUnifiedSpec/client-side-operations-timeout/runCursorCommand.json/Non-tailable_cursor_lifetime_remaining_timeoutMS_applied_to_getMore_if_timeoutMode_is_unset": "maxTimeMS can't be set on a getMore. See DRIVERS-2953",
138+
139+
// TODO(GODRIVER-2466): Converting SDAM integration spec tests to unified
140+
// test format requires implementing new test operations, such as
141+
// "recordTopologyDescription".
142+
//
143+
// Need to un-skip whenever GODRIVER-2466 is completed.
144+
"TestUnifiedSpec/server-discovery-and-monitoring/unified/rediscover-quickly-after-step-down.json/Rediscover_quickly_after_replSetStepDown": "Implement GODRIVER-2466",
145+
146+
// TODO(GODRIVER-2967): The following log message has been removed from the
147+
// JSON analogue because it assumes that "TopologyDescriptionChangedEvent"
148+
// should occur when a topolgoy is closed. This behavior is not clearly
149+
// defined anywhere and some drivers support and some don't.
150+
//
151+
// Need to un-skip whenever GODRIVER-2967 is completed.
152+
"TestUnifiedSpec/server-discovery-and-monitoring/unified/replicaset-emit-topology-changed-before-close.json/Topology_lifecycle": "Implement GODRIVER-2967",
153+
"TestUnifiedSpec/server-discovery-and-monitoring/unified/sharded-emit-topology-changed-before-close.json/Topology_lifecycle": "Implement GODRIVER-2967",
154+
"TestUnifiedSpec/server-discovery-and-monitoring/unified/standalone-emit-topology-changed-before-close.json/Topology_lifecycle": "Implement GODRIVER-2967",
155+
"TestUnifiedSpec/server-discovery-and-monitoring/unified/loadbalanced-emit-topology-changed-before-close.json/Topology_lifecycle": "Implement GODRIVER-2967",
156+
"TestUnifiedSpec/server-discovery-and-monitoring/unified/logging-loadbalanced.json/Topology_lifecycle": "Implement GODRIVER-2967",
157+
"TestUnifiedSpec/server-discovery-and-monitoring/unified/logging-replicaset.json/Topology_lifecycle": "Implement GODRIVER-2967",
158+
"TestUnifiedSpec/server-discovery-and-monitoring/unified/logging-standalone.json/Topology_lifecycle": "Implement GODRIVER-2967",
138159
}
139160

140161
// CheckSkip checks if the fully-qualified test name matches a skipped test

testdata/server-discovery-and-monitoring/integration/rediscover-quickly-after-step-down.json

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

testdata/server-discovery-and-monitoring/integration/rediscover-quickly-after-step-down.yml

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

testdata/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": 4
14+
"maxWireVersion": 21
1515
}
1616
]
1717
],

testdata/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: 4 }
8+
- { ok: 1, helloOk: true, isWritablePrimary: true, minWireVersion: 0, maxWireVersion: 21 }
99

1010
outcome:
1111
events:

testdata/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
],

testdata/server-discovery-and-monitoring/monitoring/replica_set_with_no_primary.yml

Lines changed: 1 addition & 2 deletions
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
-
@@ -110,4 +110,3 @@ phases:
110110
hosts: []
111111
passives: []
112112
type: "PossiblePrimary"
113-

testdata/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
],

testdata/server-discovery-and-monitoring/monitoring/replica_set_with_primary.yml

Lines changed: 1 addition & 2 deletions
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
-
@@ -109,4 +109,3 @@ phases:
109109
hosts: []
110110
passives: []
111111
type: "Unknown"
112-

0 commit comments

Comments
 (0)