Merge pull request #1184 from mmichal10/test-standby-neg-cache-id

Test standby neg cache
This commit is contained in:
Karolina Rogowska
2022-04-21 12:33:48 +02:00
committed by GitHub
4 changed files with 96 additions and 1 deletions

View File

@@ -49,7 +49,11 @@ class Cache:
return self.get_statistics().usage_stats.occupancy
def get_status(self):
status = self.get_statistics().config_stats.status.replace(' ', '_').lower()
status = (
self.get_statistics(stat_filter=[StatsFilter.conf])
.config_stats.status.replace(" ", "_")
.lower()
)
return CacheStatus[status]
@property

View File

@@ -117,6 +117,8 @@ class CacheStatus(Enum):
initializing = "initializing"
flushing = "flushing"
incomplete = "incomplete"
standby = "standby"
standby_detached = "standby detached"
def __str__(self):
return self.value

View File

@@ -145,6 +145,10 @@ mutually_exclusive_params_load = [
r"forbidden."
]
activate_with_different_cache_id = [
r"Cache id specified by user and loaded from metadata are different"
]
def check_stderr_msg(output: Output, expected_messages):
return __check_string_msg(output.stderr, expected_messages)