Запрос только аппаратов со статусом operational
This commit is contained in:
@@ -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}
|
||||
|
||||
+2
-2
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user