From 9aebf57efa31afed6d1b099e481f39a315da394b Mon Sep 17 00:00:00 2001 From: Michal Mielewczyk Date: Fri, 26 Feb 2021 03:20:37 -0500 Subject: [PATCH] pyocf: valid ranges for seq cutoff threshold Signed-off-by: Michal Mielewczyk --- tests/functional/pyocf/types/cache.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/functional/pyocf/types/cache.py b/tests/functional/pyocf/types/cache.py index d263b91..85118e2 100644 --- a/tests/functional/pyocf/types/cache.py +++ b/tests/functional/pyocf/types/cache.py @@ -84,6 +84,8 @@ class ConfValidValues: cleaning_acp_wake_up_time_range = range(0, 10000) cleaning_acp_flush_max_buffers_range = range(1, 10000) + seq_cutoff_threshold_rage = range(1, 4194181) + CACHE_MODE_NONE = -1 @@ -310,7 +312,7 @@ class Cache: self.write_unlock() if status: - raise OcfError("Error setting cache seq cut off policy", status) + raise OcfError("Error setting cache seq cut off policy threshold", status) def get_partition_info(self, part_id: int): ioclass_info = IoClassInfo()