From 92f67c65f065c29e2ab90f55cadac5a95162feb6 Mon Sep 17 00:00:00 2001 From: Michal Mielewczyk Date: Thu, 25 Feb 2021 05:37:24 -0500 Subject: [PATCH] pyocf: valid ranges for cleaning policy params Signed-off-by: Michal Mielewczyk --- tests/functional/pyocf/types/cache.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/functional/pyocf/types/cache.py b/tests/functional/pyocf/types/cache.py index c519be6..d263b91 100644 --- a/tests/functional/pyocf/types/cache.py +++ b/tests/functional/pyocf/types/cache.py @@ -76,6 +76,14 @@ class ConfValidValues: promotion_nhit_insertion_threshold_range = range(2, 1000) promotion_nhit_trigger_threshold_range = range(0, 100) + cleaning_alru_wake_up_time_range = range(0, 3600) + cleaning_alru_staleness_time_range = range(1, 3600) + cleaning_alru_flush_max_buffers_range = range(1, 10000) + cleaning_alru_activity_threshold_range = range(0, 1000000) + + cleaning_acp_wake_up_time_range = range(0, 10000) + cleaning_acp_flush_max_buffers_range = range(1, 10000) + CACHE_MODE_NONE = -1