From 7087372788913feb7f2a9b88430950c63c9f75c6 Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Tue, 17 Sep 2024 12:05:22 +0000 Subject: mod_md pytest: fix run on a clean test/gen to create all needed directories. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1920751 13f79535-47bb-0310-9956-ffa450edef68 --- test/modules/md/test_730_static.py | 9 ++++++--- test/modules/md/test_801_stapling.py | 1 + test/modules/md/test_901_message.py | 2 ++ test/modules/md/test_920_status.py | 1 + 4 files changed, 10 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/modules/md/test_730_static.py b/test/modules/md/test_730_static.py index 209d33a1aa..91a5f4445d 100644 --- a/test/modules/md/test_730_static.py +++ b/test/modules/md/test_730_static.py @@ -30,7 +30,8 @@ class TestStatic: # MD with static cert files, will not be driven domain = self.test_domain domains = [domain, 'www.%s' % domain] - testpath = os.path.join(env.gen_dir, 'test_920_001') + testpath = os.path.join(env.gen_dir, 'test_730_001') + env.mkpath(testpath) # cert that is only 10 more days valid creds = env.create_self_signed_cert(CertificateSpec(domains=domains), valid_from=timedelta(days=-80), @@ -62,7 +63,8 @@ class TestStatic: # MD with static cert files, force driving domain = self.test_domain domains = [domain, 'www.%s' % domain] - testpath = os.path.join(env.gen_dir, 'test_920_001') + testpath = os.path.join(env.gen_dir, 'test_730_002') + env.mkpath(testpath) # cert that is only 10 more days valid creds = env.create_self_signed_cert(CertificateSpec(domains=domains), valid_from=timedelta(days=-80), @@ -97,7 +99,8 @@ class TestStatic: # just configuring one file will not work domain = self.test_domain domains = [domain, 'www.%s' % domain] - testpath = os.path.join(env.gen_dir, 'test_920_001') + testpath = os.path.join(env.gen_dir, 'test_730_003') + env.mkpath(testpath) # cert that is only 10 more days valid creds = env.create_self_signed_cert(CertificateSpec(domains=domains), valid_from=timedelta(days=-80), diff --git a/test/modules/md/test_801_stapling.py b/test/modules/md/test_801_stapling.py index 1eacfabf88..7992337964 100644 --- a/test/modules/md/test_801_stapling.py +++ b/test/modules/md/test_801_stapling.py @@ -335,6 +335,7 @@ class TestStapling: md = self.mdA domains = [md] testpath = os.path.join(env.gen_dir, 'test_801_009') + env.mkpath(testpath) # cert that is 30 more days valid creds = env.create_self_signed_cert(CertificateSpec(domains=domains), valid_from=timedelta(days=-60), diff --git a/test/modules/md/test_901_message.py b/test/modules/md/test_901_message.py index d5d66e6e1a..c0018393e7 100644 --- a/test/modules/md/test_901_message.py +++ b/test/modules/md/test_901_message.py @@ -157,6 +157,7 @@ class TestMessage: domain = self.test_domain domains = [domain, 'www.%s' % domain] testpath = os.path.join(env.gen_dir, 'test_901_010') + env.mkpath(testpath) # cert that is only 20 more days valid creds = env.create_self_signed_cert(CertificateSpec(domains=domains), valid_from=timedelta(days=-70), @@ -182,6 +183,7 @@ class TestMessage: domain = self.test_domain domains = [domain, f'www.{domain}'] testpath = os.path.join(env.gen_dir, 'test_901_011') + env.mkpath(testpath) # cert that is only 5 more days valid creds = env.create_self_signed_cert(CertificateSpec(domains=domains), valid_from=timedelta(days=-85), diff --git a/test/modules/md/test_920_status.py b/test/modules/md/test_920_status.py index 6a5b338559..306b131a16 100644 --- a/test/modules/md/test_920_status.py +++ b/test/modules/md/test_920_status.py @@ -166,6 +166,7 @@ Protocols h2 http/1.1 acme-tls/1 domain = self.test_domain domains = [domain, 'www.%s' % domain] testpath = os.path.join(env.gen_dir, 'test_920_011') + env.mkpath(testpath) # cert that is only 20 more days valid creds = env.create_self_signed_cert(CertificateSpec(domains=domains), valid_from=timedelta(days=-70), -- cgit v1.2.3