-
Notifications
You must be signed in to change notification settings - Fork 8.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
Make Index Management functional and API integration tests robust against side effects introduced by Ingest Manager. #70533
Make Index Management functional and API integration tests robust against side effects introduced by Ingest Manager. #70533
Conversation
…inst side effects introduced by Ingest Manager.
Pinging @elastic/es-ui (Team:Elasticsearch UI) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but would you mind reverting 0f418bb in this PR and running against the latest snapshots (instructions)
x-pack/test/api_integration/apis/management/index_management/templates.js
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those failures are the ones tracked by #70535, LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Although as I commented I would even remove the functional test that could potentially break in the future and does not bring more confidence that our component integration tests provide.
expect(componentTemplateEmptyPrompt).to.be(true); | ||
// Verify content. Component templates may have been created by other apps, e.g. Ingest Manager, | ||
// so we don't make any assertion about the presence or absence of component templates. | ||
const componentTemplateList = await testSubjects.exists('componentTemplateList'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If no components are created automatically then this test would fail, right? I am not sure that we need this test, as this use case is covered by our component integration tests (mocked empty list = empty prompt, results = template list).
This reverts commit fecd11f.
Thanks @sebelga! The entire content area has that data test subject selector applied to it, so it will pass even if the list is empty and displays an empty prompt (or if it's showing the loading state or if there's an error with the request). I agree with you that it might not add any value beyond our component integration tests but I'd like to uncouple that change from the other changes in this PR. @cuff-links I'd like to hear your thoughts on this at some point. |
@sebelga Actually you're right, I overlooked the fact that the empty state will return early, so the selector isn't present. I'm going to fix this in another PR. |
💔 Build Failed
Failed CI StepsTest FailuresKibana Pipeline / kibana-xpack-agent / X-Pack Endpoint API Integration Without Ingest Tests.x-pack/test/endpoint_api_integration_no_ingest/apis/metadata·ts.Endpoint plugin test metadata api when ingest manager is not initialized "before all" hook for "metadata api should not return results"Standard Out
Stack Trace
Kibana Pipeline / kibana-xpack-agent / X-Pack Endpoint API Integration Without Ingest Tests.x-pack/test/endpoint_api_integration_no_ingest/apis/metadata·ts.Endpoint plugin test metadata api when ingest manager is not initialized "before all" hook for "metadata api should not return results"Standard Out
Stack Trace
Kibana Pipeline / x-pack-intake-agent / X-Pack Jest Tests.x-pack/plugins/security_solution/public/timelines/store/timeline.epicLocalStorage persist adding / reordering of a column correctlyStandard Out
Stack Trace
Build metrics
History
To update your PR or re-run it, just comment with: |
…st against side effects introduced by Ingest Manager. (#70533) (#70612) * Make Index Management functional and API integration tests robust against side effects introduced by Ingest Manager. (#70533) * Update component templates list to render empty prompt inside of content container. Show detail panel when deep-linked, even if there are no component templates. (#70633) Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
Fixes #70532
Addresses failures that were occurring in CI due to entities created by Ingest Manager: