* Move all reporting tests into their own folder to allow for multiple kibana.yml configuration tests, including chromium * Add debugging and try to skip other tests an jenkins to speed things up * More debug output * more logging (remove other line which failed on jenkins) * Remove no sandbox flag, it doesn't help * Add fix for socket hangup and clean up tests * fix path to logstash_functional * Extend timeout for chromium, add verbose logging, add better comment, conditionally output curl command * fix path... again * Ah, other functional tests still need access to reporting page object, put it back * fix sp err * Add debug logs for screenshot stitching for png.bitblt error * Fix tests that don't pass logger to screenshotStitcher * Fix logger being undefined * Add more debug output * png has data, too much info to spit out * Add comment with link to issue for extra debug messages so they can be left in since so many passes * Dont use spawnSync with curl, use http.request instead, more support for it * Comment out chromium tests for now to avoid flakiness * Wait... lets at least make sure the other fix worked (the http.request instead of spawnsync and curl) * New http.request code doesn't seem to work on jenkins, timing out after 10 secs maybe * go back to spawnsync to see if it's an issue with the rxjs code or the http.request code * I think I figured it out... * Comment out tests to avoid flaky png error in the screenshot stitcher * Use a const for OSS archive path * use path.resolve correctly.
45 lines
1.7 KiB
JavaScript
45 lines
1.7 KiB
JavaScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License;
|
|
* you may not use this file except in compliance with the Elastic License.
|
|
*/
|
|
|
|
import {
|
|
SupertestWithoutAuthProvider,
|
|
UsageAPIProvider,
|
|
} from './services';
|
|
|
|
export default async function ({ readConfigFile }) {
|
|
|
|
const kibanaAPITestsConfig = await readConfigFile(require.resolve('../../../test/api_integration/config.js'));
|
|
const xPackFunctionalTestsConfig = await readConfigFile(require.resolve('../functional/config.js'));
|
|
const kibanaCommonConfig = await readConfigFile(require.resolve('../../../test/common/config.js'));
|
|
|
|
return {
|
|
testFiles: [require.resolve('./apis')],
|
|
servers: xPackFunctionalTestsConfig.get('servers'),
|
|
services: {
|
|
supertest: kibanaAPITestsConfig.get('services.supertest'),
|
|
esSupertest: kibanaAPITestsConfig.get('services.esSupertest'),
|
|
supertestWithoutAuth: SupertestWithoutAuthProvider,
|
|
es: kibanaCommonConfig.get('services.es'),
|
|
esArchiver: kibanaCommonConfig.get('services.esArchiver'),
|
|
usageAPI: UsageAPIProvider,
|
|
kibanaServer: kibanaCommonConfig.get('services.kibanaServer'),
|
|
},
|
|
esArchiver: xPackFunctionalTestsConfig.get('esArchiver'),
|
|
junit: {
|
|
reportName: 'X-Pack API Integration Tests',
|
|
},
|
|
env: xPackFunctionalTestsConfig.get('env'),
|
|
kbnTestServer: {
|
|
...xPackFunctionalTestsConfig.get('kbnTestServer'),
|
|
serverArgs: [
|
|
...xPackFunctionalTestsConfig.get('kbnTestServer.serverArgs'),
|
|
'--optimize.enabled=false',
|
|
],
|
|
},
|
|
esTestCluster: xPackFunctionalTestsConfig.get('esTestCluster'),
|
|
};
|
|
}
|