From 22cb22cfc917e81deae58ff5f5169023a98f6dca Mon Sep 17 00:00:00 2001 From: Michal Mielewczyk Date: Wed, 20 Apr 2022 11:57:46 +0200 Subject: [PATCH] test api: don't retrieving redundant cache stats Retrieving full cache stats is redundant to get cache state Signed-off-by: Michal Mielewczyk --- test/functional/api/cas/cache.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/functional/api/cas/cache.py b/test/functional/api/cas/cache.py index 5645342..9729b64 100644 --- a/test/functional/api/cas/cache.py +++ b/test/functional/api/cas/cache.py @@ -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