From 6217d680da5b121ba39e48f8823f21a639261584 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Sat, 6 Aug 2016 12:25:57 +0200 Subject: [PATCH] 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 099cf98307d4b2f0ace5d5e28754f264808bf59d This results in failure of all CA-less test. https://fedorahosted.org/freeipa/ticket/6177 Reviewed-By: Martin Basti --- ipatests/test_integration/test_caless.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ipatests/test_integration/test_caless.py b/ipatests/test_integration/test_caless.py index 667e2b3b1..c9d90331b 100644 --- a/ipatests/test_integration/test_caless.py +++ b/ipatests/test_integration/test_caless.py @@ -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