mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 18:27:59 -04:00
* Remove endpoint from the default packages * Change the default spinner for the initial load * Export fleet endpoint package as a constant * Use constants for special packages * Simplify type signature of `isRequiredPackage` * Remove unused types * Simplify required and default package definitions * Treat REQUIRED_PACKAGES as independent from DEFAULT_PACKAGES We want to keep the assumption that the lists contain the same packages only in `epm/constants.ts` * Install all default packages, not only the required ones * Document the purpose of each package list * Handle auto-update for non-default packages * Make `endpoint` non-removable * Make endpoint package be installed by default in tests * Rename requiredPackages to unremovablePackages * Fix type check * Add Endpoint to be installed by default on Fleet tests too Co-authored-by: Jen Huang <its.jenetic@gmail.com>
35 lines
1.3 KiB
TypeScript
35 lines
1.3 KiB
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 { FtrConfigProviderContext } from '@kbn/test';
|
|
import { createEndpointDockerConfig, getRegistryUrlAsArray } from './registry';
|
|
import { services } from './services';
|
|
|
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
|
const xPackAPITestsConfig = await readConfigFile(require.resolve('../api_integration/config.ts'));
|
|
|
|
return {
|
|
...xPackAPITestsConfig.getAll(),
|
|
testFiles: [require.resolve('./apis')],
|
|
dockerServers: createEndpointDockerConfig(),
|
|
services,
|
|
junit: {
|
|
reportName: 'X-Pack Endpoint API Integration Tests',
|
|
},
|
|
kbnTestServer: {
|
|
...xPackAPITestsConfig.get('kbnTestServer'),
|
|
serverArgs: [
|
|
...xPackAPITestsConfig.get('kbnTestServer.serverArgs'),
|
|
// if you return an empty string here the kibana server will not start properly but an empty array works
|
|
...getRegistryUrlAsArray(),
|
|
// always install Endpoint package by default when Fleet sets up
|
|
`--xpack.fleet.packages.0.name=endpoint`,
|
|
`--xpack.fleet.packages.0.version=latest`,
|
|
],
|
|
},
|
|
};
|
|
}
|