forked from mongodb/mongo-go-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GODRIVER-2333 Assert that Ping op succeeds initial DNS spec tests (mo…
- Loading branch information
1 parent
48b0701
commit 2053ec7
Showing
55 changed files
with
196 additions
and
24 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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.