Skip to content

Commit deb74c8

Browse files
committed
fix compilation
Signed-off-by: wind57 <[email protected]>
1 parent 6729ee4 commit deb74c8

File tree

10 files changed

+181
-116
lines changed

10 files changed

+181
-116
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,8 +499,7 @@ static class LocalTestConfig {
499499
@Bean
500500
KubernetesClientProperties kubernetesClientProperties() {
501501
return new KubernetesClientProperties(null, null, null, "default", null, null, null, null, null, null, null,
502-
null, null, null, null, null, null, null, null, null, null, null, null, null, null, null,
503-
null);
502+
null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null);
504503
}
505504

506505
@Bean

spring-cloud-kubernetes-client-discovery/src/main/java/org/springframework/cloud/kubernetes/client/discovery/KubernetesClientConfigServerBootstrapper.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@
1717
package org.springframework.cloud.kubernetes.client.discovery;
1818

1919
import java.util.Collections;
20+
import java.util.List;
2021

2122
import io.kubernetes.client.informer.SharedIndexInformer;
2223
import io.kubernetes.client.informer.SharedInformerFactory;
2324
import io.kubernetes.client.informer.cache.Lister;
2425
import io.kubernetes.client.openapi.ApiClient;
26+
import io.kubernetes.client.openapi.apis.CoreV1Api;
2527
import io.kubernetes.client.openapi.models.V1Endpoints;
2628
import io.kubernetes.client.openapi.models.V1EndpointsList;
2729
import io.kubernetes.client.openapi.models.V1Service;
@@ -96,8 +98,9 @@ public void initialize(BootstrapRegistry registry) {
9698
.sharedIndexInformerFor(endpointsApi, V1Endpoints.class, 0L, namespace);
9799
Lister<V1Endpoints> endpointsLister = new Lister<>(endpointsSharedIndexInformer.getIndexer());
98100
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(
99-
sharedInformerFactory, serviceLister, endpointsLister, serviceSharedIndexInformer,
100-
endpointsSharedIndexInformer, discoveryProperties);
101+
List.of(sharedInformerFactory), List.of(serviceLister), List.of(endpointsLister),
102+
List.of(serviceSharedIndexInformer), List.of(endpointsSharedIndexInformer), discoveryProperties,
103+
new CoreV1Api(apiClient));
101104
try {
102105
discoveryClient.afterPropertiesSet();
103106
return discoveryClient::getInstances;

spring-cloud-kubernetes-client-discovery/src/main/java/org/springframework/cloud/kubernetes/client/discovery/KubernetesInformerDiscoveryClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
import jakarta.annotation.PostConstruct;
3636
import org.apache.commons.logging.LogFactory;
3737

38-
import org.springframework.beans.factory.annotation.Autowired;
3938
import org.springframework.cloud.client.ServiceInstance;
4039
import org.springframework.cloud.client.discovery.DiscoveryClient;
4140
import org.springframework.cloud.kubernetes.commons.discovery.KubernetesDiscoveryProperties;
@@ -87,11 +86,12 @@ public class KubernetesInformerDiscoveryClient implements DiscoveryClient {
8786
public KubernetesInformerDiscoveryClient(List<SharedInformerFactory> sharedInformerFactories,
8887
List<Lister<V1Service>> serviceListers, List<Lister<V1Endpoints>> endpointsListers,
8988
List<SharedInformer<V1Service>> serviceInformers, List<SharedInformer<V1Endpoints>> endpointsInformers,
90-
KubernetesDiscoveryProperties properties) {
89+
KubernetesDiscoveryProperties properties, CoreV1Api coreV1Api) {
9190
this.sharedInformerFactories = sharedInformerFactories;
9291

9392
this.serviceListers = serviceListers;
9493
this.endpointsListers = endpointsListers;
94+
this.coreV1Api = coreV1Api;
9595
this.informersReadyFunc = () -> {
9696
boolean serviceInformersReady = serviceInformers.isEmpty() || serviceInformers.stream()
9797
.map(SharedInformer::hasSynced)

spring-cloud-kubernetes-client-discovery/src/main/java/org/springframework/cloud/kubernetes/client/discovery/KubernetesInformerDiscoveryClientAutoConfiguration.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import io.kubernetes.client.informer.SharedInformer;
2222
import io.kubernetes.client.informer.SharedInformerFactory;
2323
import io.kubernetes.client.informer.cache.Lister;
24+
import io.kubernetes.client.openapi.apis.CoreV1Api;
2425
import io.kubernetes.client.openapi.models.V1Endpoints;
2526
import io.kubernetes.client.openapi.models.V1Service;
2627
import org.apache.commons.logging.LogFactory;
@@ -77,9 +78,10 @@ public KubernetesDiscoveryClientHealthIndicatorInitializer indicatorInitializer(
7778
KubernetesInformerDiscoveryClient kubernetesClientInformerDiscoveryClient(
7879
SharedInformerFactory sharedInformerFactory, Lister<V1Service> serviceLister,
7980
Lister<V1Endpoints> endpointsLister, SharedInformer<V1Service> serviceInformer,
80-
SharedInformer<V1Endpoints> endpointsInformer, KubernetesDiscoveryProperties properties) {
81+
SharedInformer<V1Endpoints> endpointsInformer, KubernetesDiscoveryProperties properties,
82+
CoreV1Api coreV1Api) {
8183
return new KubernetesInformerDiscoveryClient(List.of(sharedInformerFactory), List.of(serviceLister),
82-
List.of(endpointsLister), List.of(serviceInformer), List.of(endpointsInformer), properties);
84+
List.of(endpointsLister), List.of(serviceInformer), List.of(endpointsInformer), properties, coreV1Api);
8385
}
8486

8587
@Bean
@@ -88,9 +90,10 @@ KubernetesInformerDiscoveryClient kubernetesClientInformerDiscoveryClient(
8890
KubernetesInformerDiscoveryClient selectiveNamespacesKubernetesInformerDiscoveryClient(
8991
List<SharedInformerFactory> sharedInformerFactories, List<Lister<V1Service>> serviceListers,
9092
List<Lister<V1Endpoints>> endpointsListers, List<SharedInformer<V1Service>> serviceInformers,
91-
List<SharedInformer<V1Endpoints>> endpointsInformers, KubernetesDiscoveryProperties properties) {
93+
List<SharedInformer<V1Endpoints>> endpointsInformers, KubernetesDiscoveryProperties properties,
94+
CoreV1Api coreV1Api) {
9295
return new KubernetesInformerDiscoveryClient(sharedInformerFactories, serviceListers, endpointsListers,
93-
serviceInformers, endpointsInformers, properties);
96+
serviceInformers, endpointsInformers, properties, coreV1Api);
9497
}
9598

9699
}

spring-cloud-kubernetes-client-discovery/src/main/java/org/springframework/cloud/kubernetes/client/discovery/reactive/KubernetesInformerReactiveDiscoveryClientAutoConfiguration.java

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import io.kubernetes.client.informer.SharedInformer;
2222
import io.kubernetes.client.informer.SharedInformerFactory;
2323
import io.kubernetes.client.informer.cache.Lister;
24+
import io.kubernetes.client.openapi.apis.CoreV1Api;
2425
import io.kubernetes.client.openapi.models.V1Endpoints;
2526
import io.kubernetes.client.openapi.models.V1Service;
2627
import org.apache.commons.logging.LogFactory;
@@ -30,11 +31,9 @@
3031
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
3132
import org.springframework.cloud.client.ReactiveCommonsClientAutoConfiguration;
3233
import org.springframework.cloud.client.discovery.composite.reactive.ReactiveCompositeDiscoveryClientAutoConfiguration;
33-
import org.springframework.cloud.client.discovery.event.InstanceRegisteredEvent;
3434
import org.springframework.cloud.client.discovery.health.DiscoveryClientHealthIndicatorProperties;
3535
import org.springframework.cloud.client.discovery.health.reactive.ReactiveDiscoveryClientHealthIndicator;
3636
import org.springframework.cloud.client.discovery.simple.reactive.SimpleReactiveDiscoveryClientAutoConfiguration;
37-
import org.springframework.cloud.kubernetes.client.KubernetesClientPodUtils;
3837
import org.springframework.cloud.kubernetes.client.discovery.ConditionalOnSelectiveNamespacesMissing;
3938
import org.springframework.cloud.kubernetes.client.discovery.ConditionalOnSelectiveNamespacesPresent;
4039
import org.springframework.cloud.kubernetes.client.discovery.KubernetesClientInformerAutoConfiguration;
@@ -52,8 +51,6 @@
5251
import org.springframework.context.annotation.Configuration;
5352
import org.springframework.core.log.LogAccessor;
5453

55-
import static org.springframework.cloud.kubernetes.commons.discovery.KubernetesDiscoveryClientHealthIndicatorInitializer.RegisteredEventSource;
56-
5754
/**
5855
* @author Ryan Baxter
5956
*/
@@ -104,9 +101,10 @@ KubernetesInformerReactiveDiscoveryClient kubernetesClientReactiveDiscoveryClien
104101
KubernetesInformerDiscoveryClient kubernetesClientInformerDiscoveryClient(
105102
SharedInformerFactory sharedInformerFactory, Lister<V1Service> serviceLister,
106103
Lister<V1Endpoints> endpointsLister, SharedInformer<V1Service> serviceInformer,
107-
SharedInformer<V1Endpoints> endpointsInformer, KubernetesDiscoveryProperties properties) {
108-
return new KubernetesInformerDiscoveryClient(sharedInformerFactory, serviceLister, endpointsLister,
109-
serviceInformer, endpointsInformer, properties);
104+
SharedInformer<V1Endpoints> endpointsInformer, KubernetesDiscoveryProperties properties,
105+
CoreV1Api coreV1Api) {
106+
return new KubernetesInformerDiscoveryClient(List.of(sharedInformerFactory), List.of(serviceLister),
107+
List.of(endpointsLister), List.of(serviceInformer), List.of(endpointsInformer), properties, coreV1Api);
110108
}
111109

112110
@Bean
@@ -115,9 +113,10 @@ KubernetesInformerDiscoveryClient kubernetesClientInformerDiscoveryClient(
115113
KubernetesInformerDiscoveryClient selectiveNamespacesKubernetesClientInformerDiscoveryClient(
116114
List<SharedInformerFactory> sharedInformerFactories, List<Lister<V1Service>> serviceListers,
117115
List<Lister<V1Endpoints>> endpointsListers, List<SharedInformer<V1Service>> serviceInformers,
118-
List<SharedInformer<V1Endpoints>> endpointsInformers, KubernetesDiscoveryProperties properties) {
116+
List<SharedInformer<V1Endpoints>> endpointsInformers, KubernetesDiscoveryProperties properties,
117+
CoreV1Api coreV1Api) {
119118
return new KubernetesInformerDiscoveryClient(sharedInformerFactories, serviceListers, endpointsListers,
120-
serviceInformers, endpointsInformers, properties);
119+
serviceInformers, endpointsInformers, properties, coreV1Api);
121120
}
122121

123122
}

spring-cloud-kubernetes-client-discovery/src/test/java/org/springframework/cloud/kubernetes/client/discovery/KubernetesDiscoveryClientFilterMetadataTest.java

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
import io.kubernetes.client.informer.cache.Cache;
2424
import io.kubernetes.client.informer.cache.Lister;
25+
import io.kubernetes.client.openapi.apis.CoreV1Api;
2526
import io.kubernetes.client.openapi.models.CoreV1EndpointPort;
2627
import io.kubernetes.client.openapi.models.CoreV1EndpointPortBuilder;
2728
import io.kubernetes.client.openapi.models.V1Endpoints;
@@ -36,8 +37,10 @@
3637
import org.junit.jupiter.api.BeforeEach;
3738
import org.junit.jupiter.api.Test;
3839

40+
import org.mockito.Mockito;
3941
import org.springframework.cloud.client.ServiceInstance;
4042
import org.springframework.cloud.kubernetes.commons.discovery.KubernetesDiscoveryProperties;
43+
import org.testcontainers.shaded.org.checkerframework.checker.units.qual.C;
4144

4245
import static java.util.Map.entry;
4346
import static java.util.stream.Collectors.toList;
@@ -62,6 +65,8 @@ class KubernetesDiscoveryClientFilterMetadataTest {
6265

6366
private Lister<V1Endpoints> endpointsLister;
6467

68+
private static final CoreV1Api CORE_V1_API = Mockito.mock(CoreV1Api.class);
69+
6570
@BeforeEach
6671
void beforeEach() {
6772
servicesCache = new Cache<>();
@@ -80,8 +85,9 @@ void testAllExtraMetadataDisabled() {
8085
KubernetesDiscoveryProperties properties = new KubernetesDiscoveryProperties(true, false, Set.of(), true, 60,
8186
false, null, Set.of(), Map.of(), null, metadata, 0, true);
8287

83-
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(STUB, servicesLister,
84-
endpointsLister, SERVICE_SHARED_INFORMER_STUB, ENDPOINTS_SHARED_INFORMER_STUB, properties);
88+
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(List.of(STUB),
89+
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
90+
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
8591

8692
setup(serviceId, "ns", Map.of("l1", "lab"), Map.of("l1", "lab"), Map.of(80, "http", 5555, ""));
8793

@@ -99,8 +105,9 @@ void testLabelsEnabled() {
99105
KubernetesDiscoveryProperties properties = new KubernetesDiscoveryProperties(true, false, Set.of(), true, 60,
100106
false, null, Set.of(), Map.of(), null, metadata, 0, true);
101107

102-
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(STUB, servicesLister,
103-
endpointsLister, SERVICE_SHARED_INFORMER_STUB, ENDPOINTS_SHARED_INFORMER_STUB, properties);
108+
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(List.of(STUB),
109+
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
110+
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
104111

105112
setup(serviceId, "ns", Map.of("l1", "v1", "l2", "v2"), Map.of("l1", "lab"), Map.of(80, "http", 5555, ""));
106113

@@ -119,8 +126,9 @@ void testLabelsEnabledWithPrefix() {
119126
KubernetesDiscoveryProperties properties = new KubernetesDiscoveryProperties(true, false, Set.of(), true, 60,
120127
false, null, Set.of(), Map.of(), null, metadata, 0, true);
121128

122-
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(STUB, servicesLister,
123-
endpointsLister, SERVICE_SHARED_INFORMER_STUB, ENDPOINTS_SHARED_INFORMER_STUB, properties);
129+
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(List.of(STUB),
130+
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
131+
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
124132

125133
setup(serviceId, "ns", Map.of("l1", "v1", "l2", "v2"), Map.of("l1", "lab"), Map.of(80, "http", 5555, ""));
126134

@@ -139,8 +147,9 @@ void testAnnotationsEnabled() {
139147
KubernetesDiscoveryProperties properties = new KubernetesDiscoveryProperties(true, false, Set.of(), true, 60,
140148
false, null, Set.of(), Map.of(), null, metadata, 0, true);
141149

142-
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(STUB, servicesLister,
143-
endpointsLister, SERVICE_SHARED_INFORMER_STUB, ENDPOINTS_SHARED_INFORMER_STUB, properties);
150+
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(List.of(STUB),
151+
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
152+
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
144153

145154
setup(serviceId, "ns", Map.of("l1", "v1"), Map.of("a1", "v1", "a2", "v2"), Map.of(80, "http", 5555, ""));
146155

@@ -159,8 +168,9 @@ void testAnnotationsEnabledWithPrefix() {
159168
KubernetesDiscoveryProperties properties = new KubernetesDiscoveryProperties(true, false, Set.of(), true, 60,
160169
false, null, Set.of(), Map.of(), null, metadata, 0, true);
161170

162-
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(STUB, servicesLister,
163-
endpointsLister, SERVICE_SHARED_INFORMER_STUB, ENDPOINTS_SHARED_INFORMER_STUB, properties);
171+
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(List.of(STUB),
172+
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
173+
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
164174

165175
setup(serviceId, "ns", Map.of("l1", "v1"), Map.of("a1", "v1", "a2", "v2"), Map.of(80, "http", 5555, ""));
166176

@@ -179,8 +189,9 @@ void testPortsEnabled() {
179189
KubernetesDiscoveryProperties properties = new KubernetesDiscoveryProperties(true, false, Set.of(), true, 60,
180190
false, null, Set.of(), Map.of(), null, metadata, 0, true);
181191

182-
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(STUB, servicesLister,
183-
endpointsLister, SERVICE_SHARED_INFORMER_STUB, ENDPOINTS_SHARED_INFORMER_STUB, properties);
192+
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(List.of(STUB),
193+
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
194+
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
184195

185196
setup(serviceId, "test", Map.of("l1", "v1"), Map.of("a1", "v1", "a2", "v2"), Map.of(80, "http", 5555, ""));
186197

@@ -199,8 +210,9 @@ void testPortsEnabledWithPrefix() {
199210
KubernetesDiscoveryProperties properties = new KubernetesDiscoveryProperties(true, false, Set.of(), true, 60,
200211
false, null, Set.of(), Map.of(), null, metadata, 0, true);
201212

202-
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(STUB, servicesLister,
203-
endpointsLister, SERVICE_SHARED_INFORMER_STUB, ENDPOINTS_SHARED_INFORMER_STUB, properties);
213+
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(List.of(STUB),
214+
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
215+
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
204216

205217
setup(serviceId, "ns", Map.of("l1", "v1"), Map.of("a1", "v1", "a2", "v2"), Map.of(80, "http", 5555, ""));
206218

@@ -219,8 +231,9 @@ void testLabelsAndAnnotationsAndPortsEnabledWithPrefix() {
219231
KubernetesDiscoveryProperties properties = new KubernetesDiscoveryProperties(true, false, Set.of(), true, 60,
220232
false, null, Set.of(), Map.of(), null, metadata, 0, true);
221233

222-
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(STUB, servicesLister,
223-
endpointsLister, SERVICE_SHARED_INFORMER_STUB, ENDPOINTS_SHARED_INFORMER_STUB, properties);
234+
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(List.of(STUB),
235+
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
236+
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
224237

225238
setup(serviceId, "ns", Map.of("l1", "la1"), Map.of("a1", "an1", "a2", "an2"), Map.of(80, "http", 5555, ""));
226239

spring-cloud-kubernetes-client-discovery/src/test/java/org/springframework/cloud/kubernetes/client/discovery/KubernetesDiscoveryClientServiceWithoutPortNameTests.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
import io.kubernetes.client.informer.cache.Cache;
2424
import io.kubernetes.client.informer.cache.Lister;
25+
import io.kubernetes.client.openapi.apis.CoreV1Api;
2526
import io.kubernetes.client.openapi.models.CoreV1EndpointPortBuilder;
2627
import io.kubernetes.client.openapi.models.V1EndpointAddressBuilder;
2728
import io.kubernetes.client.openapi.models.V1EndpointSubsetBuilder;
@@ -36,6 +37,7 @@
3637
import org.junit.jupiter.api.BeforeEach;
3738
import org.junit.jupiter.api.Test;
3839

40+
import org.mockito.Mockito;
3941
import org.springframework.cloud.client.ServiceInstance;
4042
import org.springframework.cloud.kubernetes.commons.discovery.KubernetesDiscoveryProperties;
4143

@@ -60,6 +62,8 @@ class KubernetesDiscoveryClientServiceWithoutPortNameTests {
6062

6163
private Lister<V1Endpoints> endpointsLister;
6264

65+
private static final CoreV1Api CORE_V1_API = Mockito.mock(CoreV1Api.class);
66+
6367
@BeforeEach
6468
void beforeEach() {
6569
servicesCache = new Cache<>();
@@ -90,8 +94,9 @@ void testDiscoveryWithoutAServicePortName() {
9094
KubernetesDiscoveryProperties properties = new KubernetesDiscoveryProperties(true, false, Set.of(NAMESPACE),
9195
true, 60, false, null, Set.of(), Map.of(), null, KubernetesDiscoveryProperties.Metadata.DEFAULT, 0,
9296
true);
93-
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(STUB, servicesLister,
94-
endpointsLister, SERVICE_SHARED_INFORMER_STUB, ENDPOINTS_SHARED_INFORMER_STUB, properties);
97+
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(List.of(STUB),
98+
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
99+
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
95100

96101
List<ServiceInstance> serviceInstances = discoveryClient.getInstances("no-port-name-service");
97102
Assertions.assertThat(serviceInstances.size()).isEqualTo(1);

0 commit comments

Comments
 (0)