-
Notifications
You must be signed in to change notification settings - Fork 1.3k
CSHARP-3705: Ignore hello commands during event capture for UnifiedTestRunner. #548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
f43cda7
7695885
444accf
ef8b66d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ | |
using MongoDB.Bson; | ||
using MongoDB.Bson.TestHelpers.JsonDrivenTests; | ||
using MongoDB.Driver.Core; | ||
using Xunit; | ||
|
||
namespace MongoDB.Driver.Tests.JsonDrivenTests | ||
{ | ||
|
@@ -114,6 +115,7 @@ public JsonDrivenTest CreateTest(string receiver, string name) | |
switch (name) | ||
{ | ||
case "listDatabaseNames": return new JsonDrivenListDatabaseNamesTest(_client, _objectMap); | ||
case "listDatabaseObjects": throw new SkipException(".NET/C# driver does not implement a ListDatabaseObjects helper."); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. where this option come from? I don't see it in the specs There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This option is coming from the updated retryable reads spec tests, which will be merged after this PR. |
||
case "listDatabases": return new JsonDrivenListDatabasesTest(_client, _objectMap); | ||
case "watch": return new JsonDrivenClientWatchTest(_client, _objectMap); | ||
default: throw new FormatException($"Invalid method name: \"{name}\"."); | ||
|
@@ -138,6 +140,7 @@ public JsonDrivenTest CreateTest(string receiver, string name) | |
case "createCollection": return new JsonDrivenCreateCollectionTest(database, _objectMap); | ||
case "dropCollection": return new JsonDrivenDropCollectionTest(database, _objectMap); | ||
case "listCollectionNames": return new JsonDrivenListCollectionNamesTest(database, _objectMap); | ||
case "listCollectionObjects": throw new SkipException(".NET/C# driver does not implement a ListCollectionObjects helper."); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the same as above, I don't see this key in the spec There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This option is coming from the updated retryable reads spec tests, which will be merged after this PR. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. well, this option looks like this one: https://github.com/mongodb/specifications/blob/master/source/unified-test-format/unified-test-format.rst#listcollections (that I already implemented in load balanced PR), is it different step? |
||
case "listCollections": return new JsonDrivenListCollectionsTest(database, _objectMap); | ||
case "runCommand": return new JsonDrivenRunCommandTest(database, _objectMap); | ||
case "watch": return new JsonDrivenDatabaseWatchTest(database, _objectMap); | ||
|
@@ -168,6 +171,7 @@ public JsonDrivenTest CreateTest(string receiver, string name) | |
case "insertMany": return new JsonDrivenInsertManyTest(collection, _objectMap); | ||
case "insertOne": return new JsonDrivenInsertOneTest(collection, _objectMap); | ||
case "listIndexes": return new JsonDrivenListIndexesTest(collection, _objectMap); | ||
case "listIndexNames": throw new SkipException(".NET/C# driver does not implement a ListIndexNames helper."); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the same as above There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This option is coming from the updated retryable reads spec tests, which will be merged after this PR. |
||
case "mapReduce": return new JsonDrivenMapReduceTest(collection, _objectMap); | ||
case "replaceOne": return new JsonDrivenReplaceOneTest(collection, _objectMap); | ||
case "updateMany": return new JsonDrivenUpdateManyTest(collection, _objectMap); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,6 @@ | |
using System.Threading.Tasks; | ||
using MongoDB.Bson; | ||
using MongoDB.Bson.TestHelpers.JsonDrivenTests; | ||
using MongoDB.Driver; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: we usually don't leave such small changes There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It was an unused using. Figured I'd remove it since I was making other edits in the same set of files. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we don't do it because it makes a git history a bit messy (you didn't make any valuable changes in the file but you see this file in the log), but it's minor anyway |
||
using MongoDB.Driver.Core; | ||
using MongoDB.Driver.Core.Bindings; | ||
using MongoDB.Driver.Core.Clusters; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should it be just
auth
like here: https://github.com/mongodb/specifications/blob/master/source/load-balancers/tests/sdam-error-handling.json#L324?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
authEnabled
is a new field being added with the updated SDAM spec tests.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, it's for non-unified format, it would be good if when we add a new logic to both old and new formats, we tried to choose similar keys :)