From 12395a94f38f4db23e356a6f7d96629155c02532 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Tue, 21 Jul 2015 13:58:13 +0200 Subject: [PATCH] tests: service_plugin: Make sure the cert is decoded from base64 Reviewed-By: Martin Babinsky --- ipatests/test_xmlrpc/test_service_plugin.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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'),