summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Babej <tbabej@redhat.com>2015-07-21 13:58:13 +0200
committerTomas Babej <tbabej@redhat.com>2015-07-22 11:09:59 +0200
commit12395a94f38f4db23e356a6f7d96629155c02532 (patch)
treea0bbc505a7a3aa4ae8b19c60a14de7ed1c80a5b0
parenta76c92ccd44ff0a28b789fdbfed5cf45d164eb80 (diff)
downloadfreeipa-12395a94f38f4db23e356a6f7d96629155c02532.zip
freeipa-12395a94f38f4db23e356a6f7d96629155c02532.tar.gz
freeipa-12395a94f38f4db23e356a6f7d96629155c02532.tar.xz
tests: service_plugin: Make sure the cert is decoded from base64
Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
-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 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'),