Skip to content

Commit 05859a3

Browse files
committed
fix tests
Signed-off-by: wind57 <[email protected]>
1 parent e19b5bd commit 05859a3

File tree

1 file changed

+2
-2
lines changed
  • spring-cloud-kubernetes-integration-tests/spring-cloud-kubernetes-k8s-client-discovery/src/test/java/org/springframework/cloud/kubernetes/k8s/client/discovery

1 file changed

+2
-2
lines changed

spring-cloud-kubernetes-integration-tests/spring-cloud-kubernetes-k8s-client-discovery/src/test/java/org/springframework/cloud/kubernetes/k8s/client/discovery/TestAssertions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ static void assertPodMetadata(DiscoveryClient discoveryClient) {
133133
assertThat(wiremockInstance.getServiceId()).isEqualTo("service-wiremock");
134134
assertThat(wiremockInstance.getInstanceId()).isNotNull();
135135
assertThat(wiremockInstance.getHost()).isNotNull();
136-
assertThat(wiremockInstance.getMetadata()).isEqualTo(Map.of("k8s_namespace", "default", "type", "ClusterIP",
136+
assertThat(wiremockInstance.getMetadata()).isEqualTo(Map.of("k8s_namespace", "default", "type", "NodePort",
137137
"port.http", "8080", "app", "service-wiremock"));
138138

139139
}
@@ -147,7 +147,7 @@ static void assertPodMetadata(ReactiveDiscoveryClient discoveryClient) {
147147
assertThat(wiremockInstance.getServiceId()).isEqualTo("service-wiremock");
148148
assertThat(wiremockInstance.getInstanceId()).isNotNull();
149149
assertThat(wiremockInstance.getHost()).isNotNull();
150-
assertThat(wiremockInstance.getMetadata()).isEqualTo(Map.of("k8s_namespace", "default", "type", "ClusterIP",
150+
assertThat(wiremockInstance.getMetadata()).isEqualTo(Map.of("k8s_namespace", "default", "type", "NodePort",
151151
"port.http", "8080", "app", "service-wiremock"));
152152

153153
}

0 commit comments

Comments
 (0)