mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 16:10:02 -06:00
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/6410 Reviewed-By: Tomas Krizek <tkrizek@redhat.com>
This commit is contained in:
parent
9408085c58
commit
42d1a06bd1
@ -165,6 +165,7 @@ class test_cert(BaseCert):
|
||||
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 @@ class test_cert(BaseCert):
|
||||
)
|
||||
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
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user