-
Notifications
You must be signed in to change notification settings - Fork 1.3k
CSHARP-734: SOCKS5 Proxy Support #1731
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
Open
papafe
wants to merge
79
commits into
mongodb:main
Choose a base branch
from
papafe:csharp734
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
79 commits
Select commit
Hold shift + click to select a range
21e84d0
CSHARP-734: SOCKS5 Proxy Support
papafe 358987d
Small fix
papafe bb21a5c
Added options to MongoClient settings
papafe a8f749f
Added uri options test for proxy options
papafe 6be0f42
Added additional checks on parsing.
papafe 5785036
Small fix
papafe 5aa3e8c
Added base implementation
papafe 985c879
Improvements plus initial tests
papafe 7ada60f
Various corrections
papafe 65a6240
Improvements
papafe 79c9b5e
Various fixes
papafe c7ebfa5
Simplification
papafe 1fce641
Added comments
papafe 3b4640f
First version of setting class
papafe 99a9a5e
Various fixes
papafe 63412e2
Small improvements
papafe ac2213e
Added async version
papafe a73dfb5
Simplifications
papafe 09c771f
Removed unused
papafe 011b3b7
Removed flush and simplified
papafe 593c428
Simplification
papafe 4ae6c98
Fixed auth
papafe 472e560
Removed unused parameters
papafe b01546d
Fixed whitespace
papafe 9d6b0e5
Added use of async
papafe bd9b705
Added comments and removed unused methods
papafe 6627173
File scoped namespaces
papafe d055b5a
Added connection string tests
papafe 5c35e4f
Added MongoClientSettings test
papafe 96d5280
Removed unused using.
papafe 7662a7b
Removed the builder
papafe b9ea9ef
Added unit tests
papafe 7e3be20
Fixed tests and renaming
papafe 696774b
Removed comment
papafe 6aef0bc
Small correction
papafe 38e1bee
Fixed test
papafe 663e853
Fixed test
papafe 70b9df1
Improved tests
papafe 2274bb6
Improved test.
papafe 45ac5c0
Removed unused parameter.
papafe 5bbc67b
Evergreen test
papafe 15f14f6
Correction
papafe 18e545b
Small fixes
papafe 0f35499
Evergreen improvements
papafe fe6f629
Test improvements
papafe 5a51b3c
Small improvements and fix
papafe e11abae
Small fixes
papafe 74c20a9
Small fix
papafe 092f841
Small fix
papafe 7243ab8
Added missing trait.
papafe a4d943a
Trying to add command check
papafe 3e93864
Corrected the command calculation
papafe b103679
Corrected API
papafe 167fe10
Small corrections
papafe 1cbe075
Smal fix
papafe f41e06f
Various small corrections.
papafe 1448c00
Small corrections according to PR.
papafe e84074b
Small fixes following PR.
papafe a630377
Other small fixes.
papafe a0f0d5d
Added disposal of stream and socket
papafe e5287aa
Fix
papafe f88c8f8
Removed unnecessary test.
papafe 8b5a974
Added cleanup stage
papafe 15949d5
Testing proxyStreamFactory as a wrapper
papafe 95c891f
Various small fixes
papafe bd4acfd
Use of LINQ
papafe 1ceafe1
Various fixes
papafe c513ab9
Added missing docs and fixed error message.
papafe c8be82c
added comment
papafe e19b895
Small naming corrections
papafe 433eeda
Remove unused
papafe 5bad18e
Fixed cleanup
papafe 68389be
Removed unused
papafe eaba61c
Small corrections.
papafe d860832
Fixed error message.
papafe f0be68a
Moved tests to their own file.
papafe fc7c610
CSHARP-5581: Test MONGODB-X509 on cloud-dev (#1757)
papafe 2aa4e43
Removed double definition.
papafe 10f8f07
Correction.
papafe 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
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 |
---|---|---|
@@ -0,0 +1,139 @@ | ||
{ | ||
"tests": [ | ||
{ | ||
"description": "proxyPort without proxyHost", | ||
"uri": "mongodb://localhost/?proxyPort=1080", | ||
"valid": false, | ||
"warning": false, | ||
"hosts": null, | ||
"auth": null, | ||
"options": null | ||
}, | ||
{ | ||
"description": "proxyUsername without proxyHost", | ||
"uri": "mongodb://localhost/?proxyUsername=abc", | ||
"valid": false, | ||
"warning": false, | ||
"hosts": null, | ||
"auth": null, | ||
"options": null | ||
}, | ||
{ | ||
"description": "proxyPassword without proxyHost", | ||
"uri": "mongodb://localhost/?proxyPassword=def", | ||
"valid": false, | ||
"warning": false, | ||
"hosts": null, | ||
"auth": null, | ||
"options": null | ||
}, | ||
{ | ||
"description": "all other proxy options without proxyHost", | ||
"uri": "mongodb://localhost/?proxyPort=1080&proxyUsername=abc&proxyPassword=def", | ||
"valid": false, | ||
"warning": false, | ||
"hosts": null, | ||
"auth": null, | ||
"options": null | ||
}, | ||
{ | ||
"description": "proxyUsername without proxyPassword", | ||
"uri": "mongodb://localhost/?proxyHost=localhost&proxyUsername=abc", | ||
"valid": false, | ||
"warning": false, | ||
"hosts": null, | ||
"auth": null, | ||
"options": null | ||
}, | ||
{ | ||
"description": "proxyPassword without proxyUsername", | ||
"uri": "mongodb://localhost/?proxyHost=localhost&proxyPassword=def", | ||
"valid": false, | ||
"warning": false, | ||
"hosts": null, | ||
"auth": null, | ||
"options": null | ||
}, | ||
{ | ||
"description": "multiple proxyHost parameters", | ||
"uri": "mongodb://localhost/?proxyHost=localhost&proxyHost=localhost2", | ||
"valid": false, | ||
"warning": false, | ||
"hosts": null, | ||
"auth": null, | ||
"options": null | ||
}, | ||
{ | ||
"description": "multiple proxyPort parameters", | ||
"uri": "mongodb://localhost/?proxyHost=localhost&proxyPort=1234&proxyPort=12345", | ||
"valid": false, | ||
"warning": false, | ||
"hosts": null, | ||
"auth": null, | ||
"options": null | ||
}, | ||
{ | ||
"description": "multiple proxyUsername parameters", | ||
"uri": "mongodb://localhost/?proxyHost=localhost&proxyUsername=abc&proxyUsername=def&proxyPassword=123", | ||
"valid": false, | ||
"warning": false, | ||
"hosts": null, | ||
"auth": null, | ||
"options": null | ||
}, | ||
{ | ||
"description": "multiple proxyPassword parameters", | ||
"uri": "mongodb://localhost/?proxyHost=localhost&proxyUsername=abc&proxyPassword=123&proxyPassword=456", | ||
"valid": false, | ||
"warning": false, | ||
"hosts": null, | ||
"auth": null, | ||
"options": null | ||
}, | ||
{ | ||
"description": "only host present", | ||
"uri": "mongodb://localhost/?proxyHost=localhost", | ||
"valid": true, | ||
"warning": false, | ||
"hosts": null, | ||
"auth": null, | ||
"options": {} | ||
}, | ||
{ | ||
"description": "host and default port present", | ||
"uri": "mongodb://localhost/?proxyHost=localhost&proxyPort=1080", | ||
"valid": true, | ||
"warning": false, | ||
"hosts": null, | ||
"auth": null, | ||
"options": {} | ||
}, | ||
{ | ||
"description": "host and non-default port present", | ||
"uri": "mongodb://localhost/?proxyHost=localhost&proxyPort=12345", | ||
"valid": true, | ||
"warning": false, | ||
"hosts": null, | ||
"auth": null, | ||
"options": {} | ||
}, | ||
{ | ||
"description": "replicaset, host and non-default port present", | ||
"uri": "mongodb://rs1,rs2,rs3/?proxyHost=localhost&proxyPort=12345", | ||
"valid": true, | ||
"warning": false, | ||
"hosts": null, | ||
"auth": null, | ||
"options": {} | ||
}, | ||
{ | ||
"description": "all options present", | ||
"uri": "mongodb://rs1,rs2,rs3/?proxyHost=localhost&proxyPort=12345&proxyUsername=asdf&proxyPassword=qwerty", | ||
"valid": true, | ||
"warning": false, | ||
"hosts": null, | ||
"auth": null, | ||
"options": {} | ||
} | ||
] | ||
} |
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.