From 8e8afe0519c1d47994e155a3c72b2bdc934a9695 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Thu, 15 Aug 2013 15:49:27 +0200 Subject: Web UI integration tests: CA-less Test cases according to: http://www.freeipa.org/page/V3/CA-less_install https://fedorahosted.org/freeipa/ticket/3830 --- ipatests/test_webui/test_host.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'ipatests/test_webui/test_host.py') diff --git a/ipatests/test_webui/test_host.py b/ipatests/test_webui/test_host.py index 962ffb17..806f2b10 100644 --- a/ipatests/test_webui/test_host.py +++ b/ipatests/test_webui/test_host.py @@ -175,6 +175,29 @@ class test_host(host_tasks): self.navigate_to_entity(ENTITY, 'search') self.delete_record(self.pkey, self.data.get('del')) + def test_ca_less(self): + """ + Test host certificate actions in CA-less install + http://www.freeipa.org/page/V3/CA-less_install + """ + if self.has_ca(): + self.skip('CA is installed') + + self.init_app() + 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_panel_action(panel, 'view_cert', enabled=False) + self.assert_action_panel_action(panel, 'get_cert', enabled=False) + + self.navigate_by_breadcrumb('Hosts') + self.delete_record(self.pkey, self.data.get('del')) + def test_associations(self): """ Host direct associations -- cgit