ca-less tests: fix getting cert in pem format from nssdb

usage of ipautil.run in  get_pem methond of ca-less tests was not
refactored when the ipautil.run was refactored in
099cf98307

This results in failure of all CA-less test.

https://fedorahosted.org/freeipa/ticket/6177

Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
Petr Vobornik 2016-08-06 12:25:57 +02:00 committed by Martin Basti
parent 9f26e395e5
commit 6217d680da

View File

@ -279,10 +279,10 @@ class CALessBase(IntegrationTest):
@classmethod
def get_pem(cls, nickname):
pem_cert, _stderr, _returncode = ipautil.run(
result = ipautil.run(
['certutil', '-L', '-d', 'nssdb', '-n', nickname, '-a'],
cwd=cls.cert_dir)
return pem_cert
cwd=cls.cert_dir, capture_output=True)
return result.output
def verify_installation(self):
"""Verify CA cert PEM file and LDAP entry created by install