Запрос только аппаратов со статусом operational

This commit is contained in:
Дмитрий Соловьев
2026-05-26 14:03:59 +03:00
parent 12d8b01bae
commit cf3bb63bc1
4 changed files with 33 additions and 4 deletions
@@ -7,7 +7,7 @@ spring:
import: "configserver:"
cloud:
config:
uri: ${CONFIG_SERVER_URI:http://localhost:38888}
uri: ${CONFIG_SERVER_URI:http://localhost:8888}
fail-fast: ${CONFIG_SERVER_FAIL_FAST:true}
profile: ${SPRING_CLOUD_CONFIG_PROFILE:${SPRING_PROFILES_ACTIVE:${spring.profiles.default}}}
label: ${SPRING_CLOUD_CONFIG_LABEL:master}
@@ -117,7 +117,7 @@ class PlatformServiceTest {
val allowedPlatforms = service.loadAllowedPlatforms(now)
assertEquals(8, cachedPlatforms.size)
assertEquals(listOf("operational-id", "standby-id"), allowedPlatforms.map { it.nsiId })
assertEquals(listOf("operational-id"), allowedPlatforms.map { it.nsiId })
verify(client, times(1)).fetchPlatforms()
}
@@ -130,7 +130,7 @@ class PlatformServiceTest {
classifierProperties = ClassifierProperties(
platformsUrl = "http://localhost",
platformsCacheTtl = Duration.ofMinutes(15),
allowedPlatformStatuses = setOf("OPERATIONAL", "STANDBY")
allowedPlatformStatuses = setOf("OPERATIONAL")
),
clock = clock
)