mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 16:10:02 -06:00
tests: service_plugin: Make sure the cert is decoded from base64
Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
This commit is contained in:
parent
a76c92ccd4
commit
12395a94f3
@ -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'),
|
||||
|
Loading…
Reference in New Issue
Block a user