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

Fail doc tests when any shard fails #18979

Merged
merged 1 commit into from
Jun 20, 2016

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented Jun 20, 2016

ES only sends a non-200 response all shards fail but we should
fail the tests generated by docs if any of them fail.

Depending on the outcome of #18978 this might be a temporary
workaround.

@nik9000 nik9000 added >docs General docs changes >test Issues or PRs that are addressing/adding tests review v5.0.0-alpha4 labels Jun 20, 2016
* framework doesn't allow us to has assertions in the setup
* section so we have to skip it there.
*/
if (false == inSetup && false == path.startsWith('_cat')) {
Copy link
Contributor

Choose a reason for hiding this comment

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

can you add a comment about the _cat exclusion as well?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah!

@jpountz
Copy link
Contributor

jpountz commented Jun 20, 2016

LGTM

@nik9000 nik9000 force-pushed the painless_fail_when_bad branch from 780ae26 to c627b63 Compare June 20, 2016 16:09
ES only sends a non-200 response all shards fail but we should
fail the tests generated by docs if any of them fail.

Depending on the outcome of elastic#18978 this might be a temporary
workaround.
@nik9000 nik9000 force-pushed the painless_fail_when_bad branch from c627b63 to 6569d35 Compare June 20, 2016 16:49
@nik9000 nik9000 merged commit 6569d35 into elastic:master Jun 20, 2016
@clintongormley clintongormley added :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache and removed :Plugin Lang Painless labels Feb 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Scripting Scripting abstractions, Painless, and Mustache >docs General docs changes >test Issues or PRs that are addressing/adding tests v5.0.0-alpha4
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants