mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -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>
25 lines
769 B
TypeScript
25 lines
769 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 path from 'path';
|
|
|
|
const PACKAGES = [
|
|
{ name: 'beat', version: '0.0.1' },
|
|
{ name: 'elasticsearch', version: '1.2.0' },
|
|
{ name: 'enterprisesearch', version: '1.0.0' },
|
|
];
|
|
|
|
export const getPackagesArgs = (): string[] => {
|
|
return PACKAGES.flatMap((pkg, i) => {
|
|
return [
|
|
`--xpack.fleet.packages.${i}.name=${pkg.name}`,
|
|
`--xpack.fleet.packages.${i}.version=${pkg.version}`,
|
|
];
|
|
});
|
|
};
|
|
|
|
export const bundledPackagesLocation = path.join(path.dirname(__filename), '/fixtures/packages');
|