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

[UA] Update API integration tests #203308

Closed

Conversation

ElenaStoeva
Copy link
Contributor

Fixes #203044

Summary

This PR updates the API integration tests, removing a property from the deprecation mock which causes 9.0 Es to fail with error illegal_argument_exception: [constant_keyword] field [data_stream.dataset] only accepts values that are equal to the value defined in the mappings [elasticsearch.deprecation], but got [deprecation.elasticsearch].

Upon checking the UA plugin code, I don't see any dependency on this property which should be updated - it it only used in the deprecation mock for the test.

@ElenaStoeva ElenaStoeva added 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 Feature:Upgrade Assistant backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) labels Dec 6, 2024
@ElenaStoeva ElenaStoeva self-assigned this Dec 6, 2024
Copy link

@JVerwolf JVerwolf left a comment

Choose a reason for hiding this comment

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

LGTM

@ElenaStoeva ElenaStoeva marked this pull request as ready for review December 6, 2024 18:46
@ElenaStoeva ElenaStoeva requested a review from a team as a code owner December 6, 2024 18:46
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-management (Team:Kibana Management)

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

cc @ElenaStoeva

@@ -30,7 +30,6 @@ const deprecationMock = {
message:
'[types removal] Specifying include_type_name in get index template requests is deprecated.',
'data_stream.type': 'logs',
'data_stream.dataset': 'deprecation.elasticsearch',
Copy link
Contributor

Choose a reason for hiding this comment

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

To be an accurate mock we should rather change the value to elasticsearch.deprecation instead of removing the field completely

@rudolf
Copy link
Contributor

rudolf commented Dec 9, 2024

Superseded by #203418

@rudolf rudolf closed this Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) Feature:Upgrade Assistant 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
Projects
None yet
4 participants