Skip to content

Commit c413f9a

Browse files
committed
Merge branch '2.7.x'
Closes gh-31884
2 parents b507fa9 + 53a652e commit c413f9a

File tree

8 files changed

+21
-7
lines changed

8 files changed

+21
-7
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/resources/hazelcast.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<map name="defaultCache" />
66
<network>
77
<join>
8-
<tcp-ip enabled="false"/>
8+
<auto-detection enabled="false"/>
99
<multicast enabled="false"/>
1010
</join>
1111
</network>

spring-boot-project/spring-boot-actuator/src/test/resources/hazelcast.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<map name="defaultCache" />
77
<network>
88
<join>
9-
<tcp-ip enabled="false"/>
9+
<auto-detection enabled="false"/>
1010
<multicast enabled="false"/>
1111
</join>
1212
</network>

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/hazelcast/HazelcastAutoConfigurationServerTests.java

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import java.util.Map;
2020

2121
import com.hazelcast.config.Config;
22+
import com.hazelcast.config.JoinConfig;
2223
import com.hazelcast.config.QueueConfig;
2324
import com.hazelcast.core.Hazelcast;
2425
import com.hazelcast.core.HazelcastInstance;
@@ -138,7 +139,7 @@ void unknownConfigFile() {
138139

139140
@Test
140141
void configInstanceWithName() {
141-
Config config = new Config("my-test-instance");
142+
Config config = createTestConfig("my-test-instance");
142143
HazelcastInstance existing = Hazelcast.newHazelcastInstance(config);
143144
try {
144145
this.contextRunner.withUserConfiguration(HazelcastConfigWithName.class)
@@ -205,6 +206,14 @@ void autoConfiguredContextCanOverrideManagementContextUsingCustomizer() {
205206
});
206207
}
207208

209+
private static Config createTestConfig(String instanceName) {
210+
Config config = new Config(instanceName);
211+
JoinConfig join = config.getNetworkConfig().getJoin();
212+
join.getAutoDetectionConfig().setEnabled(false);
213+
join.getMulticastConfig().setEnabled(false);
214+
return config;
215+
}
216+
208217
@Configuration(proxyBeanMethods = false)
209218
static class HazelcastConfigWithName {
210219

@@ -220,7 +229,7 @@ static class HazelcastConfigNoName {
220229

221230
@Bean
222231
Config anotherHazelcastConfig() {
223-
Config config = new Config();
232+
Config config = createTestConfig("another-test-instance");
224233
config.addQueueConfig(new QueueConfig("another-queue"));
225234
return config;
226235
}

spring-boot-project/spring-boot-autoconfigure/src/test/resources/hazelcast.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<map name="defaultCache" />
66
<network>
77
<join>
8-
<tcp-ip enabled="false" />
8+
<auto-detection enabled="false" />
99
<multicast enabled="false" />
1010
</join>
1111
</network>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
hazelcast:
22
network:
33
join:
4+
auto-detection:
5+
enabled: false
46
multicast:
57
enabled: false

spring-boot-project/spring-boot-autoconfigure/src/test/resources/org/springframework/boot/autoconfigure/hazelcast/hazelcast-specific.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<network>
1313
<join>
14-
<tcp-ip enabled="false"/>
14+
<auto-detection enabled="false" />
1515
<multicast enabled="false"/>
1616
</join>
1717
</network>

spring-boot-project/spring-boot-autoconfigure/src/test/resources/org/springframework/boot/autoconfigure/hazelcast/hazelcast-specific.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
hazelcast:
22
network:
33
join:
4+
auto-detection:
5+
enabled: false
46
multicast:
57
enabled: false
68

spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-session-hazelcast/src/main/resources/hazelcast.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<hazelcast xmlns="http://www.hazelcast.com/schema/config"
22
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:schemaLocation="http://www.hazelcast.com/schema/config
4-
http://www.hazelcast.com/schema/config/hazelcast-config-4.0.xsd">
4+
http://www.hazelcast.com/schema/config/hazelcast-config-4.2.xsd">
55

66
<map name="spring:session:sessions">
77
<attributes>
@@ -11,6 +11,7 @@
1111

1212
<network>
1313
<join>
14+
<auto-detection enabled="false"/>
1415
<multicast enabled="false"/>
1516
</join>
1617
</network>

0 commit comments

Comments
 (0)