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

Update ContentCutoffPlugin and enable test in DoubleSubscriptionPluginSpec #281

Merged
merged 3 commits into from
Sep 14, 2018
Merged

Update ContentCutoffPlugin and enable test in DoubleSubscriptionPluginSpec #281

merged 3 commits into from
Sep 14, 2018

Conversation

kvosper
Copy link
Contributor

@kvosper kvosper commented Sep 13, 2018

Fixes #203


// TODO: Mikko: Styx 2.0 API: Test fails. Look into it.
ignore("Tolerates plugins that break the content observable chain") {
it("Tolerates plugins that break the content observable chain") {
val testClient = aggregatingTestClient("localhost", styxServer.httpPort)

withTestClient(testClient) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this test should assert that a PluginError has been logged. It could also assert that relevant metrics have been incremented.

Otherwise this test suggests there is nothing unusual about breaking a content observable chain.

.flatMap(it -> {
LOGGER.info("do something with full content: " + it.bodyAs(UTF_8));

return StyxObservable.of(response); // Error: Returns an already consumed response.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would move the comment to the line above the return statement.

@kvosper kvosper requested a review from dvlato September 13, 2018 14:52
@mikkokar mikkokar merged commit 9f91ee2 into ExpediaGroup:master Sep 14, 2018
@kvosper kvosper deleted the doubleSubscription branch September 14, 2018 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants