mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 11:05:39 -04:00
### 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>
17 lines
659 B
TypeScript
17 lines
659 B
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
* 2.0; you may not use this file except in compliance with the Elastic License
|
|
* 2.0.
|
|
*/
|
|
|
|
import { FtrProviderContext } from '../../api_integration/ftr_provider_context';
|
|
|
|
export default function ({ loadTestFile }: FtrProviderContext) {
|
|
describe('Monitoring Endpoints', function () {
|
|
loadTestFile(require.resolve('./apm'));
|
|
loadTestFile(require.resolve('./beats'));
|
|
loadTestFile(require.resolve('./elasticsearch'));
|
|
loadTestFile(require.resolve('./enterprisesearch'));
|
|
});
|
|
}
|