* Revert "[DOCS] Removes redundant index.asciidoc files (#19192)" This reverts commitd11b5aae9a
. * Revert "[typescript] add typescript support for the server and browser (#19104)" This reverts commitc6112067fc
. * Revert "Option to run kibana from build for CI (#19125)" This reverts commit5969860303
.
49 lines
1.2 KiB
JavaScript
49 lines
1.2 KiB
JavaScript
import { format as formatUrl } from 'url';
|
|
import { OPTIMIZE_BUNDLE_DIR, esTestConfig, kbnTestConfig } from '@kbn/test';
|
|
import {
|
|
KibanaServerProvider,
|
|
EsProvider,
|
|
EsArchiverProvider,
|
|
RetryProvider,
|
|
} from './services';
|
|
|
|
export default function () {
|
|
const servers = {
|
|
kibana: kbnTestConfig.getUrlParts(),
|
|
elasticsearch: esTestConfig.getUrlParts(),
|
|
};
|
|
|
|
return {
|
|
servers,
|
|
|
|
esTestCluster: {
|
|
license: 'oss',
|
|
from: 'snapshot',
|
|
serverArgs: [
|
|
],
|
|
},
|
|
|
|
kibanaServerArgs: [
|
|
'--env=development',
|
|
'--logging.json=false',
|
|
'--no-base-path',
|
|
`--server.port=${kbnTestConfig.getPort()}`,
|
|
`--optimize.watchPort=${kbnTestConfig.getPort()}`,
|
|
'--optimize.watchPrebuild=true',
|
|
'--status.allowAnonymous=true',
|
|
'--optimize.enabled=true',
|
|
`--optimize.bundleDir=${OPTIMIZE_BUNDLE_DIR}`,
|
|
`--elasticsearch.url=${formatUrl(servers.elasticsearch)}`,
|
|
`--elasticsearch.username=${servers.elasticsearch.username}`,
|
|
`--elasticsearch.password=${servers.elasticsearch.password}`,
|
|
],
|
|
|
|
services: {
|
|
kibanaServer: KibanaServerProvider,
|
|
retry: RetryProvider,
|
|
es: EsProvider,
|
|
esArchiver: EsArchiverProvider,
|
|
}
|
|
};
|
|
}
|