summaryrefslogtreecommitdiffstats
path: root/ipatests/test_xmlrpc
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2016-09-27 15:10:19 +0200
committerMartin Basti <mbasti@redhat.com>2016-09-30 13:13:57 +0200
commit95aa9369cb2f84ab71fa84e254d0bb3af264e97e (patch)
tree1259ceedfcf84d51d0ec93a00af186b113287870 /ipatests/test_xmlrpc
parentecd6cb4e45096f8d6653c6bb2e4701e683ce4e61 (diff)
downloadfreeipa-95aa9369cb2f84ab71fa84e254d0bb3af264e97e.tar.gz
freeipa-95aa9369cb2f84ab71fa84e254d0bb3af264e97e.tar.xz
freeipa-95aa9369cb2f84ab71fa84e254d0bb3af264e97e.zip
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>
Diffstat (limited to 'ipatests/test_xmlrpc')
-rw-r--r--ipatests/test_xmlrpc/test_cert_plugin.py4
1 files changed, 3 insertions, 1 deletions
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):
"""