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 6e78023..cf3e86a 100644 --- a/test/functional/tests/io_class/test_io_class_directory.py +++ b/test/functional/tests/io_class/test_io_class_directory.py @@ -4,8 +4,10 @@ # import random -import pytest from datetime import datetime + +import pytest + from api.cas import ioclass_config, casadm from core.test_run import TestRun from storage_devices.disk import DiskType, DiskTypeSet, DiskTypeLowerThan @@ -420,7 +422,11 @@ def read_files_with_reclassification_check(cache, target_ioclass_id: int, source files_to_reclassify.append(file) if with_delay and time_from_start <= ioclass_config.MAX_CLASSIFICATION_DELAY: continue - TestRun.LOGGER.error("Target IO class occupancy not changed properly!") + TestRun.LOGGER.error( + "Target IO class occupancy not changed properly!\n" + f"Expected: {file.size + target_occupancy_before}\n" + f"Actual: {target_occupancy_after}" + ) elif target_occupancy_after > target_occupancy_before and with_delay: files_to_reclassify.append(file) @@ -429,7 +435,11 @@ def read_files_with_reclassification_check(cache, target_ioclass_id: int, source files_to_reclassify.append(file) if with_delay and time_from_start <= ioclass_config.MAX_CLASSIFICATION_DELAY: continue - TestRun.LOGGER.error("Source IO class occupancy not changed properly!") + TestRun.LOGGER.error( + "Source IO class occupancy not changed properly!\n" + f"Before: {source_occupancy_before}\n" + f"After: {source_occupancy_after}" + ) if len(files_to_reclassify): TestRun.LOGGER.info("Rereading unclassified test files...")