diff options
author | Stefan Eissing <icing@apache.org> | 2024-09-17 14:05:22 +0200 |
---|---|---|
committer | Stefan Eissing <icing@apache.org> | 2024-09-17 14:05:22 +0200 |
commit | 7087372788913feb7f2a9b88430950c63c9f75c6 (patch) | |
tree | d3554a17e2684fd548365f2ecb2f9dbb5e6baccb /test | |
parent | *) mod_md: update to version 2.4.28 (diff) | |
download | apache2-7087372788913feb7f2a9b88430950c63c9f75c6.tar.xz apache2-7087372788913feb7f2a9b88430950c63c9f75c6.zip |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/modules/md/test_730_static.py | 9 | ||||
-rw-r--r-- | test/modules/md/test_801_stapling.py | 1 | ||||
-rw-r--r-- | test/modules/md/test_901_message.py | 2 | ||||
-rw-r--r-- | test/modules/md/test_920_status.py | 1 |
4 files changed, 10 insertions, 3 deletions
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), |