Skip to content

Commit

Permalink
[Core] Remove publish token validation (#2123)
Browse files Browse the repository at this point in the history
Fixes: #2122
  • Loading branch information
aslakhellesoy committed Sep 15, 2020
1 parent aac6cfb commit 538725b
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 54 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

### Fixed

* [Core] Validation of `CUCUMBER_PUBLISH_TOKEN` no longer happens inside Cucumber-JVM - only on the server.
([2123](https://github.com/cucumber/cucumber-jvm/pull/2123)
[2122](https://github.com/cucumber/cucumber-jvm/issues/2122)
Aslak Hellesøy)

## [6.7.0] (2020-09-14)

### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public RuntimeOptionsBuilder parse(Map<String, String> properties) {

parse(properties,
PLUGIN_PUBLISH_TOKEN_PROPERTY_NAME,
PublishTokenParser::parse,
s -> s, // No validation - validated on server
builder::setPublishToken);

parse(properties,
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import io.cucumber.core.feature.GluePath;
import io.cucumber.core.options.ObjectFactoryParser;
import io.cucumber.core.options.PluginOption;
import io.cucumber.core.options.PublishTokenParser;
import io.cucumber.core.options.SnippetTypeParser;
import io.cucumber.core.plugin.NoPublishFormatter;
import io.cucumber.core.plugin.PublishFormatter;
Expand Down Expand Up @@ -90,7 +89,6 @@ private Optional<PluginOption> getPublishQuitePlugin() {
private Optional<PluginOption> getPublishTokenPlugin() {
return configurationParameters
.get(PLUGIN_PUBLISH_TOKEN_PROPERTY_NAME)
.map(PublishTokenParser::parse)
.map(token -> PluginOption.forClass(PublishFormatter.class, token));
}

Expand Down
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,11 @@
<justification>https://github.com/cucumber/cucumber-jvm/pull/2099</justification>
<newValue>https://messages.cucumber.io/api/reports -X GET</newValue>
</item>
<item>
<code>java.class.removed</code>
<old>class io.cucumber.core.options.PublishTokenParser</old>
<justification>Internal API</justification>
</item>
</revapi.ignore>
</analysisConfiguration>
</configuration>
Expand Down

0 comments on commit 538725b

Please sign in to comment.