Skip to content

Commit

Permalink
WIP - tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mvollmer committed Nov 29, 2023
1 parent 262c829 commit f656c5d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/verify/check-storage-stratis
Original file line number Diff line number Diff line change
Expand Up @@ -480,15 +480,15 @@ class TestStorageStratisReboot(storagelib.StorageCase):
self.assertIn("noauto", m.execute("grep /run/fsys1 /etc/fstab"))

# Add a data blockdev
b.click(self.card_button("Stratis pool", "Add block device"))
b.click(self.card_button("Encrypted Stratis pool", "Add block device"))
self.dialog_wait_open()
self.dialog_set_val('disks', {dev_2: True})
self.dialog_apply()
self.dialog_wait_error("passphrase", "Passphrase cannot be empty")
self.dialog_set_val('passphrase', passphrase)
self.dialog_apply()
self.dialog_wait_close()
b.wait_in_text(self.card_row("Stratis pool", name=dev_2), "data")
b.wait_in_text(self.card_row("Encrypted Stratis pool", name=dev_2), "data")

# Change the passphrase (if supported)
if not self.stratis_v2:
Expand All @@ -506,14 +506,14 @@ class TestStorageStratisReboot(storagelib.StorageCase):

# Add a cache blockdev (if supported)
if not self.stratis_v2:
b.click(self.card_button("Stratis pool", "Add block device"))
b.click(self.card_button("Encrypted Stratis pool", "Add block device"))
self.dialog_wait_open()
self.dialog_set_val('tier', "cache")
self.dialog_set_val('disks', {dev_3: True})
self.dialog_set_val('passphrase', passphrase)
self.dialog_apply()
self.dialog_wait_close()
b.wait_in_text(self.card_row("Stratis pool", name=dev_3), "cache")
b.wait_in_text(self.card_row("Encrypted Stratis pool", name=dev_3), "cache")

m.reboot()
m.start_cockpit()
Expand Down Expand Up @@ -915,7 +915,7 @@ class TestStorageStratisNBDE(packagelib.PackageCase, storagelib.StorageCase):

# Add a blockdevice. This requires the passphrase.

b.click(self.card_button("Stratis pool", "Add block device"))
b.click(self.card_button("Encrypted Stratis pool", "Add block device"))
self.dialog({'disks': {dev_2: True}, 'passphrase': "foodeeboodeebar"})

# Remove the keyserver and add it back
Expand Down Expand Up @@ -970,8 +970,8 @@ class TestStorageStratisNBDE(packagelib.PackageCase, storagelib.StorageCase):
m.start_cockpit()
b.relogin()
b.enter_page("/storage")
b.wait_visible(self.card("Stratis pool")) # should be started after boot
b.wait_text(self.card_row_col("Stratis filesystems", 1, 1), "fsys1")
b.wait_visible(self.card("Stratis pool"))
b.wait_text(self.card_row_col("Stratis filesystems", 1, 1), "fsys1") # should be started after boot
b.wait_text(self.card_row_col("Stratis filesystems", 1, 3), "/run/fsys1") # should be mounted after boot


Expand Down

0 comments on commit f656c5d

Please sign in to comment.