menu update
This commit is contained in:
+4
-4
@@ -29,7 +29,7 @@ class UITests(unittest.TestCase):
|
||||
def test_plain_wrapped_menu_and_task(self):
|
||||
output = self.shell('''
|
||||
TAPM_UI_RULE
|
||||
TAPM_UI_MENU_META 'Cluster & Maintenance' orphan_disks
|
||||
TAPM_UI_MENU_META 'Storage, ISOs & Backups' orphan_disks
|
||||
TAPM_UI_MENU_ROW 5 $'Find \\e[36morphaned\\e[39m and unused disks [Read-only]' 1
|
||||
TAPM_UI_TASK 'Find orphaned and unused disks'
|
||||
''', width=40)
|
||||
@@ -39,12 +39,12 @@ TAPM_UI_TASK 'Find orphaned and unused disks'
|
||||
|
||||
def test_submenus_and_choices_do_not_start_tasks(self):
|
||||
cases = [('Main Menu', 'cluster', 'submenu'),
|
||||
('Cluster & Maintenance', 'services', 'submenu'),
|
||||
('Host Configuration & Recovery', 'services', 'submenu'),
|
||||
('Select ISO Storage', 'local', 'choice'),
|
||||
('Customize TAPM Host Profile', 'utilities', 'choice'),
|
||||
('Customize TAPM Host Profile', 'apply', 'task'),
|
||||
('Cluster & Maintenance', 'orphan_disks', 'task'),
|
||||
('Cluster & Maintenance', 'back', 'navigation')]
|
||||
('Storage, ISOs & Backups', 'orphan_disks', 'task'),
|
||||
('Cluster & High Availability', 'back', 'navigation')]
|
||||
for title, value, expected in cases:
|
||||
with self.subTest(title=title, value=value):
|
||||
output = self.shell(f"TAPM_UI_MENU_META '{title}' '{value}'\nprintf '%s' \"$TAPM_UI_KIND\"")
|
||||
|
||||
Reference in New Issue
Block a user