From 0fe31fa58a45ad0f957d3b6e4eb87d776c41bd48 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Jul 22 2015 09:09:59 +0000 Subject: tests: service_plugin: Make sure the cert is decoded from base64 Reviewed-By: Martin Babinsky --- diff --git a/ipatests/test_xmlrpc/test_service_plugin.py b/ipatests/test_xmlrpc/test_service_plugin.py index 006c359..78ba60a 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'),