mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 15:47:01 +00:00
System Cache Config fields fix tests
This commit is contained in:
parent
63194b3ead
commit
848dee52b8
@ -90,16 +90,19 @@ class CacheEndpointsTest extends V600ServerSetup {
|
||||
|
||||
And("The response should have the correct structure")
|
||||
val cacheConfig = response.body.extract[CacheConfigJsonV600]
|
||||
cacheConfig.providers should not be empty
|
||||
cacheConfig.instance_id should not be empty
|
||||
cacheConfig.environment should not be empty
|
||||
cacheConfig.global_prefix should not be empty
|
||||
|
||||
And("Providers should have valid data")
|
||||
cacheConfig.providers.foreach { provider =>
|
||||
provider.provider should not be empty
|
||||
provider.enabled shouldBe a[Boolean]
|
||||
}
|
||||
And("Redis status should have valid data")
|
||||
cacheConfig.redis_status.available shouldBe a[Boolean]
|
||||
cacheConfig.redis_status.url should not be empty
|
||||
cacheConfig.redis_status.port should be > 0
|
||||
cacheConfig.redis_status.use_ssl shouldBe a[Boolean]
|
||||
|
||||
And("In-memory status should have valid data")
|
||||
cacheConfig.in_memory_status.available shouldBe a[Boolean]
|
||||
cacheConfig.in_memory_status.current_size should be >= 0L
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user