-
Notifications
You must be signed in to change notification settings - Fork 918
GODRIVER-2333 Assert that Ping op succeeds initial DNS spec tests #1124
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
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
4a04b51
GODRIVER-2333 Assert that Ping op succeeds initial DNS spec tests
prestonvasquez 0884cb3
GODRIVER-2333 mod direct-connection-false.json
prestonvasquez 67e7f5b
GODRIVER-2333 add authenticatable routine
prestonvasquez 9099b05
GODRIVER-2333 add logic to use topolog server selection desc
prestonvasquez 625fdda
GODRIVER-2333 sync replica_set/encoded-userinfo-and-db.json
prestonvasquez 35f19c2
GODRIVER-2333 remove auth comment
prestonvasquez 04098c3
GODRIVER-2333 pr requests and suggests
prestonvasquez 5f9fa2d
GODRIVER-2333 no ping only when false
prestonvasquez b528e6c
GODRIVER-2333 revert auth validation
prestonvasquez File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,5 +10,6 @@ | |
| "loadBalanced": true, | ||
| "ssl": true, | ||
| "directConnection": false | ||
| } | ||
| }, | ||
| "ping": true | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,3 +11,4 @@ options: | |
| loadBalanced: true | ||
| ssl: true | ||
| directConnection: false | ||
| ping: true | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,5 +9,6 @@ | |
| "options": { | ||
| "loadBalanced": true, | ||
| "ssl": true | ||
| } | ||
| }, | ||
| "ping": true | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,3 +8,4 @@ hosts: | |
| options: | ||
| loadBalanced: true | ||
| ssl: true | ||
| ping: true | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,5 +10,6 @@ | |
| "loadBalanced": true, | ||
| "srvMaxHosts": 0, | ||
| "ssl": true | ||
| } | ||
| }, | ||
| "ping": true | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,3 +8,4 @@ options: | |
| loadBalanced: true | ||
| srvMaxHosts: 0 | ||
| ssl: true | ||
| ping: true | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,5 +10,6 @@ | |
| "loadBalanced": true, | ||
| "srvMaxHosts": 0, | ||
| "ssl": true | ||
| } | ||
| }, | ||
| "ping": true | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,3 +8,4 @@ options: | |
| loadBalanced: true | ||
| srvMaxHosts: 0 | ||
| ssl: true | ||
| ping: true | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,5 +11,6 @@ | |
| "options": { | ||
| "ssl": true, | ||
| "directConnection": false | ||
| } | ||
| }, | ||
| "ping": true | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,3 +8,4 @@ hosts: | |
| options: | ||
| ssl: true | ||
| directConnection: false | ||
| ping: true | ||
22 changes: 22 additions & 0 deletions
22
testdata/initial-dns-seedlist-discovery/replica-set/encoded-userinfo-and-db.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| { | ||
| "uri": "mongodb+srv://b*b%40f3tt%3D:%244to%40L8%[email protected]/mydb%3F?replicaSet=repl0", | ||
| "seeds": [ | ||
| "localhost.test.build.10gen.cc:27017" | ||
| ], | ||
| "hosts": [ | ||
| "localhost:27017", | ||
| "localhost:27018", | ||
| "localhost:27019" | ||
| ], | ||
| "options": { | ||
| "replicaSet": "repl0", | ||
| "ssl": true | ||
| }, | ||
| "parsed_options": { | ||
| "user": "b*b@f3tt=", | ||
| "password": "$4to@L8=MC", | ||
| "db": "mydb?" | ||
| }, | ||
| "ping": false, | ||
| "comment": "Encoded user, pass, and DB parse correctly" | ||
| } |
19 changes: 19 additions & 0 deletions
19
testdata/initial-dns-seedlist-discovery/replica-set/encoded-userinfo-and-db.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| uri: "mongodb+srv://b*b%40f3tt%3D:%244to%40L8%[email protected]/mydb%3F?replicaSet=repl0" | ||
| seeds: | ||
| - localhost.test.build.10gen.cc:27017 | ||
| hosts: | ||
| - localhost:27017 | ||
| - localhost:27018 | ||
| - localhost:27019 | ||
| options: | ||
| replicaSet: repl0 | ||
| ssl: true | ||
| parsed_options: | ||
| user: "b*b@f3tt=" | ||
| password: "$4to@L8=MC" | ||
| db: "mydb?" | ||
| # Don't run a ping for URIs that include userinfo. Ping doesn't require authentication, so missing | ||
| # userinfo isn't a problem, but some drivers will fail handshake on a connection if userinfo is | ||
| # provided but incorrect. | ||
| ping: false | ||
| comment: Encoded user, pass, and DB parse correctly |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,5 +11,6 @@ | |
| "options": { | ||
| "loadBalanced": false, | ||
| "ssl": true | ||
| } | ||
| }, | ||
| "ping": true | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,3 +8,4 @@ hosts: | |
| options: | ||
| loadBalanced: false | ||
| ssl: true | ||
| ping: true | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,5 +11,6 @@ | |
| "options": { | ||
| "replicaSet": "repl0", | ||
| "ssl": true | ||
| } | ||
| }, | ||
| "ping": true | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,3 +8,4 @@ hosts: | |
| options: | ||
| replicaSet: repl0 | ||
| ssl: true | ||
| ping: true | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,5 +11,6 @@ | |
| "options": { | ||
| "replicaSet": "repl0", | ||
| "ssl": true | ||
| } | ||
| }, | ||
| "ping": true | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,3 +8,4 @@ hosts: | |
| options: | ||
| replicaSet: repl0 | ||
| ssl: true | ||
| ping: true | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,5 +12,6 @@ | |
| "replicaSet": "repl0", | ||
| "authSource": "thisDB", | ||
| "ssl": true | ||
| } | ||
| }, | ||
| "ping": true | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,3 +9,4 @@ options: | |
| replicaSet: repl0 | ||
| authSource: thisDB | ||
| ssl: true | ||
| ping: true | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,5 +12,6 @@ | |
| "options": { | ||
| "ssl": true, | ||
| "srvServiceName": "customname" | ||
| } | ||
| }, | ||
| "ping": true | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,3 +9,4 @@ hosts: | |
| options: | ||
| ssl: true | ||
| srvServiceName: "customname" | ||
| ping: true | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,5 +13,6 @@ | |
| "options": { | ||
| "srvMaxHosts": 2, | ||
| "ssl": true | ||
| } | ||
| }, | ||
| "ping": true | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,3 +14,4 @@ hosts: | |
| options: | ||
| srvMaxHosts: 2 | ||
| ssl: true | ||
| ping: true | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,5 +12,6 @@ | |
| "options": { | ||
| "srvMaxHosts": 3, | ||
| "ssl": true | ||
| } | ||
| }, | ||
| "ping": true | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,3 +13,4 @@ hosts: | |
| options: | ||
| srvMaxHosts: 3 | ||
| ssl: true | ||
| ping: true | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,5 +9,6 @@ | |
| "options": { | ||
| "srvMaxHosts": 1, | ||
| "ssl": true | ||
| } | ||
| }, | ||
| "ping": true | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,3 +13,4 @@ hosts: | |
| options: | ||
| srvMaxHosts: 1 | ||
| ssl: true | ||
| ping: true | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,5 +13,6 @@ | |
| "replicaSet": "repl0", | ||
| "srvMaxHosts": 0, | ||
| "ssl": true | ||
| } | ||
| }, | ||
| "ping": true | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,3 +13,4 @@ options: | |
| replicaSet: repl0 | ||
| srvMaxHosts: 0 | ||
| ssl: true | ||
| ping: true | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,5 +13,6 @@ | |
| "replicaSet": "repl0", | ||
| "srvMaxHosts": 0, | ||
| "ssl": true | ||
| } | ||
| }, | ||
| "ping": true | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,3 +13,4 @@ options: | |
| replicaSet: repl0 | ||
| srvMaxHosts: 0 | ||
| ssl: true | ||
| ping: true | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,5 +12,6 @@ | |
| "options": { | ||
| "replicaSet": "repl0", | ||
| "ssl": true | ||
| } | ||
| }, | ||
| "ping": true | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,3 +9,4 @@ hosts: | |
| options: | ||
| replicaSet: repl0 | ||
| ssl: true | ||
| ping: true | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,5 +12,6 @@ | |
| "options": { | ||
| "replicaSet": "repl0", | ||
| "ssl": true | ||
| } | ||
| }, | ||
| "ping": true | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,3 +9,4 @@ hosts: | |
| options: | ||
| replicaSet: repl0 | ||
| ssl: true | ||
| ping: true | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,5 +12,6 @@ | |
| "replicaSet": "repl0", | ||
| "authSource": "thisDB", | ||
| "ssl": false | ||
| } | ||
| }, | ||
| "ping": true | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,3 +9,4 @@ options: | |
| replicaSet: repl0 | ||
| authSource: thisDB | ||
| ssl: false | ||
| ping: true | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,5 +12,6 @@ | |
| "replicaSet": "repl0", | ||
| "authSource": "otherDB", | ||
| "ssl": true | ||
| } | ||
| }, | ||
| "ping": true | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,3 +9,4 @@ options: | |
| replicaSet: repl0 | ||
| authSource: otherDB | ||
| ssl: true | ||
| ping: true | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.