rollup jobs functional UI test can't be run twice #39135
Labels
Team:Kibana Management
Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more
test_xpack_functional
test
Describe the feature: The existing test can only be run successfully once. If you try to run it again it fails for several reasons;
We only have a data-test-subj
createRollupJobButton
on the empty rollup job page. If you run the test when there's an existing rollup job you get a job list view and the button on that page doesn't have the data-test-subj.The data-test-subj above is easy enough to fix, but the test still can't pass a second time because it would try to create a job with the same name and that's not allowed.
A. one option, is to add a test at the end which deletes the rollup job.
B. use unique job names (append date in milliseconds to it or something)
"actively running jobs have their config in the cluster state. All jobs (active or otherwise) also have a copy of the config in the mapping _meta field of the rollup index"
"there's a pr up to add a flag to delete the config when deleting the job"
Here's a bit of changes I played around with to add the data-test-subj and to append a timestamp to the job name (but maybe should also append to the rollup job output index name?);
cc/ @cjcenizal @Rasroh
The text was updated successfully, but these errors were encountered: