Skip to content

Commit 2cbea3f

Browse files
committed
fix-1715 : fix test
Signed-off-by: wind57 <[email protected]>
1 parent af298ab commit 2cbea3f

File tree

1 file changed

+4
-7
lines changed
  • spring-cloud-kubernetes-fabric8-config/src/test/java/org/springframework/cloud/kubernetes/fabric8/config/labeled_config_map_with_profile

1 file changed

+4
-7
lines changed

spring-cloud-kubernetes-fabric8-config/src/test/java/org/springframework/cloud/kubernetes/fabric8/config/labeled_config_map_with_profile/LabeledConfigMapWithProfile.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ static void setUpBeforeClass(KubernetesClient mockClient) {
103103

104104
// is taken
105105
Map<String, String> greenConfigMapK8s = Collections.singletonMap("six", "6");
106-
createConfigMap("green-configmap-k8s", greenConfigMapK8s, Collections.singletonMap("color", "green-k8s"));
106+
createConfigMap("green-configmap-k8s", greenConfigMapK8s, Collections.singletonMap("color", "green"));
107107

108108
// is taken
109109
Map<String, String> greenConfigMapProd = Collections.singletonMap("seven", "7");
@@ -160,17 +160,15 @@ void testGreen() {
160160
}
161161

162162
/**
163-
* we find "green-configmap" by labels, and since 'k8s' is an active profile, this one
164-
* is taken also (includeProfileSpecificSources=true)
163+
* found by labels
165164
*/
166165
@Test
167166
void testGreenK8s() {
168167
assertThat(greenK8s.getSix()).isEqualTo("6");
169168
}
170169

171170
/**
172-
* we find "green-configmap" by labels, and since 'prod' is an active profile, this
173-
* one is taken also (includeProfileSpecificSources=true)
171+
* found by labels
174172
*/
175173
@Test
176174
void testGreenProd() {
@@ -186,8 +184,7 @@ void testGreenPurple() {
186184
}
187185

188186
/**
189-
* we find "green-configmap" by labels, and since 'prod' is an active profile, this
190-
* one is taken also (includeProfileSpecificSources=true)
187+
* found by labels
191188
*/
192189
@Test
193190
void testGreenPurpleK8s() {

0 commit comments

Comments
 (0)