summaryrefslogtreecommitdiffstats
path: root/ipatests
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2014-05-13 17:27:39 +0200
committerPetr Vobornik <pvoborni@redhat.com>2014-06-10 10:23:30 +0200
commit2af21743df2e09cabcf4d2209cd35786ed3cfdd6 (patch)
tree84511c2467b25252c4c4e744ee85ed9b059d9d55 /ipatests
parent841e0cd3ae904cb8021c4387472b4e66487a5c6a (diff)
downloadfreeipa-2af21743df2e09cabcf4d2209cd35786ed3cfdd6.tar.gz
freeipa-2af21743df2e09cabcf4d2209cd35786ed3cfdd6.tar.xz
freeipa-2af21743df2e09cabcf4d2209cd35786ed3cfdd6.zip
webui: move host action panel actions to action dropdown
Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
Diffstat (limited to 'ipatests')
-rw-r--r--ipatests/test_webui/test_host.py25
1 files changed, 12 insertions, 13 deletions
diff --git a/ipatests/test_webui/test_host.py b/ipatests/test_webui/test_host.py
index 3e83f733f..f5780f868 100644
--- a/ipatests/test_webui/test_host.py
+++ b/ipatests/test_webui/test_host.py
@@ -140,35 +140,35 @@ class test_host(host_tasks):
self.assert_visible("div[name='certificate-missing']")
# cert request
- self.action_panel_action(panel, 'request_cert')
+ self.action_list_action('request_cert', confirm=False)
self.fill_text('textarea.certificate', csr)
self.dialog_button_click('issue')
self.wait_for_request(n=2, d=0.5)
self.assert_visible("div[name='certificate-valid']")
# cert view
- self.action_panel_action(panel, 'view_cert')
+ self.action_list_action('view_cert', confirm=False)
self.wait()
self.assert_text("tbody tr:nth-child(2) td:nth-child(2)", self.pkey)
self.assert_text("tbody tr:nth-child(3) td:nth-child(2)", realm)
self.dialog_button_click('close')
# cert get
- self.action_panel_action(panel, 'get_cert')
+ self.action_list_action('get_cert', confirm=False)
self.wait()
# We don't know the cert text, so at least open and close the dialog
self.dialog_button_click('close')
- ## cert revoke
- self.action_panel_action(panel, 'revoke_cert')
+ # cert revoke
+ self.action_list_action('revoke_cert', confirm=False)
self.wait()
self.select('select', '6')
self.dialog_button_click('ok')
self.wait_for_request(n=2)
self.assert_visible("div[name='certificate-revoked']")
- ## cert restore
- self.action_panel_action(panel, 'restore_cert')
+ # cert restore
+ self.action_list_action('restore_cert', confirm=False)
self.wait()
self.dialog_button_click('ok')
self.wait_for_request(n=2)
@@ -191,13 +191,12 @@ class test_host(host_tasks):
self.add_record(ENTITY, self.data)
self.navigate_to_record(self.pkey)
- panel = 'cert_actions'
- self.assert_action_panel_action(panel, 'request_cert', visible=False)
- self.assert_action_panel_action(panel, 'revoke_cert', visible=False)
- self.assert_action_panel_action(panel, 'restore_cert', visible=False)
+ self.assert_action_list_action('request_cert', visible=False)
+ self.assert_action_list_action('revoke_cert', visible=False)
+ self.assert_action_list_action('restore_cert', visible=False)
- self.assert_action_panel_action(panel, 'view_cert', enabled=False)
- self.assert_action_panel_action(panel, 'get_cert', enabled=False)
+ self.assert_action_list_action('view_cert', enabled=False)
+ self.assert_action_list_action('get_cert', enabled=False)
self.navigate_by_breadcrumb('Hosts')
self.delete_record(self.pkey, self.data.get('del'))