From 93163a7c51aa3bbe5bee4533279370be04dee4bf Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Thu, 18 Sep 2025 23:17:43 +0200 Subject: [PATCH] fix: Pass url variable correctly --- .../support/monitoring/actuator/RestHealthIndicator.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module-support/src/main/kotlin/de/twomartens/support/monitoring/actuator/RestHealthIndicator.kt b/module-support/src/main/kotlin/de/twomartens/support/monitoring/actuator/RestHealthIndicator.kt index 86e813f..0d691c2 100644 --- a/module-support/src/main/kotlin/de/twomartens/support/monitoring/actuator/RestHealthIndicator.kt +++ b/module-support/src/main/kotlin/de/twomartens/support/monitoring/actuator/RestHealthIndicator.kt @@ -45,9 +45,9 @@ class RestHealthIndicator( */ override fun determineHealth(): Health { val random = randomizer.nextInt(100000, 999999).toString() - val url = "$urlPrefix{$random}" + val url = "$urlPrefix{random}" val response = restClientRestHealthIndicator.get() - .uri(url) + .uri(url, random) .retrieve() .body() val status = if (response == serviceProperties.greeting.format(random)) Status.UP else Status.DOWN