URL: https://github.com/freeipa/freeipa/pull/165 Author: mirielka Title: #165: Tests: Verify that cert-find show CA without --all Action: synchronized
To pull the PR as Git branch: git remote add ghfreeipa https://github.com/freeipa/freeipa git fetch ghfreeipa pull/165/head:pr165 git checkout pr165
From d704b597c1f12a84418b9591abc7f9e4f1c4bb0e Mon Sep 17 00:00:00 2001 From: Lenka Doudova <ldoud...@redhat.com> Date: Fri, 14 Oct 2016 11:56:21 +0200 Subject: [PATCH] Tests: Verify that cert commands show CA without --all Verify that command cert-find, cert-show and cert-request show CA even without --all. https://fedorahosted.org/freeipa/ticket/6151 --- ipatests/test_xmlrpc/test_cert_plugin.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/ipatests/test_xmlrpc/test_cert_plugin.py b/ipatests/test_xmlrpc/test_cert_plugin.py index cb5175d..bac3e94 100644 --- a/ipatests/test_xmlrpc/test_cert_plugin.py +++ b/ipatests/test_xmlrpc/test_cert_plugin.py @@ -165,6 +165,7 @@ def test_0002_cert_add(self): csr = unicode(self.generateCSR(str(self.subject))) res = api.Command['cert_request'](csr, principal=self.service_princ, add=True)['result'] assert DN(res['subject']) == self.subject + assert 'cacn' in res # save the cert for the service_show/find tests cert = res['certificate'].encode('ascii') # save cert's SN for URI test @@ -222,7 +223,22 @@ def test_0007_service_show(self): ) assert set(certs_encoded) == set([cert, newcert]) - def test_0008_cleanup(self): + def test_0008_cert_show(self): + """ + Verify that cert-show shows CA of the certificate without --all + """ + res = api.Command['cert_show'](sn)['result'] + assert 'cacn' in res + + def test_0009_cert_find(self): + """ + Verify that cert-find shows CA of the certificate without --all + """ + res = api.Command['cert_find'](min_serial_number=sn, + max_serial_number=sn)['result'][0] + assert 'cacn' in res + + def test_00010_cleanup(self): """ Clean up cert test data """
-- 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