mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-12 09:11:55 -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(
|
dict(
|
||||||
desc='Update %r with a bad certificate' % service1,
|
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(
|
expected=errors.CertificateOperationError(
|
||||||
error=u'Issuer "CN=IPA Test Certificate Authority" does not ' +
|
error=u'Issuer "CN=IPA Test Certificate Authority" does not ' +
|
||||||
u'match the expected issuer'),
|
u'match the expected issuer'),
|
||||||
|
Loading…
Reference in New Issue
Block a user