[Cases] Check cases configuration on functional testing (#112968)

This commit is contained in:
Christos Nasikas 2021-09-23 18:47:54 +03:00 committed by GitHub
parent b3bb48f0d6
commit 1153afc428
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,6 +93,8 @@ export function createTestConfig(name: string, options: CreateTestConfigOptions)
.isDirectory()
);
const casesConfig = ['--xpack.cases.enabled=true'];
return {
testFiles: testFiles ? testFiles : [require.resolve('../tests/common')],
servers,
@ -115,6 +117,7 @@ export function createTestConfig(name: string, options: CreateTestConfigOptions)
...xPackApiIntegrationTestsConfig.get('kbnTestServer'),
serverArgs: [
...xPackApiIntegrationTestsConfig.get('kbnTestServer.serverArgs'),
...casesConfig,
`--xpack.actions.allowedHosts=${JSON.stringify(['localhost', 'some.non.existent.com'])}`,
`--xpack.actions.enabledActionTypes=${JSON.stringify(enabledActionTypes)}`,
'--xpack.eventLog.logEntries=true',