Disk tools and fs tools refactor
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
This commit is contained in:
@@ -13,7 +13,7 @@ from api.cas.cache_config import CacheLineSize
|
||||
from core.test_run import TestRun
|
||||
from storage_devices.device import Device
|
||||
from storage_devices.disk import DiskTypeSet, DiskType
|
||||
from test_tools import disk_utils
|
||||
from test_tools import disk_tools
|
||||
from connection.utils.output import CmdException
|
||||
from type_def.size import Size, Unit
|
||||
|
||||
|
@@ -15,7 +15,7 @@ from api.cas.installer import (
|
||||
rsync_opencas_sources,
|
||||
)
|
||||
from core.test_run import TestRun
|
||||
from test_tools.fs_utils import FilesPermissions, find_all_items
|
||||
from test_tools.fs_tools import FilesPermissions, find_all_items
|
||||
|
||||
|
||||
repo_files_perms_exceptions = {
|
||||
|
@@ -6,6 +6,7 @@
|
||||
import pytest
|
||||
from time import sleep
|
||||
|
||||
import test_tools.fs_tools
|
||||
from api.cas import casadm
|
||||
from api.cas.cache_config import (
|
||||
CacheMode,
|
||||
@@ -14,10 +15,9 @@ from api.cas.cache_config import (
|
||||
)
|
||||
from storage_devices.disk import DiskType, DiskTypeSet
|
||||
from core.test_run import TestRun
|
||||
from test_tools.disk_utils import Filesystem
|
||||
from test_tools.os_tools import sync
|
||||
from test_tools.scsi_debug import Logs, syslog_path
|
||||
from test_tools.fs_utils import create_random_test_file
|
||||
from test_tools.fs_tools import create_random_test_file, Filesystem
|
||||
from type_def.size import Size, Unit
|
||||
|
||||
mount_point = "/mnt/cas"
|
||||
@@ -45,7 +45,7 @@ def test_flush_signal_propagation_cache():
|
||||
|
||||
with TestRun.step("Start cache on SCSI device and add core with xfs filesystem"):
|
||||
cache = casadm.start_cache(cache_dev, CacheMode.WT)
|
||||
core_dev.create_filesystem(Filesystem.xfs)
|
||||
test_tools.fs_utils.create_filesystem(Filesystem.xfs)
|
||||
core = cache.add_core(core_dev)
|
||||
|
||||
with TestRun.step("Turn off cleaning policy and sequential cutoff"):
|
||||
@@ -91,7 +91,7 @@ def test_flush_signal_propagation_core():
|
||||
|
||||
with TestRun.step("Start cache and add SCSI device with xfs filesystem as core."):
|
||||
cache = casadm.start_cache(cache_dev, CacheMode.WT)
|
||||
core_dev.create_filesystem(Filesystem.xfs)
|
||||
test_tools.fs_utils.create_filesystem(Filesystem.xfs)
|
||||
core = cache.add_core(core_dev)
|
||||
|
||||
with TestRun.step("Turn off cleaning policy and sequential cutoff"):
|
||||
|
@@ -11,7 +11,7 @@ import pytest
|
||||
|
||||
from api.cas.installer import clean_opencas_repo, rsync_opencas_sources
|
||||
from core.test_run import TestRun
|
||||
from test_tools.fs_utils import (
|
||||
from test_tools.fs_tools import (
|
||||
check_if_regular_file_exists,
|
||||
check_if_symlink_exists,
|
||||
readlink,
|
||||
|
Reference in New Issue
Block a user