URL: https://github.com/freeipa/freeipa/pull/124 Author: mbasti-rh Title: #124: Fix: find OSCP certificate test Action: opened
PR body: """ Test should check if any OSCP certificate has been returned https://fedorahosted.org/freeipa/ticket/6359 """ To pull the PR as Git branch: git remote add ghfreeipa https://github.com/freeipa/freeipa git fetch ghfreeipa pull/124/head:pr124 git checkout pr124
From d462bab999d037dff50207e3b8d05559202f727e Mon Sep 17 00:00:00 2001 From: Martin Basti <[email protected]> Date: Tue, 27 Sep 2016 15:10:19 +0200 Subject: [PATCH] Fix: find OSCP certificate test Test should check if any OSCP certificate has been returned https://fedorahosted.org/freeipa/ticket/6359 --- 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 f07bb17..4537002 100644 --- a/ipatests/test_xmlrpc/test_cert_plugin.py +++ b/ipatests/test_xmlrpc/test_cert_plugin.py @@ -267,7 +267,9 @@ def test_0003_find_OCSP(self): """ 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): """
-- Manage your subscription for the Freeipa-devel mailing list: https://www.redhat.com/mailman/listinfo/freeipa-devel Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code
