Skip to content

Commit 461b2da

Browse files
committed
Test for btrfs custom storage scenario
1 parent 4aa3bf0 commit 461b2da

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

test/check-storage-cockpit

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,58 @@ class TestStorageCockpitIntegration(VirtInstallMachineCase, StorageCase):
338338
self.assertTrue("/mnt/sysroot btrfs noauto,subvol=root 0 0" in fstab)
339339
self.assertTrue("/mnt/sysroot/home btrfs noauto,subvol=home 0 0" in fstab)
340340

341+
@nondestructive
342+
def testBtrfsAndConfigureedStorage(self):
343+
b = self.browser
344+
m = self.machine
345+
i = Installer(b, m, scenario="use-configured-storage")
346+
s = Storage(b, m)
347+
r = Review(b, m)
348+
349+
i.open()
350+
i.reach(i.steps.INSTALLATION_METHOD)
351+
s.wait_scenario_visible("use-configured-storage", False)
352+
s.check_single_disk_destination("vda")
353+
s.modify_storage()
354+
s.confirm_entering_cockpit_storage()
355+
b.wait_visible(".cockpit-storage-integration-sidebar")
356+
357+
frame = "iframe[name='cockpit-storage']"
358+
b._wait_present(frame)
359+
b.switch_to_frame("cockpit-storage")
360+
b._wait_present("#storage.ct-page-fill")
361+
362+
# Create GPT partition table
363+
self.click_dropdown(self.card_row("Storage", 1), "Create partition table")
364+
self.confirm()
365+
366+
# Create BIOS boot partition
367+
self.click_dropdown(self.card_row("Storage", 2), "Create partition")
368+
self.dialog({"size": 1, "type": "biosboot"})
369+
370+
# Create ext4 partition for /boot
371+
self.click_dropdown(self.card_row("Storage", 3), "Create partition")
372+
self.dialog({"size": 1070, "type": "ext4", "mount_point": "/boot"})
373+
374+
# Create Btrfs partition for /
375+
self.click_dropdown(self.card_row("Storage", 4), "Create partition")
376+
self.dialog({"type": "btrfs", "mount_point": "/"})
377+
378+
# Exit the cockpit-storage iframe
379+
b.switch_to_top()
380+
381+
s.return_to_installation()
382+
s.return_to_installation_confirm()
383+
384+
s.set_partitioning("use-configured-storage")
385+
386+
i.reach(i.steps.REVIEW)
387+
388+
# verify review screen
389+
dev = "vda"
390+
r.check_disk(dev, "16.1 GB vda (0x1af4)")
391+
392+
i.begin_installation(button_text="Install")
341393

342394

343395
if __name__ == '__main__':

0 commit comments

Comments
 (0)