Disable informer autoconfiguration. Fixes #927
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user