URL: https://github.com/freeipa/freeipa/pull/165
Author: mirielka
 Title: #165: Tests: Verify that cert-find show CA without --all
Action: opened

PR body:
"""
https://fedorahosted.org/freeipa/ticket/6151
"""

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 e87e74ec6a1c77c1dda34d9d876ca5b997a12bc9 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-find show CA without --all

https://fedorahosted.org/freeipa/ticket/6151
---
 ipatests/test_xmlrpc/test_cert_plugin.py | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/ipatests/test_xmlrpc/test_cert_plugin.py b/ipatests/test_xmlrpc/test_cert_plugin.py
index cb5175d..dbd2c5a 100644
--- a/ipatests/test_xmlrpc/test_cert_plugin.py
+++ b/ipatests/test_xmlrpc/test_cert_plugin.py
@@ -222,7 +222,14 @@ def test_0007_service_show(self):
         )
         assert set(certs_encoded) == set([cert, newcert])
 
-    def test_0008_cleanup(self):
+    def test_0008_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_0009_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

Reply via email to