-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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 /filters and /calendars #72564
Conversation
Pinging @elastic/ml-ui (:ml) |
Checking test stability in a flaky test runner job... |
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.
A couple of minor comments, but otherwise LGTM.
const updatedCalendar = getCalendarResult.body.calendars[0]; | ||
const updatedEvents = getEventsResult.body.events; | ||
|
||
// TODO: need to implement update description in the API |
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.
Did you want to do this as part of this PR?
const validFilters = [ | ||
{ | ||
filterId: 'filter_power', | ||
requestBody: { description: 'Test delete filter #1', items }, |
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.
Copy and paste error? Should these be Test update filter #1
etc?
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.
Thanks for adding these tests @qn895 !
Left a couple suggestions.
x-pack/test/api_integration/apis/ml/calendars/update_calendars.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.
Good update! Just left two comments around the calendar event check.
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
@elasticmachine merge upstream |
💚 Build SucceededBuild metrics
History
To update your PR or re-run it, just comment with: |
…2564) Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
…2564) Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Summary
This PR adds API integration testing to the
api/ml/filters/
andapi/ml/calendars
endpoints. Related to #63700Filters
Calendars & calendar events
Checklist
Delete any items that are not applicable to this PR.