-
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
[ML] Job import and export functional tests #110578
[ML] Job import and export functional tests #110578
Conversation
@elasticmachine merge upstream |
@elasticmachine merge upstream |
Pinging @elastic/ml-ui (:ml) |
Checking test stability in a flaky test runner job ... no ML failure in 50 runs (just one unrelated licensing plugin failure) ✔️ |
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.
Great to see these tests coming! 🎉
Left a few comments.
...ck/test/functional/apps/ml/stack_management_jobs/files_to_import/anomaly_detection_jobs.json
Outdated
Show resolved
Hide resolved
...test/functional/apps/ml/stack_management_jobs/files_to_import/data_frame_analytics_jobs.json
Outdated
Show resolved
Hide resolved
Checking test stability for the added |
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.
Nice that the export jobs tests have joined this PR 😁
Left a few comments / questions.
...l/public/application/components/import_export_jobs/export_jobs_flyout/export_jobs_flyout.tsx
Outdated
Show resolved
Hide resolved
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 🎉
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.
Spotted a typo in an existing callout, but otherwise LGTM.
<div data-test-subj="mlJobMgmtImportJobsFileReadErrorCallout"> | ||
<FormattedMessage | ||
id="xpack.ml.importExport.importFlyout.cannotReadFileCallout.body" | ||
defaultMessage="Please select a file contained Machine Learning jobs which have been exported from Kibana using the Export Jobs option" |
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.
Not related to this PR, but noticed a typo in this message - should be containing
not contained
.
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
* [ML] Job import export functional tests * adding title check * adding dfa tests * removing export file * adds bad data test * commented code * adding export job tests * adds version to file names * improving tests * removing comment Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
* [ML] Job import export functional tests * adding title check * adding dfa tests * removing export file * adds bad data test * commented code * adding export job tests * adds version to file names * improving tests * removing comment Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: James Gowdy <jgowdy@elastic.co>
Adds tests to import a files containing anomaly detection and data frame analytics jobs.
Tests that files are read correctly, listing the expected job ids and the job type.
Tests that the jobs are imported correctly and exist in the jobs lists.
Also tests a file which contains bad data.
Adds tests to export anomaly detection and data frame analytics jobs to file and then compares these exported jobs to the originally created jobs.