From b474b263ed0161ba8411cc84014e4d08a44ac15f Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Mon, 23 Nov 2020 15:53:24 -0500 Subject: [PATCH] ipatests: configure MDStoreDir for mod_md ACME test This directory defines the location for ACME-related files used by mod_md. Specify and create it rather than relying on defaults to both fix a test failure and to make the files accessable for debugging purposes. https://pagure.io/freeipa/issue/8581 Signed-off-by: Rob Crittenden Reviewed-By: Florence Blanc-Renaud Reviewed-By: Mohammad Rizwan Reviewed-By: Armando Neto --- ipatests/test_integration/test_acme.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ipatests/test_integration/test_acme.py b/ipatests/test_integration/test_acme.py index d83137e30..6998cbf87 100644 --- a/ipatests/test_integration/test_acme.py +++ b/ipatests/test_integration/test_acme.py @@ -291,11 +291,13 @@ class TestACME(CALessBase): def test_mod_md(self): # write config self.clients[0].run_command(['mkdir', '-p', '/etc/httpd/conf.d']) + self.clients[0].run_command(['mkdir', '-p', '/etc/httpd/md']) self.clients[0].put_file_contents( '/etc/httpd/conf.d/md.conf', '\n'.join([ f'MDCertificateAuthority {self.acme_server}', 'MDCertificateAgreement accepted', + 'MDStoreDir /etc/httpd/md', f'MDomain {self.clients[0].hostname}', '', f' ServerName {self.clients[0].hostname}', @@ -325,6 +327,10 @@ class TestACME(CALessBase): self.master.run_command( ['curl', f'https://{self.clients[0].hostname}']) + # clean-up + self.clients[0].run_command(['rm', '-rf', '/etc/httpd/md']) + self.clients[0].run_command(['rm', '-f', '/etc/httpd/conf.d/md.conf']) + ###################### # Disable ACME service ######################