-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Allow using a HTTP proxy to send results #2285
Comments
We should make sure all implementations use the same environment variables to configure proxy settings. |
At this point it would be prudent to replace the |
Java 11 does come with a https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpClient.html |
Can't we just use a
|
Not on a |
Why not? At
|
Didn't even know you could do that. |
We can probably extend the curl option syntax with the curl option for proxy:
|
Ooo nice idea!!! |
And if we could use private List<Plugin> getPublishPlugin() {
if (!enablePublishPlugin) {
return emptyList();
}
if (publishToken != null) {
return singletonList(PluginOption.forClass(PublishFormatter.class, publishToken));
}
if (publish) {
return singletonList(PluginOption.forClass(PublishFormatter.class));
}
if (publishQuiet) {
return emptyList();
}
return singletonList(PluginOption.forClass(NoPublishFormatter.class));
} Esp because then we wouldn't need private static CurlOption createCurlOption(String token) {
Map<String, String> properties = CucumberProperties.create();
String url = properties.getOrDefault(PLUGIN_PUBLISH_URL_PROPERTY_NAME, DEFAULT_CUCUMBER_MESSAGE_STORE_URL);
if (token != null) {
url = url + String.format(" -H 'Authorization: Bearer %s'", token);
}
return CurlOption.parse(url);
} |
Is there any progress? |
Not yet. You could help by submitting a pull request. |
Users looking to publish cucumber reports behind a proxy can add to `cucumber.properties`: ``` cucumber.publish.proxy.url=https://proxy.example.com:3129 ``` Note: The publish-plugin only reads properties from `cucumber.properties`. And not `junit-platform.properties`. Fixes: #2285
Users looking to publish cucumber reports behind a proxy can add to `cucumber.properties`: ``` cucumber.publish.proxy=https://proxy.example.com:3129 ``` Note: The publish-plugin only reads properties from `cucumber.properties`. And not `junit-platform.properties`. Fixes: #2285
Users looking to publish cucumber reports behind a proxy can add to `cucumber.properties`: ``` cucumber.publish.proxy=https://proxy.example.com:3129 ``` Note: The publish-plugin only reads properties from the `cucumber.properties`, the environment, system properties. And not `junit-platform.properties`. Fixes: #2285
Users looking to publish cucumber reports behind a proxy can add to `cucumber.properties`: ``` cucumber.publish.proxy=https://proxy.example.com:3129 ``` Note: The publish-plugin only reads properties from the `cucumber.properties`, the environment, system properties. And not `junit-platform.properties`. Fixes: #2285 Co-authored-by: Aslak Hellesøy <aslak.hellesoy@gmail.com>
We should allow users behind a HTTP(S) proxy to publish results. See https://docs.oracle.com/javase/8/docs/api/java/net/doc-files/net-properties.html
The text was updated successfully, but these errors were encountered: