Remove ES node discovery settings from test configuration. (#27125)

This commit is contained in:
Aleh Zasypkin 2018-12-15 00:52:55 +01:00 committed by GitHub
parent 459099199e
commit 6995ea9513
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View file

@ -42,7 +42,6 @@ export function createEsTestCluster(options = {}) {
.toString(36)
.substring(2);
const clusterName = `test-${randomHash}`;
const nodeName = `node-${randomHash}`;
const config = {
version: esTestConfig.getVersion(),
installPath: resolve(basePath, clusterName),
@ -79,9 +78,7 @@ export function createEsTestCluster(options = {}) {
esArgs: [
`cluster.name=${clusterName}`,
`http.port=${port}`,
`node.name=${nodeName}`,
`discovery.zen.ping.unicast.hosts=localhost:${port}`,
`cluster.initial_master_nodes=${nodeName}`,
'discovery.type=single-node',
...esArgs,
],
});

View file

@ -103,7 +103,7 @@ export default function ({ getService }) {
'cluster_stats.nodes.count.ingest',
'cluster_stats.nodes.count.master',
'cluster_stats.nodes.count.total',
'cluster_stats.nodes.discovery_types.zen2',
'cluster_stats.nodes.discovery_types.single-node',
'cluster_stats.nodes.fs.available_in_bytes',
'cluster_stats.nodes.fs.free_in_bytes',
'cluster_stats.nodes.fs.total_in_bytes',