Skip to content

Commit dd1d9ae

Browse files
authored
CSHARP-3659: Refreshed SDAM spec tests. (#555)
1 parent 9c34b84 commit dd1d9ae

File tree

379 files changed

+1857
-1143
lines changed

Some content is hidden

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

379 files changed

+1857
-1143
lines changed

tests/MongoDB.Driver.Core.Tests/Specifications/server-discovery-and-monitoring/MonitoringTestRunner.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,8 @@
1414
*/
1515

1616
using System;
17-
using System.Collections;
1817
using System.Collections.Generic;
19-
using System.IO;
2018
using System.Linq;
21-
using System.Reflection;
2219
using System.Threading;
2320
using FluentAssertions;
2421
using MongoDB.Bson;
@@ -84,7 +81,7 @@ private void ApplyResponse(BsonArray response)
8481

8582
var address = response[0].AsString;
8683
var isMasterDocument = response[1].AsBsonDocument;
87-
JsonDrivenHelper.EnsureAllFieldsAreValid(isMasterDocument, "hosts", "isWritablePrimary", OppressiveLanguageConstants.LegacyHelloResponseIsWritablePrimaryFieldName, "maxWireVersion", "minWireVersion", "ok", "primary", "secondary", "setName", "setVersion");
84+
JsonDrivenHelper.EnsureAllFieldsAreValid(isMasterDocument, "hosts", "helloOk", "isWritablePrimary", OppressiveLanguageConstants.LegacyHelloResponseIsWritablePrimaryFieldName, "maxWireVersion", "minWireVersion", "ok", "primary", "secondary", "setName", "setVersion");
8885

8986
var endPoint = EndPointHelper.Parse(address);
9087
var isMasterResult = new IsMasterResult(isMasterDocument);

tests/MongoDB.Driver.Core.Tests/Specifications/server-discovery-and-monitoring/ServerDiscoveryAndMonitoringTestRunner.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ private void ApplyResponse(BsonArray response)
187187
"electionId",
188188
"hidden",
189189
"hosts",
190+
"helloOk",
190191
"isWritablePrimary",
191192
OppressiveLanguageConstants.LegacyHelloResponseIsWritablePrimaryFieldName,
192193
"isreplicaset",

0 commit comments

Comments
 (0)