Skip to content
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

Create unit test for registerBuiltInActionTypes and move common code #45648

Merged
merged 2 commits into from
Sep 13, 2019

Conversation

YulNaumenko
Copy link
Contributor

@YulNaumenko YulNaumenko commented Sep 13, 2019

Created unit test for x-pack/legacy/plugins/actions/server/builtin_action_types/index.ts and move common code from each action type tests.

Fixes #45444

@YulNaumenko YulNaumenko requested review from pmuellr, mikecote and a team September 13, 2019 15:50
@YulNaumenko YulNaumenko self-assigned this Sep 13, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-stack-services

@elasticmachine
Copy link
Contributor

💔 Build Failed

Copy link
Contributor

@mikecote mikecote left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks good from my perspective. Will let @pmuellr take a look as well. LGTM on green CI!

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Member

@pmuellr pmuellr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, made a comment about some duplicate code, not worth waiting for another CI tho.

Man I love merging pink code!!!

:shipit:


const ACTION_TYPE_ID = '.webhook';
const configUtilsMock: ActionsConfigurationUtilities = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit; I think we can export the one in index.test.ts, and import it here; not a big deal, because if they diverge in the future I think we'd get some type errors and it would be obvious to fix it then; and it's only a test.

@YulNaumenko YulNaumenko merged commit c6e7859 into elastic:master Sep 13, 2019
YulNaumenko added a commit to YulNaumenko/kibana that referenced this pull request Sep 16, 2019
…lastic#45648)

* Create unit test for registerBuiltInActionTypes and move common code
YulNaumenko added a commit that referenced this pull request Sep 16, 2019
…45648) (#45797)

* Create unit test for registerBuiltInActionTypes and move common code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Alerting release_note:skip Skip the PR/issue when compiling release notes v7.5.0 v8.0.0
Projects
None yet
4 participants