summaryrefslogtreecommitdiffstats
path: root/ipatests/test_webui/test_service.py
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2013-08-15 15:49:27 +0200
committerPetr Vobornik <pvoborni@redhat.com>2013-08-22 15:23:56 +0200
commit8e8afe0519c1d47994e155a3c72b2bdc934a9695 (patch)
tree3757db7220b85577630b2c39baab935932698050 /ipatests/test_webui/test_service.py
parente61c2e34411ad1713086813e938b09a464c4ffa6 (diff)
downloadfreeipa-8e8afe0519c1d47994e155a3c72b2bdc934a9695.tar.gz
freeipa-8e8afe0519c1d47994e155a3c72b2bdc934a9695.tar.xz
freeipa-8e8afe0519c1d47994e155a3c72b2bdc934a9695.zip
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
Diffstat (limited to 'ipatests/test_webui/test_service.py')
-rw-r--r--ipatests/test_webui/test_service.py37
1 files changed, 37 insertions, 0 deletions
diff --git a/ipatests/test_webui/test_service.py b/ipatests/test_webui/test_service.py
index 81d638f1c..fc64c6db5 100644
--- a/ipatests/test_webui/test_service.py
+++ b/ipatests/test_webui/test_service.py
@@ -128,3 +128,40 @@ class test_service(sevice_tasks):
# cleanup
self.navigate_to_entity(ENTITY, 'search')
self.delete_record(pkey, data.get('del'))
+
+ def test_ca_less(self):
+ """
+ Test service 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()
+
+ data = self.prep_data()
+ pkey = data.get('pkey')
+
+ self.add_record(ENTITY, data)
+ self.navigate_to_record(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('Services')
+ self.delete_record(pkey, data.get('del'))
+
+ # test HTTP, which should have cert set by default and so 'view' and 'get'
+ # actions visible and enabled
+ host = self.config.get('ipa_server')
+ realm = self.config.get('ipa_realm')
+ pkey = 'HTTP/%s@%s' % (host, realm)
+
+ self.navigate_to_record(pkey)
+ self.assert_action_panel_action(panel, 'view_cert')
+ self.assert_action_panel_action(panel, 'get_cert')