-
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
[data views] Reenable MKI test - change data import tool to be serverless compatible #181349
[data views] Reenable MKI test - change data import tool to be serverless compatible #181349
Conversation
/ci |
/ci |
...t_serverless/functional/test_suites/common/management/data_views/_data_view_create_delete.ts
Show resolved
Hide resolved
/ci |
/ci |
/ci |
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery) |
…tkime/kibana into reenable_mki_test_data_view_creation
/ci |
/ci |
/ci |
@@ -31,7 +29,11 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { | |||
await esArchiver.loadIfNeeded( | |||
'x-pack/test_serverless/functional/es_archives/kibana_sample_data_flights_index_pattern' | |||
); | |||
await kibanaServer.importExport.load( |
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.
Question: if this fixes the MKI error, isn't L29 + L42 redundant?
@pheyos wrote in the issue
The root cause is in both cases direct system indices access. AFAICS, this is happening when loading / unloading the archive x-pack/test_serverless/functional/es_archives/kibana_sample_data_flights_index_pattern. This kind of access is not available in MKI and the tests need to be adjusted (e.g. by loading things through kibanaServer.importExport or other APIs).
Since those functions are still here, should it work? will it work when they are removed?
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.
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.
Yes, that's correct @mattkime. The other issue was reported quite a while back and I suspect some other things have changed as well in the mean time. I ran the tests against an observability MKI project and they passed.
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.
Code changes LGTM 👍 I didn't run it on MKI though so hopefully our QA friends can help with that.
...t_serverless/functional/test_suites/common/management/data_views/_data_view_create_delete.ts
Outdated
Show resolved
Hide resolved
…tkime/kibana into reenable_mki_test_data_view_creation
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
/ci |
/ci |
💚 Build Succeeded
Metrics [docs]Async chunks
Canvas Sharable Runtime
History
To update your PR or re-run it, just comment with: cc @mattkime |
Summary
Change data import / export method so test works in MKI environment.
Closes #171479 and #180568
Verified by running functional test runner run locally against MKI environment.