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

Added server api tests for event log service #63540

Merged

Conversation

YulNaumenko
Copy link
Contributor

Resolve #55642

@YulNaumenko YulNaumenko added Feature:Alerting v8.0.0 release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v7.8.0 labels Apr 14, 2020
@YulNaumenko YulNaumenko requested a review from a team as a code owner April 14, 2020 22:52
@YulNaumenko YulNaumenko self-assigned this Apr 14, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-alerting-services (Team:Alerting Services)

…functional-tests

# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
…functional-tests

# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
@mikecote mikecote self-requested a review April 16, 2020 13:14
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.

Changes LGTM, I have a few notes to avoid flakiness. I'd like @pmuellr to also review this PR to make sure it tests what he hoped for in the issue.

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.

This is looking pretty good! I made a note about not needing the start/stop timing - I think - but doing a test of those slightly differently. There are a number of logger.info()'s which I assume will get cleaned up before merge.

I'm a little worried about flakiness, given the async nature of the logger, suggest we run this through the flaky test runner. In the future, when we buffer events instead of just writing them individually in async fashion, things will get even flakier - but we'll worry about that when we get there.

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@YulNaumenko YulNaumenko merged commit 2af91b3 into elastic:master Apr 17, 2020
YulNaumenko added a commit to YulNaumenko/kibana that referenced this pull request Apr 17, 2020
* Added server api tests for event log service

* fixed tests

* fixed type check issue

* Fixed failing tests

* fixed jest tests

* Fixed due to comments

* Removed flackiness tests

* fixed type check error

* Fixed func test
YulNaumenko added a commit to YulNaumenko/kibana that referenced this pull request Apr 17, 2020
* Added server api tests for event log service

* fixed tests

* fixed type check issue

* Fixed failing tests

* fixed jest tests

* Fixed due to comments

* Removed flackiness tests

* fixed type check error

* Fixed func test
YulNaumenko added a commit that referenced this pull request Apr 18, 2020
* Added server api tests for event log service (#63540)

* Added server api tests for event log service

* fixed tests

* fixed type check issue

* Fixed failing tests

* fixed jest tests

* Fixed due to comments

* Removed flackiness tests

* fixed type check error

* Fixed func test

* fixed compatibility issues

* fixed type check
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 Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v7.8.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[alerting event log] add more tests for existing but unused code
5 participants