summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ipatests/test_xmlrpc/test_service_plugin.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/ipatests/test_xmlrpc/test_service_plugin.py b/ipatests/test_xmlrpc/test_service_plugin.py
index 006c35999..78ba60a69 100644
--- a/ipatests/test_xmlrpc/test_service_plugin.py
+++ b/ipatests/test_xmlrpc/test_service_plugin.py
@@ -383,7 +383,11 @@ class test_service(Declarative):
dict(
desc='Update %r with a bad certificate' % service1,
- command=('service_mod', [service1], dict(usercertificate=badservercert)),
+ command=(
+ 'service_mod',
+ [service1],
+ dict(usercertificate=base64.b64decode(badservercert))
+ ),
expected=errors.CertificateOperationError(
error=u'Issuer "CN=IPA Test Certificate Authority" does not ' +
u'match the expected issuer'),