URL: https://github.com/freeipa/freeipa/pull/1229 Author: Rezney Title: #1229: test_caless: open CA cert in binary mode Action: opened
PR body: """ When running test_caless suite in py3 we need to open CA cert in binary mode so we can provide bytes later for python-cryptography. https://pagure.io/freeipa/issue/7131 """ To pull the PR as Git branch: git remote add ghfreeipa https://github.com/freeipa/freeipa git fetch ghfreeipa pull/1229/head:pr1229 git checkout pr1229
From 2b9237f00ee321954005065f2804fe9906ecf554 Mon Sep 17 00:00:00 2001 From: Michal Reznik <mrez...@redhat.com> Date: Fri, 3 Nov 2017 13:04:00 +0100 Subject: [PATCH] test_caless: open CA cert in binary mode When running test_caless suite in py3 we need to open CA cert in binary mode so we can provide bytes later for python-cryptography. https://pagure.io/freeipa/issue/7131 --- 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 d32e223579..6db5924e59 100644 --- a/ipatests/test_integration/test_caless.py +++ b/ipatests/test_integration/test_caless.py @@ -355,7 +355,7 @@ def verify_installation(self): Called from every positive server install test """ - with open(self.pem_filename) as f: + with open(self.pem_filename, 'rb') as f: expected_cacrt = f.read() logger.debug('Expected /etc/ipa/ca.crt contents:\n%s', expected_cacrt)
_______________________________________________ FreeIPA-devel mailing list -- freeipa-devel@lists.fedorahosted.org To unsubscribe send an email to freeipa-devel-le...@lists.fedorahosted.org