From 7abae882988e0719dec70e6ec899cf5a52d9017e Mon Sep 17 00:00:00 2001 From: Michal Mielewczyk Date: Wed, 23 Mar 2022 08:07:21 +0100 Subject: [PATCH] tests: refactor ioclass directory based test Signed-off-by: Michal Mielewczyk --- .../functional/tests/io_class/test_io_class_directory.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/functional/tests/io_class/test_io_class_directory.py b/test/functional/tests/io_class/test_io_class_directory.py index 8ac6284..5c198ab 100644 --- a/test/functional/tests/io_class/test_io_class_directory.py +++ b/test/functional/tests/io_class/test_io_class_directory.py @@ -305,6 +305,13 @@ def test_ioclass_directory_dir_operations(filesystem): rule=f"directory:{classified_dir_path_2}", ioclass_config_path=ioclass_config_path, ) + ioclass_config.add_ioclass( + ioclass_id=32, + eviction_priority=255, + allocation="0.00", + rule=f"metadata", + ioclass_config_path=ioclass_config_path, + ) casadm.load_io_classes(cache_id=cache.cache_id, file=ioclass_config_path) with TestRun.step(f"Prepare {filesystem.name} filesystem " @@ -435,7 +442,7 @@ def read_files_with_reclassification_check(cache, target_ioclass_id: int, source continue TestRun.LOGGER.error( "Target IO class occupancy not changed properly!\n" - f"Expected: {file.size + target_occupancy_before}\n" + f"Expected: {(file.size + target_occupancy_before).set_unit(Unit.Blocks4096)}\n" f"Actual: {target_occupancy_after}" ) elif target_occupancy_after > target_occupancy_before and with_delay: