Fix imports

Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
This commit is contained in:
Katarzyna Treder
2024-12-13 15:19:03 +01:00
parent f7e7d3aa7f
commit e740ce377f
111 changed files with 361 additions and 379 deletions

View File

@@ -5,10 +5,8 @@
#
import random
import pytest
import test_tools.fs_tools
from api.cas import casadm
from core.test_run import TestRun
from storage_devices.disk import DiskType, DiskTypeLowerThan, DiskTypeSet
@@ -47,7 +45,7 @@ def test_remove_core_when_other_mounted_auto_numeration():
free_core = cache.add_core(core_device.partitions[0])
mounted_cores = []
for i, part in enumerate(core_device.partitions[1:]):
test_tools.fs_utils.create_filesystem(Filesystem.xfs)
part.create_filesystem(Filesystem.xfs)
mounted_cores.append(cache.add_core(part))
mounted_cores[i].mount(
mount_point=f"{mount_point}{cache.cache_id}-{mounted_cores[i].core_id}"
@@ -91,7 +89,7 @@ def test_remove_core_when_other_mounted_custom_numeration():
mounted_cores = []
for i, part in enumerate(core_device.partitions[1:]):
test_tools.fs_utils.create_filesystem(Filesystem.xfs)
part.create_filesystem(Filesystem.xfs)
mounted_cores.append(
cache.add_core(core_dev=part, core_id=int(f"{random_prefix}{random_interfix}{i}"))
)

View File

@@ -10,7 +10,6 @@ from time import sleep
import pytest
import test_tools.fs_tools
from api.cas import casadm
from api.cas.cache_config import (
CacheMode,
@@ -223,7 +222,7 @@ def test_multistream_seq_cutoff_stress_fs(streams_seq_rand, filesystem, cache_mo
with TestRun.step("Create filesystem on core device"):
cache_disk = TestRun.disks["cache"]
core_disk = TestRun.disks["core"]
test_tools.fs_utils.create_filesystem(filesystem)
core_disk.create_filesystem(filesystem)
with TestRun.step("Start cache and add core"):
cache = casadm.start_cache(cache_dev=cache_disk, cache_mode=cache_mode, force=True)