summaryrefslogtreecommitdiffstats
path: root/ipatests/test_xmlrpc
diff options
context:
space:
mode:
authorMartin Babinsky <mbabinsk@redhat.com>2016-10-31 12:30:34 +0100
committerMartin Babinsky <mbabinsk@redhat.com>2016-11-08 17:02:44 +0100
commit8480d0e3333f6813439e7b3321a0e33ce80d30f1 (patch)
tree74fa434b81c33aadc32836cf684e9a8c80b25248 /ipatests/test_xmlrpc
parent0c68c27e51c2a30265a760382d7d4fab7d21937b (diff)
downloadfreeipa-8480d0e3333f6813439e7b3321a0e33ce80d30f1.tar.gz
freeipa-8480d0e3333f6813439e7b3321a0e33ce80d30f1.tar.xz
freeipa-8480d0e3333f6813439e7b3321a0e33ce80d30f1.zip
Modernize ipa-getkeytab test suite
The test suite is now leveraging host/service tracker objects as test case fixture, removing much of ad-hoc setup/teardown. https://fedorahosted.org/freeipa/ticket/6409 Reviewed-By: Simo Sorce <ssorce@redhat.com>
Diffstat (limited to 'ipatests/test_xmlrpc')
-rw-r--r--ipatests/test_xmlrpc/tracker/service_plugin.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ipatests/test_xmlrpc/tracker/service_plugin.py b/ipatests/test_xmlrpc/tracker/service_plugin.py
index 0a90115b3..7e51aca5d 100644
--- a/ipatests/test_xmlrpc/tracker/service_plugin.py
+++ b/ipatests/test_xmlrpc/tracker/service_plugin.py
@@ -85,6 +85,10 @@ class ServiceTracker(KerberosAliasMixin, Tracker):
return self.make_command('service_mod', self.name, **updates)
+ def make_disable_command(self):
+ """ make command that disables the service principal """
+ return self.make_command('service_disable', self.name)
+
def create(self, force=True):
"""Helper function to create an entry and check the result"""
self.ensure_missing()