Split out anonymous PKINIT test to a separate method

This allows for more flexibility in the whole PKINIT setup process.

https://pagure.io/freeipa/issue/6792

Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
This commit is contained in:
Martin Babinsky authored and Martin Basti committed 2017-03-30 13:09:42 +02:00
1 parent 1fc48cd0af
commit 17aa51ef02
1 file changed
+2
+2
View File
@@ -410,6 +410,7 @@ class KrbInstance(service.Service):
root_logger.critical("krb5kdc service failed to restart")
raise
def test_anonymous_pkinit(self):
with ipautil.private_ccache() as anon_ccache:
try:
ipautil.run([paths.KINIT, '-n', '-c', anon_ccache])
@@ -421,6 +422,7 @@ class KrbInstance(service.Service):
self.steps = []
self.step("installing X509 Certificate for PKINIT",
self.setup_pkinit)
self.step("testing anonymous PKINIT", self.test_anonymous_pkinit)
self.start_creation()