-
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] Add API integration tests for start and stop datafeeds #110961
[ML] Add API integration tests for start and stop datafeeds #110961
Conversation
Pinging @elastic/ml-ui (:ml) |
x-pack/test/api_integration/apis/ml/jobs/force_start_datafeeds.ts
Outdated
Show resolved
Hide resolved
x-pack/test/api_integration/apis/ml/jobs/force_start_datafeeds.ts
Outdated
Show resolved
Hide resolved
x-pack/test/api_integration/apis/ml/jobs/force_start_datafeeds.ts
Outdated
Show resolved
Hide resolved
x-pack/test/api_integration/apis/ml/jobs/force_start_datafeeds_spaces.ts
Show resolved
Hide resolved
afterEach(async () => { | ||
await ml.api.closeAnomalyDetectionJob(jobIdSpace1); | ||
await ml.api.closeAnomalyDetectionJob(jobIdSpace2); | ||
await ml.api.cleanMlIndices(); | ||
await ml.testResources.cleanMLSavedObjects(); | ||
}); |
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.
should it be a part of after
?
x-pack/test/api_integration/apis/ml/jobs/force_start_datafeeds.ts
Outdated
Show resolved
Hide resolved
x-pack/test/api_integration/apis/ml/jobs/force_start_datafeeds_spaces.ts
Outdated
Show resolved
Hide resolved
x-pack/test/api_integration/apis/ml/jobs/stop_datafeeds_spaces.ts
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
Great to see these tests coming! 🎉
Checking test stability in a flaky test runner job ... no failure in 50 runs ✔️ |
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
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: |
…110961) * [ML] Add API integration tests for start and stop datafeeds * [ML] Edits to setup and clean-up steps following review
…110961) * [ML] Add API integration tests for start and stop datafeeds * [ML] Edits to setup and clean-up steps following review
Summary
Adds API integration tests for the endpoints for starting and stopping anomaly detection datafeeds, including checks for the behavior across spaces.
Part of #106113 and #63700
Checklist
Delete any items that are not applicable to this PR.