Skip to content
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.

No way of configuring HTTP proxy for updateJob REST API request #11

Open
rveguilla opened this issue Oct 24, 2016 · 4 comments
Open

No way of configuring HTTP proxy for updateJob REST API request #11

rveguilla opened this issue Oct 24, 2016 · 4 comments

Comments

@rveguilla
Copy link

Unless I'm missing something, right now there is no way of using wdio-sauce-service with sauce connect unless the machine running the tests has Internet access and can reach saucelabs.com.

Even thought wdio-sauce-service can pass a proxy configuration to sauce-connect-launcher, so that the sauce-connect can reach saucelabs.com via a proxy, the code in suace-service.js that calls the Sauce REST API to update the test passed/failed metadata does not support using a proxy.

As a result, when running test on machine A with no Internet access, but configured to connect the SauceLabs via the Selenium Relay running as part of SauceConnect on machine B, the test is "completed" (all the steps are completed without error), but the test fails after 90 seconds, since wdio-sauce-service fail to update the test result via the REST API.

@christian-bromann
Copy link
Contributor

@rveguilla thanks for filing the issue. Yes this is definitely and issue. Though it shouldn't be a problem to propagate the proxy information to the request call.

@rveguilla
Copy link
Author

Actually, just after submitting the issue, I realized setting the HTTP_PROXY/HTTPS_PROXY environment variables will probably solved the problem.

@rveguilla
Copy link
Author

Bu then again, it's probably a good idea to add a single proxy setting that would be applied to the request call and also be passed to sauce connect.

@christian-bromann
Copy link
Contributor

it's probably a good idea to add a single proxy setting that would be applied to the request call and also be passed to sauce connect.

Agree!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants