kibana/x-pack/test/detection_engine_api_integration
Frank Hassanabad 5a27e69c6b
[Security Solutions][Detection Engine] Unskips tests after ES promotion and adds deleteUserRole utility (#90533)
## Summary

Unskips tests after a ES promotion and adds a delete user role utility.

Ref:
https://github.com/elastic/kibana/issues/90229
https://github.com/elastic/kibana/issues/88302

Removes one `any` from the utils by switching to using `ProvidedType`

Before:
<img width="558" alt="Screen Shot 2021-02-05 at 2 45 37 PM" src="https://user-images.githubusercontent.com/1151048/107098890-8dce5b80-67cd-11eb-8f6e-51f83eef4647.png">

After:
<img width="513" alt="Screen Shot 2021-02-05 at 4 13 23 PM" src="https://user-images.githubusercontent.com/1151048/107098898-9161e280-67cd-11eb-8085-a5220938834e.png">

Turns out that return types on overloaded functions aren't easy fwiw and will fall on the bottom one which in this case looked to be `any` which we don't want:
https://github.com/Microsoft/TypeScript/issues/24275#issuecomment-390701982


### 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
2021-02-09 13:35:37 -07:00
..
basic Elastic License 2.0 (#90099) 2021-02-03 18:12:39 -08:00
common Elastic License 2.0 (#90099) 2021-02-03 18:12:39 -08:00
security_and_spaces [Security Solutions][Detection Engine] Unskips tests after ES promotion and adds deleteUserRole utility (#90533) 2021-02-09 13:35:37 -07:00
utils.ts Adds tests for issue with immutable (#90372) 2021-02-04 19:07:14 -07:00