-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Stack Monitoring] api tests for logstash (#145351)
### Summary Part of #119658 Add api integration tests for logstash 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: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
- Loading branch information
1 parent
4b0d93d
commit 9cb4950
Showing
15 changed files
with
25,588 additions
and
3,190 deletions.
There are no files selected for viewing
Binary file added
BIN
+9.38 KB
x-pack/test/api_integration/apis/monitoring/es_archives/logstash_package/data.json.gz
Binary file not shown.
966 changes: 966 additions & 0 deletions
966
x-pack/test/api_integration/apis/monitoring/es_archives/logstash_package/mappings.json
Large diffs are not rendered by default.
Oops, something went wrong.
3,034 changes: 1,517 additions & 1,517 deletions
3,034
x-pack/test/api_integration/apis/monitoring/logstash/fixtures/node_detail_8.json
Large diffs are not rendered by default.
Oops, something went wrong.
3,030 changes: 1,515 additions & 1,515 deletions
3,030
x-pack/test/api_integration/apis/monitoring/logstash/fixtures/node_detail_advanced_8.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+85.3 KB
...k/test/functional/es_archives/monitoring/logstash/changing_pipelines_package/data.json.gz
Binary file not shown.
Oops, something went wrong.