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

[Component templates] Fix failing API test #94831

Merged

Conversation

alisonelizabeth
Copy link
Contributor

Fixes #94773

The ES team recently merged elastic/elasticsearch#70314, which adds support for deleting multiple component templates. As part of this change, it looks like the error message returned when a component template doesn't exist was changed from IndexTemplateMissingException to ResourceNotFoundException (which is more appropriate). This PR updates the expected error message in the test.

As a follow-up, we should consider using the updated API rather than making a delete request per component template for bulk deletes. Since this failed test is preventing the promotion of the current Elasticsearch nightly snapshot, I think that enhancement is best addressed separately.

@alisonelizabeth alisonelizabeth added Feature:Index Management Index and index templates UI v8.0.0 Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more release_note:skip Skip the PR/issue when compiling release notes failed-es-promotion v7.13.0 labels Mar 17, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/es-ui (Team:Elasticsearch UI)

@tylersmalley
Copy link
Contributor

This PR will probably fail until the snapshot is promoted with the change. A couple options that come to mind:

  • Disable the test to allow the promotion of the snapshot and update this PR to re-enable the tests
  • Update this test to allow either response. A follow-up could be made to remove the other option.

@alisonelizabeth
Copy link
Contributor Author

👍 thanks @tylersmalley! I've skipped the test for now, and can open up a follow-up PR to re-enable.

@tylersmalley tylersmalley added the auto-backport Deprecated - use backport:version if exact versions are needed label Mar 17, 2021
@tylersmalley
Copy link
Contributor

tylersmalley commented Mar 17, 2021

Thanks, will merge, kick off a snapshot and report back when it's available.

Snapshot verifications:
master: https://kibana-ci.elastic.co/job/elasticsearch+snapshots+verify/2463/
7.x: https://kibana-ci.elastic.co/job/elasticsearch+snapshots+verify/2464/

@kibanamachine
Copy link
Contributor

💚 Backport successful

7.x / #94835

Successful backport PRs will be merged automatically after passing CI.

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Mar 17, 2021
* fix failing component templates  test

* temporarily skip test
tylersmalley pushed a commit that referenced this pull request Mar 17, 2021
* fix failing component templates  test

* temporarily skip test

Co-authored-by: Alison Goryachev <[email protected]>
@kibanamachine
Copy link
Contributor

kibanamachine commented Mar 17, 2021

💔 Build Failed

Failed CI Steps

Metrics [docs]

✅ unchanged

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed failed-es-promotion Feature:Index Management Index and index templates UI release_note:skip Skip the PR/issue when compiling release notes Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more v7.13.0 v8.0.0
Projects
None yet
4 participants