-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Ingest Pipelines] Fix functional tests #159336
[Ingest Pipelines] Fix functional tests #159336
Conversation
@elasticmachine merge upstream |
Pinging @elastic/platform-deployment-management (Team:Deployment Management) |
Thanks for having a look at this @ElenaStoeva! I believe this pipelines are suppoused to be cleaned up by whoever created them, so its ok for our tests to expect to have the empty state in the UI. For the And for the other two perhaps a test is not cleaning up after themselves? 🤔 |
Hey @sabarasaba, thanks for looking into this and for sending me the conversation about the Regarding the For the Finally, I noticed that these 3 pipelines are regenerated even after I delete them in the test environment. So it seems the problem is not that the test user is not able to delete them, but that they always get recreated. Overall, I wonder if we should change the tests so that they match the new scenario with the autogenerated pipelines and so they don't fail in the future if another such pipeline is added to Elasticsearch. What do you think? |
Thanks for looking into this @ElenaStoeva! My suggestion would be to make this test more future-proof. We can create our own "test" pipeline as part of the test setup and confirm it exists in UI. Then, we should make sure to delete on cleanup. That way, the test isn't dependent on any changes that might be made outside of our control. |
Thanks for the suggestion @alisonelizabeth! I think this is a great idea for making the test future-proof. |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @ElenaStoeva |
Thanks for updating the test @ElenaStoeva! This looks good. Have you had a chance to run it through the flaky test runner yet? Let me know if you need help here. |
Thanks for looking into this @alisonelizabeth! I just ran the flaky test runner and it passed: https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2417 |
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. Thanks @ElenaStoeva!
Fixes #157511
Summary
This PR fixes the functional tests for Ingest Pipelines. Apparently, previously the test environment didn't have any automatically generated ingest pipelines and the tests were expecting an empty screen, but now there are three auto-generated managed pipelines, which is why the tests were failing.
Checklist