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

Extend the Health API basic YAML tests #108811

Merged
merged 4 commits into from
May 21, 2024

Conversation

nielsbauman
Copy link
Contributor

The health node might not have received the health info from all nodes yet before the execution of this test, resulting in an "unknown" status. We make the status assertion more lenient to allow for this uncertainty. Additionally, we add some more assertions for the basic response structure of the other indicators.

Fixes #107796

The health node might not have received the health info from all
nodes yet before the execution of this test, resulting in an
"unknown" status. We make the status assertion more lenient to
allow for this uncertainty. Additionally, we add some more
assertions for the basic response structure of the other indicators.
@nielsbauman nielsbauman added >test Issues or PRs that are addressing/adding tests Team:Data Management Meta label for data/management team :Data Management/Health v8.15.0 labels May 19, 2024
@nielsbauman nielsbauman requested a review from gmarouli May 19, 2024 17:09
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

@nielsbauman nielsbauman requested a review from a team as a code owner May 19, 2024 17:48
Copy link
Contributor

@gmarouli gmarouli left a comment

Choose a reason for hiding this comment

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

Assuming the CI is happy, LGTM! Thanks for fixing this, so happy we are unmuting this test!

@nielsbauman nielsbauman requested a review from gmarouli May 20, 2024 10:18
@gmarouli
Copy link
Contributor

Hm, this is different than I expected, why did you create a health folder for ilm and slm and did not add just another yaml file in the existing folder?

@nielsbauman
Copy link
Contributor Author

Hm, this is different than I expected, why did you create a health folder for ilm and slm and did not add just another yaml file in the existing folder?

Didn't put too much thought into it tbh, but I thought it made sense because those folders are testing different features. Is there any reason I shouldn't do that?

@gmarouli
Copy link
Contributor

Didn't put too much thought into it tbh, but I thought it made sense because those folders are testing different features. Is there any reason I shouldn't do that?

I do not think they are different features. It's the health of ILM in one case and SLM in the other. I think it makes sense to keep them together. Don't you think?

@nielsbauman
Copy link
Contributor Author

I don't have a strong opinion; I'm fine with either. I've moved them to the ilm directory.

Copy link
Contributor

@gmarouli gmarouli left a comment

Choose a reason for hiding this comment

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

LGTM, thank you @nielsbauman !

@nielsbauman nielsbauman merged commit e44ee4f into elastic:main May 21, 2024
15 checks passed
@nielsbauman nielsbauman deleted the extend-health-yaml-test branch May 21, 2024 06:12
jedrazb pushed a commit to jedrazb/elasticsearch that referenced this pull request May 21, 2024
The health node might not have received the health info from all
nodes yet before the execution of this test, resulting in an
"unknown" status. We make the status assertion more lenient to
allow for this uncertainty. Additionally, we add some more
assertions for the basic response structure of the other indicators.
nielsbauman added a commit to nielsbauman/elasticsearch that referenced this pull request May 28, 2024
The health node might not have received the health info from all
nodes yet before the execution of this test, resulting in an
"unknown" status. We make the status assertion more lenient to
allow for this uncertainty. Additionally, we add some more
assertions for the basic response structure of the other indicators.
nielsbauman added a commit to nielsbauman/elasticsearch that referenced this pull request May 28, 2024
The health node might not have received the health info from all
nodes yet before the execution of this test, resulting in an
"unknown" status. We make the status assertion more lenient to
allow for this uncertainty. Additionally, we add some more
assertions for the basic response structure of the other indicators.
elasticsearchmachine pushed a commit that referenced this pull request May 29, 2024
* Extend the Health API basic YAML tests (#108811)

The health node might not have received the health info from all
nodes yet before the execution of this test, resulting in an
"unknown" status. We make the status assertion more lenient to
allow for this uncertainty. Additionally, we add some more
assertions for the basic response structure of the other indicators.

* Fix YAML syntax

* Merge and bump Health API YAML tests (#109009)

* Remove data stream checks due to missing module
elasticsearchmachine pushed a commit that referenced this pull request May 29, 2024
* Extend the Health API basic YAML tests (#108811)

The health node might not have received the health info from all
nodes yet before the execution of this test, resulting in an
"unknown" status. We make the status assertion more lenient to
allow for this uncertainty. Additionally, we add some more
assertions for the basic response structure of the other indicators.

* Merge and bump Health API YAML tests (#109009)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Data Management/Health Team:Data Management Meta label for data/management team >test Issues or PRs that are addressing/adding tests v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI] CoreWithSecurityClientYamlTestSuiteIT test {yaml=health/10_basic/cluster health basic test} failing
4 participants