mirror of
https://github.com/2martens/tsw-timetable.git
synced 2026-10-17 16:06:51 +02:00
fix: Pass url variable correctly
This commit is contained in:
+2
-2
@@ -45,9 +45,9 @@ class RestHealthIndicator(
|
|||||||
*/
|
*/
|
||||||
override fun determineHealth(): Health {
|
override fun determineHealth(): Health {
|
||||||
val random = randomizer.nextInt(100000, 999999).toString()
|
val random = randomizer.nextInt(100000, 999999).toString()
|
||||||
val url = "$urlPrefix{$random}"
|
val url = "$urlPrefix{random}"
|
||||||
val response = restClientRestHealthIndicator.get()
|
val response = restClientRestHealthIndicator.get()
|
||||||
.uri(url)
|
.uri(url, random)
|
||||||
.retrieve()
|
.retrieve()
|
||||||
.body<String>()
|
.body<String>()
|
||||||
val status = if (response == serviceProperties.greeting.format(random)) Status.UP else Status.DOWN
|
val status = if (response == serviceProperties.greeting.format(random)) Status.UP else Status.DOWN
|
||||||
|
|||||||
Reference in New Issue
Block a user