summaryrefslogtreecommitdiffstats
path: root/ipatests/test_xmlrpc/tracker/service_plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipatests/test_xmlrpc/tracker/service_plugin.py')
-rw-r--r--ipatests/test_xmlrpc/tracker/service_plugin.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/ipatests/test_xmlrpc/tracker/service_plugin.py b/ipatests/test_xmlrpc/tracker/service_plugin.py
index fe34390e2..a0bb8843d 100644
--- a/ipatests/test_xmlrpc/tracker/service_plugin.py
+++ b/ipatests/test_xmlrpc/tracker/service_plugin.py
@@ -85,6 +85,14 @@ class ServiceTracker(KerberosAliasMixin, Tracker):
return self.make_command('service_mod', self.name, **updates)
+ def create(self, force=True):
+ """Helper function to create an entry and check the result"""
+ self.ensure_missing()
+ self.track_create()
+ command = self.make_create_command(force=force)
+ result = command()
+ self.check_create(result)
+
def track_create(self, **options):
""" Update expected state for service creation """
self.attrs = {