Skip to content

Add tests to ensure AAD isn't broken after performing a change on an alert / action#53333

Merged
mikecote merged 5 commits intoelastic:masterfrom
mikecote:alerting/aad-tests
Dec 31, 2019
Merged

Add tests to ensure AAD isn't broken after performing a change on an alert / action#53333
mikecote merged 5 commits intoelastic:masterfrom
mikecote:alerting/aad-tests

Conversation

@mikecote
Copy link
Copy Markdown
Contributor

@mikecote mikecote commented Dec 17, 2019

Resolves #47714

In this PR, I'm adding an API within the API integration test suite that will make sure a saved object can be decrypted when called. I'm using this API for each endpoint called for alerts and actions (create, update, disable, etc).

The test also caught a bug in the mute all API that would corrupt an alert. This is fixed within the x-pack/legacy/plugins/alerting/server/plugin.ts file of this PR.

@mikecote mikecote added Feature:Alerting v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.6.0 Team:ResponseOps Platform ResponseOps team (formerly the Cases and Alerting teams) t// labels Dec 17, 2019
@mikecote mikecote self-assigned this Dec 17, 2019
@mikecote mikecote marked this pull request as ready for review December 18, 2019 23:33
@mikecote
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@mikecote mikecote requested a review from a team December 18, 2019 23:38
Copy link
Copy Markdown
Contributor

@gmmorris gmmorris left a comment

Choose a reason for hiding this comment

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

LGTM
I like PRs that add seatbelts to our system :)

@mikecote
Copy link
Copy Markdown
Contributor Author

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

@mikecote
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

History

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

@elastic elastic deleted a comment from elasticmachine Dec 31, 2019
Copy link
Copy Markdown
Contributor

@peterschretlen peterschretlen left a comment

Choose a reason for hiding this comment

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

👍 LGTM

@mikecote mikecote merged commit 98ac7a6 into elastic:master Dec 31, 2019
mikecote added a commit to mikecote/kibana that referenced this pull request Dec 31, 2019
mikecote added a commit that referenced this pull request Dec 31, 2019
gmmorris added a commit to gmmorris/kibana that referenced this pull request Jan 2, 2020
* master:
  Bump year in NOTICE.txt
  Add kibanamachine support to Github PR comments (elastic#53852)
  Add tests to ensure AAD isn't broken after performing a change on an alert / action (elastic#53333)
  Skip failing test suite
  [Vega] Sample [Flights] Airport Connections (Hover Over Airport) visualization not working (elastic#53799)
  Do not remount applications between page navigations (elastic#53851)
  [Canvas] Refactor Canvas to no longer use componentWillReceiveProps (elastic#52129)
  [Canvas] Migrate usage collector to NP plugin (elastic#53303)
gmmorris added a commit to gmmorris/kibana that referenced this pull request Jan 2, 2020
* master:
  Bump year in NOTICE.txt
  Add kibanamachine support to Github PR comments (elastic#53852)
  Add tests to ensure AAD isn't broken after performing a change on an alert / action (elastic#53333)
  Skip failing test suite
  [Vega] Sample [Flights] Airport Connections (Hover Over Airport) visualization not working (elastic#53799)
  Do not remount applications between page navigations (elastic#53851)
  [Canvas] Refactor Canvas to no longer use componentWillReceiveProps (elastic#52129)
  [Canvas] Migrate usage collector to NP plugin (elastic#53303)
gmmorris added a commit to gmmorris/kibana that referenced this pull request Jan 2, 2020
* master:
  Bump year in NOTICE.txt
  Add kibanamachine support to Github PR comments (elastic#53852)
  Add tests to ensure AAD isn't broken after performing a change on an alert / action (elastic#53333)
  Skip failing test suite
  [Vega] Sample [Flights] Airport Connections (Hover Over Airport) visualization not working (elastic#53799)
  Do not remount applications between page navigations (elastic#53851)
  [Canvas] Refactor Canvas to no longer use componentWillReceiveProps (elastic#52129)
  [Canvas] Migrate usage collector to NP plugin (elastic#53303)
gmmorris added a commit to gmmorris/kibana that referenced this pull request Jan 2, 2020
* master:
  Fix suggested value for time_zone in range query (elastic#53841)
  Clean up generic hooks, use react-use instead (elastic#53822)
  Bump year in NOTICE.txt
  Add kibanamachine support to Github PR comments (elastic#53852)
  Add tests to ensure AAD isn't broken after performing a change on an alert / action (elastic#53333)
  Skip failing test suite
  [Vega] Sample [Flights] Airport Connections (Hover Over Airport) visualization not working (elastic#53799)
  Do not remount applications between page navigations (elastic#53851)
  [Canvas] Refactor Canvas to no longer use componentWillReceiveProps (elastic#52129)
  [Canvas] Migrate usage collector to NP plugin (elastic#53303)
Copy link
Copy Markdown
Contributor

@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

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 review Team:ResponseOps Platform ResponseOps team (formerly the Cases and Alerting teams) t// v7.6.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add alerting tests to ensure AAD isn't broken after any API calls

6 participants