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:
erabii
2025-01-17 19:14:56 +02:00
committed by GitHub
parent c79a26eb5a
commit 34e97dd818
5 changed files with 12 additions and 6 deletions

View File

@@ -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

View File

@@ -8,7 +8,7 @@ spring:
reload:
enabled: true
monitoring-config-maps: true
strategy: shutdown
strategy: refresh
mode: polling
period: 5000
period: 5s

View File

@@ -6,7 +6,7 @@ spring:
reload:
enabled: true
monitoring-config-maps: true
strategy: shutdown
strategy: refresh
mode: polling
period: 5000
period: 5s

View File

@@ -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)

View File

@@ -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)