Skip to content

Commit

Permalink
Merge pull request #579 from KKoukiou/stop-importing-storage-helpers
Browse files Browse the repository at this point in the history
Stop importing storage helpers
  • Loading branch information
KKoukiou authored Jan 7, 2025
2 parents a97be06 + 73456f1 commit 11d001e
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 25 deletions.
9 changes: 4 additions & 5 deletions test/check-storage-basic
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import os
from anacondalib import VirtInstallMachineCase, pixel_tests_ignore
from installer import Installer
from storage import Storage
from storagelib import StorageHelpers # pylint: disable=import-error
from testlib import nondestructive, test_main # pylint: disable=import-error

TEST_DIR = os.path.dirname(__file__)
Expand All @@ -29,7 +28,7 @@ BOTS_DIR = f'{ROOT_DIR}/bots'


@nondestructive
class TestStorage(VirtInstallMachineCase, StorageHelpers):
class TestStorage(VirtInstallMachineCase):

def testLocalStandardDisks(self):
b = self.browser
Expand All @@ -53,8 +52,8 @@ class TestStorage(VirtInstallMachineCase, StorageHelpers):
# However, since the storage module initialization is long completed
# the newly added disk, will not be visible in the UI,
# until the test clicks on the re-scan button
dev = self.add_ram_disk(2)
dev = dev.split("/")[-1]
self.add_disk(2)
dev = "vdb"
s.rescan_disks(["vda", dev])

# Check that the disk selection persists when moving next and back
Expand Down Expand Up @@ -185,7 +184,7 @@ class TestStorage(VirtInstallMachineCase, StorageHelpers):
b.wait_in_text("#critical-error-bz-report-modal header", "The installer cannot continue due to a critical error: Storage plugin failed")

@nondestructive
class TestMultipleDisks(VirtInstallMachineCase, StorageHelpers):
class TestMultipleDisks(VirtInstallMachineCase):

def testDiskSelectionLVM(self):
"""
Expand Down
3 changes: 1 addition & 2 deletions test/check-storage-encryption
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@ from anacondalib import VirtInstallMachineCase, pixel_tests_ignore
from installer import Installer
from password import Password
from storage import Storage
from storagelib import StorageHelpers # pylint: disable=import-error
from testlib import nondestructive, test_main # pylint: disable=import-error


@nondestructive
class TestStorageEncryption(VirtInstallMachineCase, StorageHelpers):
class TestStorageEncryption(VirtInstallMachineCase):

def set_valid_password(self, password_ui, password="abcdefgh"):
password_ui.set_password(password)
Expand Down
3 changes: 1 addition & 2 deletions test/check-storage-erase-all-e2e
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ from password import Password
from progress import Progress
from review import Review
from storage import Storage
from storagelib import StorageHelpers # pylint: disable=import-error
from testlib import test_main # pylint: disable=import-error
from utils import get_pretty_name

Expand All @@ -32,7 +31,7 @@ ROOT_DIR = os.path.dirname(TEST_DIR)
BOTS_DIR = f'{ROOT_DIR}/bots'


class TestStorageEraseAll_E2E(VirtInstallMachineCase, StorageHelpers):
class TestStorageEraseAll_E2E(VirtInstallMachineCase):
"""
Test Fedora plans: https://fedoraproject.org/wiki/Test_Results:Current_Installation_Test
Expand Down
3 changes: 1 addition & 2 deletions test/check-storage-home-reuse
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ from anacondalib import VirtInstallMachineCase, run_boot
from installer import Installer
from review import Review
from storage import Storage
from storagelib import StorageCase # pylint: disable=import-error
from testlib import nondestructive, skipImage, test_main # pylint: disable=import-error
from utils import pretend_default_scheme

Expand All @@ -31,7 +30,7 @@ BOTS_DIR = f'{ROOT_DIR}/bots'


@nondestructive
class TestStorageHomeReuseFedora(VirtInstallMachineCase, StorageCase):
class TestStorageHomeReuseFedora(VirtInstallMachineCase):
disk_image = "fedora-rawhide"

def setUp(self):
Expand Down
3 changes: 1 addition & 2 deletions test/check-storage-home-reuse-e2e
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ from anacondalib import VirtInstallMachineCase, test_plan
from installer import Installer
from progress import Progress
from storage import Storage
from storagelib import StorageCase # pylint: disable=import-error
from testlib import test_main # pylint: disable=import-error
from utils import pretend_default_scheme

Expand All @@ -30,7 +29,7 @@ ROOT_DIR = os.path.dirname(TEST_DIR)
BOTS_DIR = f'{ROOT_DIR}/bots'


class TestStorageHomeReuse_E2E(VirtInstallMachineCase, StorageCase):
class TestStorageHomeReuse_E2E(VirtInstallMachineCase):
disk_image = "fedora-rawhide"

def setUp(self):
Expand Down
3 changes: 1 addition & 2 deletions test/check-storage-mountpoints-btrfs
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@ from anacondalib import VirtInstallMachineCase
from installer import Installer
from review import Review
from storage import Storage
from storagelib import StorageCase # pylint: disable=import-error
from testlib import nondestructive, skipImage, test_main # pylint: disable=import-error


@nondestructive
class TestStorageMountPointsBtrfs (VirtInstallMachineCase, StorageCase):
class TestStorageMountPointsBtrfs (VirtInstallMachineCase):
@skipImage("btrfs support missing on fedora-eln image", "fedora-eln-boot")
def testBtrfsSubvolumes(self):
b = self.browser
Expand Down
3 changes: 1 addition & 2 deletions test/check-storage-mountpoints-lvm
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@ from anacondalib import VirtInstallMachineCase
from installer import Installer
from review import Review
from storage import Storage
from storagelib import StorageCase # pylint: disable=import-error
from testlib import nondestructive, test_main # pylint: disable=import-error


@nondestructive
class TestStorageMountPointsLVM(VirtInstallMachineCase, StorageCase):
class TestStorageMountPointsLVM(VirtInstallMachineCase):

def testLVM(self):
b = self.browser
Expand Down
3 changes: 1 addition & 2 deletions test/check-storage-mountpoints-raid
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@ from anacondalib import VirtInstallMachineCase
from installer import Installer
from review import Review
from storage import Storage
from storagelib import StorageCase # pylint: disable=import-error
from testlib import nondestructive, test_main # pylint: disable=import-error


@nondestructive
class TestStorageMountPointsRAID(VirtInstallMachineCase, StorageCase):
class TestStorageMountPointsRAID(VirtInstallMachineCase):

def testEncryptedUnlockRAIDonLUKS(self):
# RAID on LUKS: partition -> LUKS -> RAID -> filesystem
Expand Down
3 changes: 1 addition & 2 deletions test/check-storage-mountpoints-raid-e2e
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@
from anacondalib import VirtInstallMachineCase, test_plan
from installer import Installer
from storage import Storage
from storagelib import StorageCase # pylint: disable=import-error
from testlib import test_main # pylint: disable=import-error


class TestStorageMountPointsRAID_E2E(VirtInstallMachineCase, StorageCase):
class TestStorageMountPointsRAID_E2E(VirtInstallMachineCase):
@test_plan("https://fedoraproject.org/wiki/QA:Testcase_webui_partitioning_mount_point_assignment_raid")
def testLVMOnRAID(self):
"""
Expand Down
7 changes: 3 additions & 4 deletions test/check-storage-reclaim
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,14 @@ from installer import Installer
from operating_systems import WindowsOS
from review import Review
from storage import Storage
from storagelib import StorageCase
from testlib import (
nondestructive,
test_main,
)


@nondestructive
class TestStorageReclaimSpace(VirtInstallMachineCase, StorageCase):
class TestStorageReclaimSpace(VirtInstallMachineCase):
def setup_partitions(self, s, i):
disk = "/dev/vda"
btrfsname = "btrfstest"
Expand Down Expand Up @@ -278,7 +277,7 @@ class TestStorageReclaimSpace(VirtInstallMachineCase, StorageCase):


@nondestructive
class TestStorageReclaimSpaceLUKS(VirtInstallMachineCase, StorageCase):
class TestStorageReclaimSpaceLUKS(VirtInstallMachineCase):

def testReclaimExt4onLUKS(self):
# Shrinking LUKS partitions is not yet supported
Expand Down Expand Up @@ -319,7 +318,7 @@ class TestStorageReclaimSpaceLUKS(VirtInstallMachineCase, StorageCase):


@nondestructive
class TestStorageReclaimExistingSystemFedora(VirtInstallMachineCase, StorageCase):
class TestStorageReclaimExistingSystemFedora(VirtInstallMachineCase):
disk_image = "fedora-rawhide"

def testDeletePartition(self):
Expand Down

0 comments on commit 11d001e

Please sign in to comment.