mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 19:13:14 -04:00
## Summary This PR adds validation only for internal routes that use the `rRule` schema. ## Testing 1. Create a rule in main. 2. Snooze the rule by using the API as ``` POST /internal/alerting/rule/<ruleId>/_snooze { "snooze_schedule": { "id": "e58e2340-dba6-454c-8308-b2ca66a7cf7b", "duration": 86400000, "rRule": { "dtstart": "2024-09-04T09:27:37.011Z", "tzid": "invalid", "freq": 2, "interval": 1, "byweekday": [ "invalid" ] } } } ``` 4. Go to the rules page and verify that the rules are not loaded. 5. Switch to my PR. 6. Go to the rules page and verify that the rules load. ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios --------- Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> |
||
---|---|---|
.. | ||
group1 | ||
group2 | ||
group3 | ||
group4 | ||
group5 | ||
scenarios.ts | ||
setup.ts |