Disable informer autoconfiguration. Fixes #927

This commit is contained in:
Ryan Baxter
2021-12-05 19:38:15 -05:00
parent 9f65c95983
commit 38414c6228

View File

@@ -123,9 +123,8 @@ public class KubernetesClientBootstrapConfigurationTests {
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, classes = Application.class,
properties = { "spring.cloud.kubernetes.secrets.enabled=false",
"spring.cloud.kubernetes.config.enabled=false" })
@Nested
@Disabled("fails on jenkins https://github.com/spring-cloud/spring-cloud-kubernetes/issues/927")
"spring.cloud.kubernetes.config.enabled=false", "kubernetes.informer.enabled=false" })
@Neste
class KubernetesEnabledSecretsAndConfigDisabled {
@Autowired
@@ -159,9 +158,9 @@ public class KubernetesClientBootstrapConfigurationTests {
// tests that @ConditionalOnCloudPlatform(CloudPlatform.KUBERNETES) has the desired
// effect, meaning when it is disabled, no property source bean is present
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, classes = Application.class)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, classes = Application.class,
properties = {"kubernetes.informer.enabled=false"})
@Nested
@Disabled("fails on jenkins https://github.com/spring-cloud/spring-cloud-kubernetes/issues/927")
class KubernetesClientBootstrapConfigurationNotInsideK8s {
@Autowired