Test: Fix netty integ test to ensure local mode is not used.
closes #12788
This commit is contained in:
parent
3354a816fc
commit
6fea6c542c
|
@ -39,7 +39,7 @@ import static org.elasticsearch.test.ESIntegTestCase.Scope;
|
||||||
import static org.hamcrest.Matchers.*;
|
import static org.hamcrest.Matchers.*;
|
||||||
|
|
||||||
@ClusterScope(scope = Scope.SUITE, numDataNodes = 1, numClientNodes = 0)
|
@ClusterScope(scope = Scope.SUITE, numDataNodes = 1, numClientNodes = 0)
|
||||||
@LuceneTestCase.AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/12788")
|
//@LuceneTestCase.AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/12788")
|
||||||
public class NettyTransportMultiPortIntegrationIT extends ESIntegTestCase {
|
public class NettyTransportMultiPortIntegrationIT extends ESIntegTestCase {
|
||||||
|
|
||||||
private static int randomPort = -1;
|
private static int randomPort = -1;
|
||||||
|
@ -56,6 +56,7 @@ public class NettyTransportMultiPortIntegrationIT extends ESIntegTestCase {
|
||||||
.put("network.host", "127.0.0.1")
|
.put("network.host", "127.0.0.1")
|
||||||
.put(TransportModule.TRANSPORT_TYPE_KEY, "netty")
|
.put(TransportModule.TRANSPORT_TYPE_KEY, "netty")
|
||||||
.put("node.mode", "network")
|
.put("node.mode", "network")
|
||||||
|
.put("node.local", false) // ensure randomization doesn't set local mode, since this has higher precedence
|
||||||
.put("transport.profiles.client1.port", randomPortRange)
|
.put("transport.profiles.client1.port", randomPortRange)
|
||||||
.put("transport.profiles.client1.publish_host", "127.0.0.7")
|
.put("transport.profiles.client1.publish_host", "127.0.0.7")
|
||||||
.put("transport.profiles.client1.publish_port", "4321")
|
.put("transport.profiles.client1.publish_port", "4321")
|
||||||
|
|
Loading…
Reference in New Issue