fix conflicts upon merge (#676)
* fix conflicts upon merge * Bump kind test await timeout from 15 to 60 seconds for spring-cloud-kubernetes-client-config-it. This should make tests a bit more reliable.
This commit is contained in:
@@ -53,7 +53,7 @@ public class ConfigurationWatcherAutoConfiguration {
|
||||
|
||||
@Bean
|
||||
@ConditionalOnMissingBean(ConfigMapWatcherChangeDetector.class)
|
||||
@ConditionalOnBean(ConfigMapPropertySourceLocator.class)
|
||||
@ConditionalOnBean(Fabric8ConfigMapPropertySourceLocator.class)
|
||||
public ConfigMapWatcherChangeDetector httpBasedConfigMapWatchChangeDetector(AbstractEnvironment environment,
|
||||
KubernetesClient kubernetesClient,
|
||||
Fabric8ConfigMapPropertySourceLocator fabric8ConfigMapPropertySourceLocator,
|
||||
@@ -69,7 +69,7 @@ public class ConfigurationWatcherAutoConfiguration {
|
||||
|
||||
@Bean
|
||||
@ConditionalOnMissingBean(SecretsWatcherChangeDetector.class)
|
||||
@ConditionalOnBean(SecretsPropertySourceLocator.class)
|
||||
@ConditionalOnBean(Fabric8SecretsPropertySourceLocator.class)
|
||||
public SecretsWatcherChangeDetector httpBasedSecretsWatchChangeDetector(AbstractEnvironment environment,
|
||||
KubernetesClient kubernetesClient, Fabric8SecretsPropertySourceLocator fabric8SecretsPropertySourceLocator,
|
||||
ConfigReloadProperties properties, ConfigurationUpdateStrategy strategy,
|
||||
@@ -88,7 +88,7 @@ public class ConfigurationWatcherAutoConfiguration {
|
||||
|
||||
@Bean
|
||||
@ConditionalOnMissingBean(ConfigMapWatcherChangeDetector.class)
|
||||
@ConditionalOnBean(ConfigMapPropertySourceLocator.class)
|
||||
@ConditionalOnBean(Fabric8ConfigMapPropertySourceLocator.class)
|
||||
public ConfigMapWatcherChangeDetector busConfigMapChangeWatcher(BusProperties busProperties,
|
||||
AbstractEnvironment environment, KubernetesClient kubernetesClient,
|
||||
Fabric8ConfigMapPropertySourceLocator fabric8ConfigMapPropertySourceLocator,
|
||||
@@ -101,10 +101,10 @@ public class ConfigurationWatcherAutoConfiguration {
|
||||
|
||||
@Bean
|
||||
@ConditionalOnMissingBean(SecretsWatcherChangeDetector.class)
|
||||
@ConditionalOnBean(SecretsPropertySourceLocator.class)
|
||||
@ConditionalOnBean(Fabric8SecretsPropertySourceLocator.class)
|
||||
public SecretsWatcherChangeDetector busSecretsChangeWatcher(BusProperties busProperties,
|
||||
AbstractEnvironment environment, KubernetesClient kubernetesClient,
|
||||
SecretsPropertySourceLocator secretsPropertySourceLocator, ConfigReloadProperties properties,
|
||||
Fabric8SecretsPropertySourceLocator secretsPropertySourceLocator, ConfigReloadProperties properties,
|
||||
ConfigurationUpdateStrategy strategy,
|
||||
ConfigurationWatcherConfigurationProperties k8SConfigurationProperties,
|
||||
ThreadPoolTaskExecutor threadFactory) {
|
||||
@@ -121,10 +121,10 @@ public class ConfigurationWatcherAutoConfiguration {
|
||||
|
||||
@Bean
|
||||
@ConditionalOnMissingBean(ConfigMapWatcherChangeDetector.class)
|
||||
@ConditionalOnBean(ConfigMapPropertySourceLocator.class)
|
||||
@ConditionalOnBean(Fabric8ConfigMapPropertySourceLocator.class)
|
||||
public ConfigMapWatcherChangeDetector busConfigMapChangeWatcher(BusProperties busProperties,
|
||||
AbstractEnvironment environment, KubernetesClient kubernetesClient,
|
||||
ConfigMapPropertySourceLocator configMapPropertySourceLocator, ConfigReloadProperties properties,
|
||||
Fabric8ConfigMapPropertySourceLocator configMapPropertySourceLocator, ConfigReloadProperties properties,
|
||||
ConfigurationUpdateStrategy strategy,
|
||||
ConfigurationWatcherConfigurationProperties k8SConfigurationProperties,
|
||||
ThreadPoolTaskExecutor threadFactory) {
|
||||
@@ -134,7 +134,7 @@ public class ConfigurationWatcherAutoConfiguration {
|
||||
|
||||
@Bean
|
||||
@ConditionalOnMissingBean(SecretsWatcherChangeDetector.class)
|
||||
@ConditionalOnBean(SecretsPropertySourceLocator.class)
|
||||
@ConditionalOnBean(Fabric8SecretsPropertySourceLocator.class)
|
||||
public SecretsWatcherChangeDetector busSecretsChangeWatcher(BusProperties busProperties,
|
||||
AbstractEnvironment environment, KubernetesClient kubernetesClient,
|
||||
Fabric8SecretsPropertySourceLocator fabric8SecretsPropertySourceLocator,
|
||||
|
||||
@@ -163,7 +163,7 @@ public class ConfigMapAndSecretIT {
|
||||
data.replace("application.yaml", data.get("application.yaml").replace("from-config-map", "from-unit-test"));
|
||||
configMap.data(data);
|
||||
api.replaceNamespacedConfigMap(APP_NAME, NAMESPACE, configMap, null, null, null);
|
||||
await().timeout(Duration.ofSeconds(15))
|
||||
await().timeout(Duration.ofSeconds(60))
|
||||
.until(() -> rest.getForObject(MYPROPERTY_URL, String.class).equals("from-unit-test"));
|
||||
myProperty = rest.getForObject(MYPROPERTY_URL, String.class);
|
||||
assertThat(myProperty).isEqualTo("from-unit-test");
|
||||
@@ -173,7 +173,7 @@ public class ConfigMapAndSecretIT {
|
||||
secretData.replace("my.config.mySecret", "p455w1rd".getBytes());
|
||||
secret.setData(secretData);
|
||||
api.replaceNamespacedSecret(APP_NAME, NAMESPACE, secret, null, null, null);
|
||||
await().timeout(Duration.ofSeconds(15))
|
||||
await().timeout(Duration.ofSeconds(60))
|
||||
.until(() -> rest.getForObject(MYSECRET_URL, String.class).equals("p455w1rd"));
|
||||
mySecret = rest.getForObject(MYSECRET_URL, String.class);
|
||||
assertThat(mySecret).isEqualTo("p455w1rd");
|
||||
|
||||
Reference in New Issue
Block a user