kibana/x-pack/test/functional/config.upgrade_assistant.ts
Walter Rafelsberger cdaa3d3851
[ML] Transforms: Enable SLO transforms installer on CI (#165470)
## Summary

This enables the installer for SLO transforms on CI.

- For the `many_fields_transform` performance journey, it will then look
for the "Create transform" on top of the table instead of the "Create
your first transform" button. Command to test the performance journey:
`node scripts/run_performance.js --journey-path
x-pack/performance/journeys/many_fields_transform.ts --skip-warmup`
- For the functional tests that assert the empty transform list, this
adds a command to delete all transforms before running those tests.
2023-09-22 17:13:38 +02:00

38 lines
1.2 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';
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
const functionalConfig = await readConfigFile(require.resolve('./config.base.js'));
return {
...functionalConfig.getAll(),
testFiles: [require.resolve('./apps/upgrade_assistant')],
junit: {
reportName: 'Chrome X-Pack UI Upgrade Assistant Functional Tests',
},
suiteTags: {
include: ['upgradeAssistant'],
},
esTestCluster: {
...functionalConfig.get('esTestCluster'),
serverArgs: [
'path.repo=/tmp/',
'xpack.security.authc.api_key.enabled=true',
'cluster.routing.allocation.disk.threshold_enabled=true', // make sure disk thresholds are enabled for UA cluster testing
'cluster.routing.allocation.disk.watermark.low=30%',
'cluster.info.update.interval=10s',
'cluster.max_shards_per_node=29',
],
},
};
}