Skip to content

Commit 53a652e

Browse files
committed
Merge branch '2.6.x' into 2.7.x
Closes gh-31883
2 parents 9cb614c + e92c64f commit 53a652e

File tree

11 files changed

+25
-12
lines changed

11 files changed

+25
-12
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-hazelcast3/src/main/resources/hazelcast.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
<network>
1616
<join>
17-
<tcp-ip enabled="false"/>
1817
<multicast enabled="false"/>
1918
</join>
2019
</network>

spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-hazelcast4/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ description = "Spring Boot Hazelcast 4 smoke test"
77

88
configurations.all {
99
resolutionStrategy {
10-
force "com.hazelcast:hazelcast:4.0.5"
11-
force "com.hazelcast:hazelcast-spring:4.0.5"
10+
force "com.hazelcast:hazelcast:4.2.5"
11+
force "com.hazelcast:hazelcast-spring:4.2.5"
1212
}
1313
}
1414

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<hazelcast xmlns="http://www.hazelcast.com/schema/config"
22
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="http://www.hazelcast.com/schema/config hazelcast-config-4.0.xsd">
3+
xsi:schemaLocation="http://www.hazelcast.com/schema/config hazelcast-config-4.2.xsd">
44
<map name="countries">
55
<time-to-live-seconds>600</time-to-live-seconds>
66
</map>
@@ -13,7 +13,7 @@
1313

1414
<network>
1515
<join>
16-
<tcp-ip enabled="false"/>
16+
<auto-detection enabled="false" />
1717
<multicast enabled="false"/>
1818
</join>
1919
</network>

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)