diff options
author | Petr Viktorin <pviktori@redhat.com> | 2016-05-05 16:56:24 +0200 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2016-05-10 12:41:15 +0200 |
commit | 7d4d819b90f23cffbe437566818e29c394800b9e (patch) | |
tree | 3cb80aed2e8a5783b137e38c640b2228c640d9ff /ipatests | |
parent | 5dbb0f6fec59defd795dd501b67740a79616e86b (diff) | |
download | freeipa-7d4d819b90f23cffbe437566818e29c394800b9e.tar.gz freeipa-7d4d819b90f23cffbe437566818e29c394800b9e.tar.xz freeipa-7d4d819b90f23cffbe437566818e29c394800b9e.zip |
test_cert_plugin: Encode 'certificate' for comparison with 'usercertificate'
The 'certificate' option is Str, but 'usercertificate' is Bytes.
Decode before comparing one with the other.
Part of the work for: https://fedorahosted.org/freeipa/ticket/4985
Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'ipatests')
-rw-r--r-- | ipatests/test_xmlrpc/test_cert_plugin.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipatests/test_xmlrpc/test_cert_plugin.py b/ipatests/test_xmlrpc/test_cert_plugin.py index 1276e9cf9..7f320c157 100644 --- a/ipatests/test_xmlrpc/test_cert_plugin.py +++ b/ipatests/test_xmlrpc/test_cert_plugin.py @@ -149,7 +149,7 @@ class test_cert(XMLRPC_test): res = api.Command['cert_request'](csr, principal=self.service_princ, add=True)['result'] assert DN(res['subject']) == self.subject # save the cert for the service_show/find tests - cert = res['certificate'] + cert = res['certificate'].encode('ascii') def test_0003_service_show(self): """ @@ -180,7 +180,7 @@ class test_cert(XMLRPC_test): res = api.Command['cert_request'](csr, principal=self.service_princ)['result'] assert DN(res['subject']) == self.subject # save the cert for the service_show/find tests - newcert = res['certificate'] + newcert = res['certificate'].encode('ascii') def test_0006_service_show(self): """ |