From 95aa9369cb2f84ab71fa84e254d0bb3af264e97e Mon Sep 17 00:00:00 2001 From: Martin Basti Date: Tue, 27 Sep 2016 15:10:19 +0200 Subject: 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 --- ipatests/test_xmlrpc/test_cert_plugin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ipatests/test_xmlrpc/test_cert_plugin.py b/ipatests/test_xmlrpc/test_cert_plugin.py index f07bb1791..4537002f9 100644 --- a/ipatests/test_xmlrpc/test_cert_plugin.py +++ b/ipatests/test_xmlrpc/test_cert_plugin.py @@ -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): """ -- cgit