mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Tests: Verify that validity info is present in cert-show and cert-find command
https://fedorahosted.org/freeipa/ticket/6419 Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
committed by
Martin Basti
parent
46aa414445
commit
414ed0d182
@@ -229,6 +229,8 @@ class test_cert(BaseCert):
|
|||||||
"""
|
"""
|
||||||
res = api.Command['cert_show'](sn)['result']
|
res = api.Command['cert_show'](sn)['result']
|
||||||
assert 'cacn' in res
|
assert 'cacn' in res
|
||||||
|
assert 'valid_not_before' in res
|
||||||
|
assert 'valid_not_after' in res
|
||||||
|
|
||||||
def test_0009_cert_find(self):
|
def test_0009_cert_find(self):
|
||||||
"""
|
"""
|
||||||
@@ -237,6 +239,8 @@ class test_cert(BaseCert):
|
|||||||
res = api.Command['cert_find'](min_serial_number=sn,
|
res = api.Command['cert_find'](min_serial_number=sn,
|
||||||
max_serial_number=sn)['result'][0]
|
max_serial_number=sn)['result'][0]
|
||||||
assert 'cacn' in res
|
assert 'cacn' in res
|
||||||
|
assert 'valid_not_before' in res
|
||||||
|
assert 'valid_not_after' in res
|
||||||
|
|
||||||
def test_00010_cleanup(self):
|
def test_00010_cleanup(self):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user