summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Babej <tbabej@redhat.com>2015-07-21 17:39:47 +0200
committerTomas Babej <tbabej@redhat.com>2015-07-22 11:14:23 +0200
commit106e9043379231a8cebf76d5088927364d098112 (patch)
tree12b35f50c2606805e54954945241b2741bce61d0
parentd71899696ab30c76a220a9fe444fc577a246a978 (diff)
downloadfreeipa-106e9043379231a8cebf76d5088927364d098112.zip
freeipa-106e9043379231a8cebf76d5088927364d098112.tar.gz
freeipa-106e9043379231a8cebf76d5088927364d098112.tar.xz
tests: test_cert: Services can have multiple certificates
Old certificates of the services are no longer removed and revoked after new ones have been issued. Check that both old and new certificates are present. Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
-rw-r--r--ipatests/test_xmlrpc/test_cert_plugin.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ipatests/test_xmlrpc/test_cert_plugin.py b/ipatests/test_xmlrpc/test_cert_plugin.py
index c878504..01fadfd 100644
--- a/ipatests/test_xmlrpc/test_cert_plugin.py
+++ b/ipatests/test_xmlrpc/test_cert_plugin.py
@@ -183,10 +183,10 @@ class test_cert(XMLRPC_test):
global cert, newcert
res = api.Command['service_show'](self.service_princ)['result']
- # It should no longer match our old cert
- assert base64.b64encode(res['usercertificate'][0]) != cert
- # And it should match the new one
- assert base64.b64encode(res['usercertificate'][0]) == newcert
+
+ # Both the old and the new certs should be listed as certificates now
+ certs_encoded = (base64.b64encode(cert) for cert in res['usercertificate'])
+ assert set(certs_encoded) == set([cert, newcert])
def test_0007_cleanup(self):
"""