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-2086 Allow custom SRV service names with URI option srvServi…
…ceName (mongodb#734)
- Loading branch information
1 parent
f9279c4
commit be3e3f2
Showing
12 changed files
with
175 additions
and
45 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
data/initial-dns-seedlist-discovery/replica-set/srv-service-name.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,16 @@ | ||
{ | ||
"uri": "mongodb+srv://test22.test.build.10gen.cc/?srvServiceName=customname", | ||
"seeds": [ | ||
"localhost.test.build.10gen.cc:27017", | ||
"localhost.test.build.10gen.cc:27018" | ||
], | ||
"hosts": [ | ||
"localhost:27017", | ||
"localhost:27018", | ||
"localhost:27019" | ||
], | ||
"options": { | ||
"ssl": true, | ||
"srvServiceName": "customname" | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
data/initial-dns-seedlist-discovery/replica-set/srv-service-name.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,11 @@ | ||
uri: "mongodb+srv://test22.test.build.10gen.cc/?srvServiceName=customname" | ||
seeds: | ||
- localhost.test.build.10gen.cc:27017 | ||
- localhost.test.build.10gen.cc:27018 | ||
hosts: | ||
- localhost:27017 | ||
- localhost:27018 | ||
- localhost:27019 | ||
options: | ||
ssl: true | ||
srvServiceName: "customname" |
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,24 @@ | ||
{ | ||
"tests": [ | ||
{ | ||
"description": "SRV URI with custom srvServiceName", | ||
"uri": "mongodb+srv://test22.test.build.10gen.cc/?srvServiceName=customname", | ||
"valid": true, | ||
"warning": false, | ||
"hosts": null, | ||
"auth": null, | ||
"options": { | ||
"srvServiceName": "customname" | ||
} | ||
}, | ||
{ | ||
"description": "Non-SRV URI with custom srvServiceName", | ||
"uri": "mongodb://example.com/?srvServiceName=customname", | ||
"valid": false, | ||
"warning": true, | ||
"hosts": null, | ||
"auth": null, | ||
"options": {} | ||
} | ||
] | ||
} |
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,16 @@ | ||
tests: | ||
- description: "SRV URI with custom srvServiceName" | ||
uri: "mongodb+srv://test22.test.build.10gen.cc/?srvServiceName=customname" | ||
valid: true | ||
warning: false | ||
hosts: ~ | ||
auth: ~ | ||
options: | ||
srvServiceName: "customname" | ||
- description: "Non-SRV URI with custom srvServiceName" | ||
uri: "mongodb://example.com/?srvServiceName=customname" | ||
valid: false | ||
warning: true | ||
hosts: ~ | ||
auth: ~ | ||
options: {} |
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
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
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