Skip to content
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

How can I define no-proxy property? #2058

Closed
szanelato opened this issue Apr 27, 2020 · 9 comments
Closed

How can I define no-proxy property? #2058

szanelato opened this issue Apr 27, 2020 · 9 comments

Comments

@szanelato
Copy link

@wakaleo I'm using serenity to test my intranet project in CI using Jenkins/Docker. The Jenkins and my containers can resolve the hosts from intranet, but I have one dependency in internet, and I'm facing with problem to access. I'm used to do this passing in the execution something like this:

Supose that "proxy.aws.intranet.company.domain" is my proxy address

-Dproxy=proxy.aws.intranet.company.domain
-Dproxy-bypass=company.domain.com,*.company.domain.com

How can I do the same configuration using serenity for chrome and firefox?

Best regards.

@szanelato
Copy link
Author

szanelato commented Apr 28, 2020

Sorry @wakaleo, but it's not clear to me.
I need to configure the proxy as follows:

export http_proxy = http: //proxy.provider.intranet.company.domain: 80
export https_proxy = http: //proxy.provider.intranet.company.domain: 80

How can I do the same with serenity?

I've already tried:

-Dserenity.proxy.http = proxy.provider.intranet.company.domain -Dserenity.proxy.http_port = 80

@JeffGaly
Copy link

@wakaleo John we are looking for the same set of proxy to configure from serenity .Can you help on this .

@wakaleo
Copy link
Member

wakaleo commented Jul 16, 2020

This is driver specific I think - the Serenity options are set up to work for Firefox, but chrome (for example) has it's own options.

@JeffGaly
Copy link

@wakaleo can you share the chrome options?

@szanelato
Copy link
Author

@JeffGaly @wakaleo I managed this situation using this argument at my gradle command. In this case to execute my project inside a isolated docker container:

-Dserenity.proxy.http=proxy.provider.intranet.company.domain:80

It work fine at firefox and chrome.

@jpramirezlo
Copy link

I have tried using ssl options and it does not work properly with serenity, please your help

serenity.proxy.ssl = 127.0.0.1
serenity.proxy.sslProxyPort = 8080

@wakaleo
Copy link
Member

wakaleo commented Feb 12, 2022

Those properties should work (see

) - could you confirm if you are still having issues with version 3.2.0?

@jpramirezlo
Copy link

Thank you very much for your collaboration, it worked for me:

serenity.proxy.http = 127.0.0.1:8080
serenity.proxy.sslProxy = 127.0.0.1:8080

@wakaleo wakaleo closed this as completed Feb 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants