try to fix failing tests (#1841)
* fix Signed-off-by: wind57 <eugen.rabii@gmail.com> * fix Signed-off-by: wind57 <eugen.rabii@gmail.com> --------- Signed-off-by: wind57 <eugen.rabii@gmail.com>
This commit is contained in:
@@ -6,9 +6,9 @@ spring:
|
||||
reload:
|
||||
enabled: true
|
||||
monitoring-config-maps: true
|
||||
strategy: shutdown
|
||||
strategy: refresh
|
||||
mode: polling
|
||||
period: 5000
|
||||
period: 5s
|
||||
config:
|
||||
paths:
|
||||
- /tmp/application.properties
|
||||
|
||||
@@ -8,7 +8,7 @@ spring:
|
||||
reload:
|
||||
enabled: true
|
||||
monitoring-config-maps: true
|
||||
strategy: shutdown
|
||||
strategy: refresh
|
||||
mode: polling
|
||||
period: 5000
|
||||
period: 5s
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ spring:
|
||||
reload:
|
||||
enabled: true
|
||||
monitoring-config-maps: true
|
||||
strategy: shutdown
|
||||
strategy: refresh
|
||||
mode: polling
|
||||
period: 5000
|
||||
period: 5s
|
||||
|
||||
|
||||
@@ -112,6 +112,10 @@ class BootstrapEnabledPollingReloadConfigMapMountIT {
|
||||
configMap.setData(Map.of(Constants.APPLICATION_PROPERTIES, "from.properties.key=as-mount-changed"));
|
||||
client.configMaps().inNamespace("default").resource(configMap).createOrReplace();
|
||||
|
||||
System.out.println("Waiting for reload change to be observed");
|
||||
Commons.waitForLogStatement("Detected change in config maps/secrets, reload will be triggered", K3S, IMAGE_NAME);
|
||||
System.out.println("reload change observed");
|
||||
|
||||
await().atMost(Duration.ofSeconds(120))
|
||||
.pollInterval(Duration.ofSeconds(1))
|
||||
.until(() -> webClient.method(HttpMethod.GET)
|
||||
|
||||
@@ -113,6 +113,8 @@ class ConfigMapMountPollingReloadDelegateIT {
|
||||
configMap.setData(Map.of(Constants.APPLICATION_PROPERTIES, "from.properties.key=as-mount-changed"));
|
||||
client.configMaps().inNamespace("default").resource(configMap).createOrReplace();
|
||||
|
||||
Commons.waitForLogStatement("Detected change in config maps/secrets, reload will be triggered", K3S, IMAGE_NAME);
|
||||
|
||||
await().atMost(Duration.ofSeconds(120))
|
||||
.pollInterval(Duration.ofSeconds(1))
|
||||
.until(() -> webClient.method(HttpMethod.GET)
|
||||
|
||||
Reference in New Issue
Block a user