Commit graph

3 commits

Author SHA1 Message Date
Tiago Costa
db3f866a0d
skip flaky suite (#184619) 2024-06-05 16:06:18 +01:00
Kevin Lacabane
b7f57a09cb
[Stack Monitoring] install packages before test suite runs (#165881)
## Summary

Closes https://github.com/elastic/kibana/issues/165043

Updates the approach to load packages in test suites by sending http
request before suite starts instead of using
`xpack.fleet.developer.bundledPackageLocation`

[Flaky test
runner](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/3075)
2023-09-08 13:32:30 +02:00
Kevin Lacabane
d9adcca543
[Stack Monitoring] implement baseline elasticsearch api tests for package and metricbeat data (#149161)
### Summary

Part of https://github.com/elastic/kibana/issues/148303
Closes https://github.com/elastic/kibana/issues/146067
Closes https://github.com/elastic/kibana/issues/146068

I investigated the failing tests but couldn't get to the root cause
quickly enough so I took the opportunity to port the tests to the
[monitoring_api_integration](https://github.com/elastic/kibana/tree/main/x-pack/test/monitoring_api_integration)
suite. This reimplements all the existing tests (plus missing ones for
the `ml_jobs` api) with fresh data.
By using the new testing approach we can remove the archived mappings
which greatly reduce execution times.

### Testing
- The suite was executed against by the [flaky test
runner](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/1804)
multiple times with no failures
- Test data is bundled in two archives (one for metricbeat and one for
package data) and can be loaded to verify their content: `node
scripts/es_archiver.js load
x-pack/test/monitoring_api_integration/archives/elasticsearch/single_node/(package|metricbeat)
--es-url=http://elastic:changeme@localhost:9200
--kibana-url=http://elastic:changeme@localhost:5601`

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-01-30 17:01:00 +01:00