summaryrefslogtreecommitdiffstats
path: root/ipatests/test_webui/test_host.py
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2013-08-15 17:56:17 +0200
committerPetr Vobornik <pvoborni@redhat.com>2013-08-22 15:23:56 +0200
commit0584caf56a33232b15c53ea5d6371bb43c3903aa (patch)
tree42e480622048834e1a320ea25da4dca4a836ed58 /ipatests/test_webui/test_host.py
parent8e8afe0519c1d47994e155a3c72b2bdc934a9695 (diff)
downloadfreeipa-0584caf56a33232b15c53ea5d6371bb43c3903aa.tar.gz
freeipa-0584caf56a33232b15c53ea5d6371bb43c3903aa.tar.xz
freeipa-0584caf56a33232b15c53ea5d6371bb43c3903aa.zip
Web UI Integration tests: Kerberos Flags
Tests according to: http://www.freeipa.org/page/V3/Kerberos_Flags https://fedorahosted.org/freeipa/ticket/3831
Diffstat (limited to 'ipatests/test_webui/test_host.py')
-rw-r--r--ipatests/test_webui/test_host.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/ipatests/test_webui/test_host.py b/ipatests/test_webui/test_host.py
index 806f2b104..cb697c5e0 100644
--- a/ipatests/test_webui/test_host.py
+++ b/ipatests/test_webui/test_host.py
@@ -198,6 +198,27 @@ class test_host(host_tasks):
self.navigate_by_breadcrumb('Hosts')
self.delete_record(self.pkey, self.data.get('del'))
+ def test_kerberos_flags(self):
+ """
+ Test Kerberos flags
+ http://www.freeipa.org/page/V3/Kerberos_Flags
+ """
+ pkey = self.config.get('ipa_server')
+ name = 'ipakrbokasdelegate'
+ mod = {'mod': [('checkbox', name, '')]}
+ checked = ['checked']
+
+ self.init_app()
+ self.navigate_to_record(pkey, entity=ENTITY)
+
+ if self.get_field_checked(name) == checked:
+ self.mod_record(ENTITY, mod) # uncheck
+
+ self.mod_record(ENTITY, mod)
+ self.validate_fields([('checkbox', name, checked)])
+ self.mod_record(ENTITY, mod)
+ self.validate_fields([('checkbox', name, [])])
+
def test_associations(self):
"""
Host direct associations