Skip to content

Commit d71abd5

Browse files
committed
wip
Signed-off-by: wind57 <[email protected]>
1 parent c6a2c37 commit d71abd5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ void kubernetesReactiveDiscoveryDisabledWithSelectiveNamespaces() {
284284
setup("spring.main.cloud-platform=KUBERNETES", "spring.cloud.config.enabled=false",
285285
"spring.cloud.discovery.reactive.enabled=false", "spring.cloud.kubernetes.discovery.namespaces=a,b");
286286
applicationContextRunner.run(context -> {
287-
assertThat(context).doesNotHaveBean(KubernetesClientInformerDiscoveryClient.class);
287+
assertThat(context).hasSingleBean(KubernetesClientInformerDiscoveryClient.class);
288288
assertThat(context).doesNotHaveBean(KubernetesClientInformerReactiveDiscoveryClient.class);
289289

290290
assertThat(context).doesNotHaveBean(ReactiveDiscoveryClientHealthIndicator.class);
@@ -324,7 +324,6 @@ void blockingDisabledWithSelectiveNamespaces() {
324324
"spring.cloud.discovery.blocking.enabled=false", "spring.cloud.kubernetes.discovery.namespaces=a,b");
325325
applicationContextRunner.run(context -> {
326326
assertThat(context).hasSingleBean(KubernetesClientInformerDiscoveryClient.class);
327-
assertThat(context).hasBean("selectiveNamespacesKubernetesClientInformerDiscoveryClient");
328327
assertThat(context).hasSingleBean(KubernetesClientInformerReactiveDiscoveryClient.class);
329328

330329
// simple from commons and ours
@@ -394,7 +393,6 @@ void healthEnabledClassNotPresentWithSelectiveNamespaces() {
394393
"spring.cloud.kubernetes.discovery.namespaces=a,b");
395394
applicationContextRunner.run(context -> {
396395
assertThat(context).hasSingleBean(KubernetesClientInformerDiscoveryClient.class);
397-
assertThat(context).hasBean("selectiveNamespacesKubernetesClientInformerDiscoveryClient");
398396
assertThat(context).hasSingleBean(KubernetesClientInformerReactiveDiscoveryClient.class);
399397

400398
assertThat(context).doesNotHaveBean(ReactiveDiscoveryClientHealthIndicator.class);
@@ -411,6 +409,7 @@ private void setup(String... properties) {
411409
KubernetesClientAutoConfiguration.class, SimpleReactiveDiscoveryClientAutoConfiguration.class,
412410
UtilAutoConfiguration.class, KubernetesDiscoveryPropertiesAutoConfiguration.class,
413411
KubernetesClientInformerAutoConfiguration.class,
412+
KubernetesClientInformerDiscoveryClientAutoConfiguration.class,
414413
KubernetesCommonsAutoConfiguration.class,
415414
KubernetesClientDiscoveryClientSpelAutoConfiguration.class))
416415
.withUserConfiguration(ApiClientConfig.class)
@@ -424,6 +423,7 @@ private void setupWithFilteredClassLoader(String name, String... properties) {
424423
KubernetesClientAutoConfiguration.class, SimpleReactiveDiscoveryClientAutoConfiguration.class,
425424
UtilAutoConfiguration.class, KubernetesDiscoveryPropertiesAutoConfiguration.class,
426425
KubernetesCommonsAutoConfiguration.class, KubernetesClientInformerAutoConfiguration.class,
426+
KubernetesClientInformerDiscoveryClientAutoConfiguration.class,
427427
KubernetesClientDiscoveryClientSpelAutoConfiguration.class))
428428
.withUserConfiguration(ApiClientConfig.class)
429429
.withClassLoader(new FilteredClassLoader(name))

0 commit comments

Comments
 (0)