Skip to content

Commit 822abfc

Browse files
committed
Merge branch '1.0.x'
2 parents 78cf7fd + 4a73d4e commit 822abfc

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

spring-cloud-kubernetes-config/src/test/java/org/springframework/cloud/kubernetes/config/ConfigMapsWithActiveProfilesNameSpringBootTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -35,13 +35,14 @@
3535
import org.springframework.test.context.junit4.SpringRunner;
3636
import org.springframework.test.web.reactive.server.WebTestClient;
3737

38+
import static org.springframework.boot.test.context.SpringBootTest.WebEnvironment.RANDOM_PORT;
3839
import static org.springframework.cloud.kubernetes.config.ConfigMapTestUtil.readResourceFile;
3940

4041
/**
4142
* @author Ali Shahbour
4243
*/
4344
@RunWith(SpringRunner.class)
44-
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, classes = App.class, properties = {
45+
@SpringBootTest(webEnvironment = RANDOM_PORT, classes = App.class, properties = {
4546
"spring.application.name=configmap-with-active-profile-name-example",
4647
"spring.cloud.kubernetes.reload.enabled=false" })
4748
@ActiveProfiles("development")

spring-cloud-kubernetes-leader/src/test/java/org/springframework/cloud/kubernetes/leader/LeaderAutoConfigurationTests.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,10 @@
3131
import static org.hamcrest.Matchers.containsString;
3232

3333
@RunWith(SpringRunner.class)
34-
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
35-
properties = { "spring.cloud.kubernetes.leader.autoStartup=false" // Make sure
36-
// test passes
37-
// without
38-
// Kubernetes
39-
// cluster
40-
})
34+
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, properties = {
35+
// Make sure test passes without Kubernetes cluster
36+
"spring.cloud.kubernetes.leader.autoStartup=false"
37+
})
4138
public class LeaderAutoConfigurationTests {
4239

4340
@Value("${local.server.port}")

0 commit comments

Comments
 (0)