Skip to content

Commit

Permalink
[Stack Monitoring] implement baseline elasticsearch api tests for pac…
Browse files Browse the repository at this point in the history
…kage and metricbeat data (#149161)

### Summary

Part of #148303
Closes #146067
Closes #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 <[email protected]>
  • Loading branch information
klacabane and kibanamachine authored Jan 30, 2023
1 parent c4ea96e commit d9adcca
Show file tree
Hide file tree
Showing 32 changed files with 342 additions and 22,101 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,12 @@
export default function ({ loadTestFile }) {
describe('Elasticsearch', () => {
loadTestFile(require.resolve('./overview'));
loadTestFile(require.resolve('./overview_mb'));
loadTestFile(require.resolve('./nodes'));
loadTestFile(require.resolve('./nodes_mb'));
loadTestFile(require.resolve('./node_detail'));
loadTestFile(require.resolve('./node_detail_mb'));
loadTestFile(require.resolve('./node_detail_advanced'));
loadTestFile(require.resolve('./node_detail_advanced_mb'));
loadTestFile(require.resolve('./indices'));
loadTestFile(require.resolve('./indices_mb'));
loadTestFile(require.resolve('./index_detail'));
loadTestFile(require.resolve('./index_detail_mb'));
loadTestFile(require.resolve('./ccr'));
loadTestFile(require.resolve('./ccr_mb'));
loadTestFile(require.resolve('./ccr_shard'));
loadTestFile(require.resolve('./ccr_shard_mb'));
});
}

This file was deleted.

Binary file not shown.
Binary file not shown.
Loading

0 comments on commit d9adcca

Please sign in to comment.