Disable reporting for all "oss: false" integration tests (#107360)

* disable reporting for all the integration test with oss:false

* unskip test
This commit is contained in:
Mikhail Shustov 2021-08-02 18:44:50 +03:00 committed by GitHub
parent 169d75ff9f
commit 3bd9ff361d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 14 deletions

View file

@ -95,12 +95,6 @@ describe('migration v2', () => {
},
],
},
// reporting loads headless browser, that prevents nodejs process from exiting.
xpack: {
reporting: {
enabled: false,
},
},
},
{
oss,

View file

@ -24,8 +24,7 @@ async function removeLogFile() {
await unlink(logFilePath).catch(() => void 0);
}
// FLAKY: https://github.com/elastic/kibana/issues/96895
describe.skip('migration from 7.7.2-xpack with 100k objects', () => {
describe('migration from 7.7.2-xpack with 100k objects', () => {
let esServer: kbnTestServer.TestElasticsearchUtils;
let root: Root;
let coreStart: InternalCoreStart;

View file

@ -133,12 +133,6 @@ function createRoot() {
},
],
},
xpack: {
reporting: {
// browser install causes issues with Jest
enabled: false,
},
},
},
{
oss: false,

View file

@ -105,6 +105,17 @@ export function createRootWithCorePlugins(settings = {}, cliArgs: Partial<CliArg
username: kibanaServerTestUser.username,
password: kibanaServerTestUser.password,
},
// createRootWithSettings sets default value to "true", so undefined should be threatened as "true".
...(cliArgs.oss === false
? {
// reporting loads headless browser, that prevents nodejs process from exiting and causes test flakiness
xpack: {
reporting: {
enabled: false,
},
},
}
: {}),
};
return createRootWithSettings(