From 983234c91bfe1f5a0cc6e1e35815da9f86da6136 Mon Sep 17 00:00:00 2001 From: Stanislav Laznicka Date: Mon, 6 Nov 2017 09:11:39 +0100 Subject: [PATCH] caless tests: decode cert bytes in debug log Bytes would cause the logger to throw up while interpolating the string. Reviewed-By: Michal Reznik Reviewed-By: Rob Crittenden --- ipatests/test_integration/test_caless.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipatests/test_integration/test_caless.py b/ipatests/test_integration/test_caless.py index 231cdb75e..eccc9967d 100644 --- a/ipatests/test_integration/test_caless.py +++ b/ipatests/test_integration/test_caless.py @@ -381,7 +381,7 @@ class CALessBase(IntegrationTest): # Check the cert PEM file remote_cacrt = host.get_file_contents(paths.IPA_CA_CRT) logger.debug('%s:/etc/ipa/ca.crt contents:\n%s', - host, remote_cacrt) + host, remote_cacrt.decode('utf-8')) cacrt = x509.load_unknown_x509_certificate(remote_cacrt) logger.debug('%s: Decoded /etc/ipa/ca.crt:\n%r', host, cacrt.public_bytes(x509.Encoding.PEM))