mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[ftr] define default FTR services for serverless (#161946)
Cypress tests were failing with esArchiver service unavailability. This PR fixes it by adding basic services (es, kibanaServier, esArchive & retry) from `@kbn/ftr-common-functional-services` in shared FTR configuration file. This way all the child config files will have these services pre-loaded. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
16ae310a7f
commit
818efd2554
3 changed files with 6 additions and 1 deletions
|
@ -20,7 +20,6 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
|||
...svlSharedConfig.get('esTestCluster.serverArgs'),
|
||||
// define custom es server here
|
||||
// API Keys is enabled at the top level
|
||||
'xpack.security.enabled=true',
|
||||
],
|
||||
},
|
||||
kbnTestServer: {
|
||||
|
|
|
@ -10,6 +10,7 @@ import { format as formatUrl } from 'url';
|
|||
|
||||
import { REPO_ROOT } from '@kbn/repo-info';
|
||||
import { esTestConfig, kbnTestConfig, kibanaServerTestUser } from '@kbn/test';
|
||||
import { commonFunctionalServices } from '@kbn/ftr-common-functional-services';
|
||||
|
||||
export default async () => {
|
||||
const servers = {
|
||||
|
@ -66,6 +67,10 @@ export default async () => {
|
|||
// Used by FTR to recognize serverless project and change its behavior accordingly
|
||||
serverless: true,
|
||||
|
||||
services: {
|
||||
...commonFunctionalServices,
|
||||
},
|
||||
|
||||
// overriding default timeouts from packages/kbn-test/src/functional_test_runner/lib/config/schema.ts
|
||||
// so we can easily adjust them for serverless where needed
|
||||
timeouts: {
|
||||
|
|
|
@ -26,5 +26,6 @@
|
|||
"@kbn/telemetry-plugin",
|
||||
"@kbn/telemetry-collection-xpack-plugin",
|
||||
"@kbn/telemetry-tools",
|
||||
"@kbn/ftr-common-functional-services",
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue