URL: https://github.com/freeipa/freeipa/pull/4308 Author: flo-renaud Title: #4308: [Backport][ipa-4-7] ipatests: fix TestSubCAkeyReplication Action: opened
PR body: """ This PR was opened automatically because PR #4301 was pushed to master and backport to ipa-4-7 is required. """ To pull the PR as Git branch: git remote add ghfreeipa https://github.com/freeipa/freeipa git fetch ghfreeipa pull/4308/head:pr4308 git checkout pr4308
From e1357bd2a396358430648c725667a938da4710c4 Mon Sep 17 00:00:00 2001 From: Florence Blanc-Renaud <f...@redhat.com> Date: Wed, 4 Mar 2020 10:55:10 +0100 Subject: [PATCH] ipatests: fix TestSubCAkeyReplication The test is using the output of openssl to compare the SubCA issuer name with the expected value. Depending on the version of openssl, the issuer can be displayed differently (with/without space around the = character). On RHEL 7.x, there is no space by default while on Fedora the space is used. Calling openssl with -nameopt space_eq forces a consistent output, always adding space around =. --- ipatests/test_integration/test_replica_promotion.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ipatests/test_integration/test_replica_promotion.py b/ipatests/test_integration/test_replica_promotion.py index 57feefb3a6..3ce64b1b5a 100644 --- a/ipatests/test_integration/test_replica_promotion.py +++ b/ipatests/test_integration/test_replica_promotion.py @@ -574,7 +574,8 @@ def test_sign_with_subca_on_replica(self): status = replica.run_command(status_cmd) assert 'State MONITORING, stuck: no' in status.stdout_text - ssl_cmd = ['openssl', 'x509', '-text', '-in', TEST_CRT_FILE] + ssl_cmd = ['openssl', 'x509', '-text', '-in', TEST_CRT_FILE, + '-nameopt', 'space_eq'] ssl = replica.run_command(ssl_cmd) assert 'Issuer: CN = {}'.format(self.SUBCA_MASTER) in ssl.stdout_text
_______________________________________________ FreeIPA-devel mailing list -- freeipa-devel@lists.fedorahosted.org To unsubscribe send an email to freeipa-devel-le...@lists.fedorahosted.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedorahosted.org/archives/list/freeipa-devel@lists.fedorahosted.org