tests: service_plugin: Make sure the cert is decoded from base64

Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
This commit is contained in:
Tomas Babej 2015-07-21 13:58:13 +02:00
parent a76c92ccd4
commit 12395a94f3

View File

@ -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'),