Skip to content

Commit

Permalink
[ML] Functional tests - explicitly delete jobs after setupModule tests (
Browse files Browse the repository at this point in the history
elastic#102882) (elastic#102913)

This PR explicitly deletes the jobs created by the `setupModule` tests.

Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
  • Loading branch information
kibanamachine and pheyos committed Jun 22, 2021
1 parent a899771 commit c8c4860
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions x-pack/test/api_integration/apis/ml/modules/setup_module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1048,6 +1048,9 @@ export default ({ getService }: FtrProviderContext) => {
for (const dashboard of testData.expected.dashboards) {
await ml.testResources.deleteDashboardById(dashboard);
}
for (const job of testData.expected.jobs) {
await ml.api.deleteAnomalyDetectionJobES(job.jobId);
}
await ml.api.cleanMlIndices();
});

Expand Down

0 comments on commit c8c4860

Please sign in to comment.