@@ -338,6 +338,58 @@ class TestStorageCockpitIntegration(VirtInstallMachineCase, StorageCase):
338
338
self .assertTrue ("/mnt/sysroot btrfs noauto,subvol=root 0 0" in fstab )
339
339
self .assertTrue ("/mnt/sysroot/home btrfs noauto,subvol=home 0 0" in fstab )
340
340
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" )
341
393
342
394
343
395
if __name__ == '__main__' :
0 commit comments