Fix: find OSCP certificate test

Test should check if any OSCP certificate has been returned

https://fedorahosted.org/freeipa/ticket/6359

Reviewed-By: Tomas Krizek <tkrizek@redhat.com>
This commit is contained in:
Martin Basti 2016-09-27 15:10:19 +02:00
parent ecd6cb4e45
commit 95aa9369cb

View File

@ -267,7 +267,9 @@ class test_cert_find(XMLRPC_test):
"""
Search for the OCSP certificate.
"""
api.Command['cert_find'](subject=u'OCSP Subsystem')
res = api.Command['cert_find'](subject=u'OCSP Subsystem')
assert 'count' in res
assert res['count'], "No OSCP certificate found"
def test_0004_find_this_host(self):
"""