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

[Stack Monitoring] Fix Kibana rules and actions integration test #138090

Merged
merged 3 commits into from
Aug 8, 2022

Conversation

crespocarlos
Copy link
Contributor

@crespocarlos crespocarlos commented Aug 4, 2022

Summary

According to #136912, the test fails when running on cloud, because:

This arrises from the API integration tests being run on cloud (in containers) while the archive data for assertions is not from a containerized system.

Since there are some tests in the monitoring test suite already validating the apm.config.container attribute and the entire cluster, we could keep this test by changing the assertion to validate only what's necessary

Fixes: #137739

@crespocarlos crespocarlos force-pushed the 137739-estf-test-skip branch from e11ed98 to 95efcd3 Compare August 8, 2022 09:35
const { body } = await supertest
.post('/api/monitoring/v1/clusters/SvjwrFv6Rvuqjm9-cSSVEg')
.set('kbn-xsrf', 'xxx')
.send({ timeRange, codePaths: ['all'] })
.expect(200);
expect(body).to.eql(fixture);

expect(body[0].kibana.rules).to.eql(fixture[0].kibana.rules);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

rules is the most important things to be validated by this test, based on the documents that are created by the archiver.

@crespocarlos crespocarlos changed the title Skip rules and actions integration tests for esft test runs [Stack Monitoring] Fix Kibana rules and actions integration test Aug 8, 2022
@crespocarlos crespocarlos marked this pull request as ready for review August 8, 2022 11:21
@crespocarlos crespocarlos requested a review from a team as a code owner August 8, 2022 11:21
@crespocarlos crespocarlos added backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) release_note:skip Skip the PR/issue when compiling release notes Feature:Stack Monitoring Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services labels Aug 8, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/infra-monitoring-ui (Team:Infra Monitoring UI)

@crespocarlos
Copy link
Contributor Author

@elasticmachine merge upstream

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

@crespocarlos crespocarlos merged commit 9cc5037 into elastic:main Aug 8, 2022
@crespocarlos crespocarlos deleted the 137739-estf-test-skip branch August 8, 2022 13:24
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Aug 8, 2022
…stic#138090)

* Skip rules and actions integration tests for esft test runs

* Change what is validated in the kibana rules unit test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 9cc5037)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.4

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Aug 8, 2022
…stic#138090) (elastic#138269)

* Skip rules and actions integration tests for esft test runs

* Change what is validated in the kibana rules unit test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 9cc5037)

Co-authored-by: Carlos Crespo <crespocarlos@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) Feature:Stack Monitoring release_note:skip Skip the PR/issue when compiling release notes Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v8.4.0 v8.5.0
Projects
None yet
5 participants