Create plugin mock for event log plugin#57048
Conversation
|
Pinging @elastic/kibana-alerting-services (Team:Alerting Services) |
💚 Build SucceededTo update your PR or re-run it, just comment with: |
pmuellr
left a comment
There was a problem hiding this comment.
LGTM; per the previous mocks PR I reviewed, I'm guessing we'll want to provide an easy-to-get eventLog logger instance as well as the setup/start mocks, but we can wait till we need it ...
I saw there's an event logger mock already so I modified it to be consistent and made it return from the event log service 👍 |
|
@elasticmachine merge upstream |
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
* Create plugin mock for event log plugin * Share event logger mock with event log service Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Create plugin mock for event log plugin * Share event logger mock with event log service Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* master: (34 commits) [Index management] Server-side NP ready (elastic#56829) Webhook action - make user and password secrets optional (elastic#56823) [DOCS] Removes reference to IRC (elastic#57245) [Monitoring] NP migration: Local angular module (elastic#51823) [SIEM] Adds ECS link to help menu (elastic#57104) Ensure http interceptors are shares across lifecycle methods (elastic#57150) [Remote clusters] Migrate server code out of legacy (elastic#56781) fixes render bug in alert list (elastic#57152) siem 7.6 updates (elastic#57169) Make the update alert API key API work when AAD is out of sync (elastic#56640) fix(NA): MaxListenersExceededWarning on getLoggerStream (elastic#57133) [Metrics UI] Setup commonly used time ranges in timepicker (elastic#56701) [Maps] set filter.meta.key to geoFieldName so query passes filterMatchesIndex when ignoreFilterIfFieldNotInIndex is true (elastic#56692) Create plugin mock for event log plugin (elastic#57048) fix ts error on master (elastic#57236) Don't create API key for disabled alerts when calling create API (elastic#57041) Fix enable and disable API to still work when AAD is out of sync (elastic#56634) [DOCS] Canvas embed objects (elastic#57156) Delete autocomplete namespace (elastic#57187) Security - Inject logout url (elastic#57201) ...
Resolves #57046.
In this PR, I'm creating a
server/mocks.tsfile within the event log plugin to allow other plugins to mock event log plugin in their tests.