URL: https://github.com/freeipa/freeipa/pull/194
Author: mirielka
 Title: #194: Tests: Verify that validity info is present in cert-show and 
cert-find command
Action: opened

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

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/194/head:pr194
git checkout pr194
From 729ef52ff88a715a9191b2b205f5aaacd3570905 Mon Sep 17 00:00:00 2001
From: Lenka Doudova <ldoud...@redhat.com>
Date: Thu, 27 Oct 2016 08:38:25 +0200
Subject: [PATCH] Tests: Verify that validity info is present in cert-show and
 cert-find command

https://fedorahosted.org/freeipa/ticket/6419
---
 ipatests/test_xmlrpc/test_cert_plugin.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ipatests/test_xmlrpc/test_cert_plugin.py b/ipatests/test_xmlrpc/test_cert_plugin.py
index bac3e94..206e0ef 100644
--- a/ipatests/test_xmlrpc/test_cert_plugin.py
+++ b/ipatests/test_xmlrpc/test_cert_plugin.py
@@ -229,6 +229,8 @@ def test_0008_cert_show(self):
         """
         res = api.Command['cert_show'](sn)['result']
         assert 'cacn' in res
+        assert 'valid_not_before' in res
+        assert 'valid_not_after' in res
 
     def test_0009_cert_find(self):
         """
@@ -237,6 +239,8 @@ def test_0009_cert_find(self):
         res = api.Command['cert_find'](min_serial_number=sn,
                                        max_serial_number=sn)['result'][0]
         assert 'cacn' in res
+        assert 'valid_not_before' in res
+        assert 'valid_not_after' in res
 
     def test_00010_cleanup(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

Reply via email to