Disable auto-detection in tests that start Hazelcast

This commit updates test configurations to disable auto-detection of
Hazelcast instances.

See gh-31863
This commit is contained in:
Adrian Bob 2022-07-26 12:03:59 +03:00 committed by Stephane Nicoll
parent 782e3f75b6
commit aad9c8906a
7 changed files with 10 additions and 0 deletions

View File

@ -5,6 +5,7 @@
<map name="defaultCache" />
<network>
<join>
<auto-detection enabled="false"/>
<multicast enabled="false"/>
</join>
</network>

View File

@ -6,6 +6,7 @@
<map name="defaultCache" />
<network>
<join>
<auto-detection enabled="false" />
<multicast enabled="false"/>
</join>
</network>

View File

@ -131,6 +131,7 @@ class HazelcastAutoConfigurationServerTests {
@Test
void configInstanceWithName() {
Config config = new Config("my-test-instance");
config.getNetworkConfig().getJoin().getAutoDetectionConfig().setEnabled(false);
HazelcastInstance existing = Hazelcast.newHazelcastInstance(config);
try {
this.contextRunner.withUserConfiguration(HazelcastConfigWithName.class)
@ -180,6 +181,7 @@ class HazelcastAutoConfigurationServerTests {
@Bean
Config anotherHazelcastConfig() {
Config config = new Config();
config.getNetworkConfig().getJoin().getAutoDetectionConfig().setEnabled(false);
config.addQueueConfig(new QueueConfig("another-queue"));
return config;
}

View File

@ -5,6 +5,7 @@
<map name="defaultCache" />
<network>
<join>
<auto-detection enabled="false" />
<multicast enabled="false" />
</join>
</network>

View File

@ -1,5 +1,7 @@
hazelcast:
network:
join:
auto-detection:
enabled: false
multicast:
enabled: false

View File

@ -11,6 +11,7 @@
<network>
<join>
<auto-detection enabled="false" />
<multicast enabled="false"/>
</join>
</network>

View File

@ -1,6 +1,8 @@
hazelcast:
network:
join:
auto-detection:
enabled: false
multicast:
enabled: false