-
Notifications
You must be signed in to change notification settings - Fork 555
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
Assert that a request was made via a proxy server #753
Labels
Comments
+1 |
@mikebaldry thank you for your suggestion. It sounds like a useful feature. It will have to wait though, unless someone submits a pull request with support for proxy. |
joshcooper
added a commit
to joshcooper/puppet
that referenced
this issue
Dec 3, 2019
Use webmock to stub forge requests. Eliminate duplicated tests that were run in proxy and authenticating proxy contexts. Instead add explicit tests for those two cases, since the only difference is calling `Net::HTTP` with different arguments. Ideally proxy behavior could be tested via webmock, but it isn't supported yet[1]. Add test for when path does not start with forward slash. Add missing tests for basic authentication and PE license. Fix broken user-agent test. Previously the request just needed to match one of the stubbed requests, not all three. [1] bblimke/webmock#753
joshcooper
added a commit
to joshcooper/puppet
that referenced
this issue
Dec 3, 2019
Use webmock to stub forge requests. Eliminate duplicated tests that were run in proxy and authenticating proxy contexts. Instead add explicit tests for those two cases, since the only difference is calling `Net::HTTP` with different arguments. Ideally proxy behavior could be tested via webmock, but it isn't supported yet[1]. Add test for when path does not start with forward slash. Add missing tests for basic authentication and PE license. Fix broken user-agent test. Previously the request just needed to match one of the stubbed requests, not all three. [1] bblimke/webmock#753
Any news about it? |
I'm not aware of anyone working or planning to work on adding support for that. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm looking to write a test that ensures a http request happened, via a certain proxy server.
I can't seem to see any way to do that. Is it something you'd consider adding?
perhaps?
The text was updated successfully, but these errors were encountered: