-
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
[UA] Update API integration tests #203308
[UA] Update API integration tests #203308
Conversation
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
Pinging @elastic/kibana-management (Team:Kibana Management) |
💚 Build Succeeded
Metrics [docs]
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', |
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.
To be an accurate mock we should rather change the value to elasticsearch.deprecation instead of removing the field completely
Superseded by #203418 |
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.