diff options
author | Rob Crittenden <rcritten@redhat.com> | 2009-08-20 18:17:27 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2009-08-26 09:51:15 -0400 |
commit | 7a7041045e127e0537bd5eb1592bf58c846bb64d (patch) | |
tree | a8ef1cee07eed1654daf55098700f9e8ac8ca67e /tests | |
parent | dacfddfdc8be7411abef5bd1c1107907f545dc6f (diff) | |
download | freeipa-7a7041045e127e0537bd5eb1592bf58c846bb64d.tar.gz freeipa-7a7041045e127e0537bd5eb1592bf58c846bb64d.tar.xz freeipa-7a7041045e127e0537bd5eb1592bf58c846bb64d.zip |
Fix service_mod and add a test case
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_xmlrpc/test_service_plugin.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/test_xmlrpc/test_service_plugin.py b/tests/test_xmlrpc/test_service_plugin.py index 9eede38ba..1f086fdf4 100644 --- a/tests/test_xmlrpc/test_service_plugin.py +++ b/tests/test_xmlrpc/test_service_plugin.py @@ -97,7 +97,17 @@ class test_service(XMLRPC_test): assert res assert_attr_equal(res[0][1], 'krbprincipalname', self.principal) - def test_7_service_del(self): + def test_7_service_mod(self): + """ + Test the `xmlrpc.service_mod` method. + """ + modkw = self.kw + modkw['usercertificate'] = 'QmluYXJ5IGNlcnRpZmljYXRl' + (dn, res) = api.Command['service_mod'](**modkw) + assert res + assert_attr_equal(res, 'usercertificate', 'Binary certificate') + + def test_8_service_del(self): """ Test the `xmlrpc.service_del` method. """ |