From d396c76ec6d8f37c9e56a2f36a7427c11b055b17 Mon Sep 17 00:00:00 2001 From: Mark Reynolds Date: Wed, 8 Mar 2017 11:40:32 -0500 Subject: [PATCH] Issue 47536 - Fix CI testcase Description: The test was failing because we were not generating server certs using the fqdn\ https://pagure.io/389-ds-base/issue/47536 Reviewed by: ? --- dirsrvtests/tests/tickets/ticket47536_test.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dirsrvtests/tests/tickets/ticket47536_test.py b/dirsrvtests/tests/tickets/ticket47536_test.py index b5ec020..d91fbf9 100644 --- a/dirsrvtests/tests/tickets/ticket47536_test.py +++ b/dirsrvtests/tests/tickets/ticket47536_test.py @@ -7,7 +7,7 @@ # --- END COPYRIGHT BLOCK --- # import base64 - +import os import pytest from lib389.tasks import * from lib389.utils import * @@ -28,8 +28,10 @@ M1SERVERCERT = 'Server-Cert1' M2SERVERCERT = 'Server-Cert2' M1LDAPSPORT = '41636' M2LDAPSPORT = '42636' -M1SUBJECT = 'CN={},OU=389 Directory Server'.format(HOST_MASTER_1) -M2SUBJECT = 'CN={},OU=390 Directory Server'.format(HOST_MASTER_2) +ohostname = os.popen('hostname --fqdn', "r") +myhostname = ohostname.readline().rstrip() +M1SUBJECT = 'CN=' + myhostname + ',OU=389 Directory Server' +M2SUBJECT = 'CN=' + myhostname + ',OU=390 Directory Server' def add_entry(server, name, rdntmpl, start, num): -- 2.7.4