kibana/x-pack/test/api_integration/apis/monitoring/cluster
Kevin Lacabane 5cf0d0f248
[Stack Monitoring] api tests for cluster and elasticsearch (#145138)
### Summary
Part of https://github.com/elastic/kibana/issues/119658

Add api integration tests for cluster and elasticsearch routes to
validate behavior when reading data ingested by elastic-agent.

We currently have a testing suite for legacy and another one for
metricbeat. Since metricbeat and agent documents only differ in their
metadata, for example agent will populate a `data_stream.*` property to
identify the document types while metricbeat uses `metricset.*`, the
tests assertion validating _business_ data should pass regardless of the
documents source. With this in mind the metricbeat tests were updated to
run the tests twice, one time with metricbeat data and a second time
with package data.

To generate the archives the `metrics-*` mappings were extracted with
esArchiver from an elasticsearch with the package installed, and the
documents were transformed from the metricbeat documents with [this
script](https://gist.github.com/klacabane/654497ff86053c60af6df15fa6f6f657).

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-11-22 14:02:50 +01:00
..
fixtures [ResponseOps] Visualize alerting metrics in Stack Monitoring (#123726) 2022-06-09 13:26:58 -07:00
index.js [Stack Monitoring] add back api integration tests and update esArchiver data (#126998) 2022-03-08 08:13:58 -05:00
list.js Skip ESTF failures (#136912) 2022-07-22 10:59:44 -06:00
list_mb.js [Stack Monitoring] api tests for cluster and elasticsearch (#145138) 2022-11-22 14:02:50 +01:00
overview.js fix all violations 2022-04-16 01:37:30 -05:00
overview_mb.js [Stack Monitoring] api tests for cluster and elasticsearch (#145138) 2022-11-22 14:02:50 +01:00