summaryrefslogtreecommitdiffstats
path: root/ipatests
diff options
context:
space:
mode:
authorLenka Doudova <ldoudova@redhat.com>2016-10-14 11:56:21 +0200
committerMartin Basti <mbasti@redhat.com>2016-10-26 16:53:27 +0200
commit42d1a06bd1e856c14110c06ba0d9d946df36331d (patch)
tree0aba0f0411dca3b183c4630cc3871baefdec4532 /ipatests
parent9408085c58a1e9627c1fb4e1ba0343700e36d7e7 (diff)
downloadfreeipa-42d1a06bd1e856c14110c06ba0d9d946df36331d.tar.gz
freeipa-42d1a06bd1e856c14110c06ba0d9d946df36331d.tar.xz
freeipa-42d1a06bd1e856c14110c06ba0d9d946df36331d.zip
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>
Diffstat (limited to 'ipatests')
-rw-r--r--ipatests/test_xmlrpc/test_cert_plugin.py18
1 files changed, 17 insertions, 1 deletions
diff --git a/ipatests/test_xmlrpc/test_cert_plugin.py b/ipatests/test_xmlrpc/test_cert_plugin.py
index cb5175d4f..bac3e94d5 100644
--- a/ipatests/test_xmlrpc/test_cert_plugin.py
+++ b/ipatests/test_xmlrpc/test_cert_plugin.py
@@ -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
"""