summaryrefslogtreecommitdiffstats
path: root/test/modules/md/test_720_wildcard.py
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2023-07-07 10:21:21 +0200
committerYann Ylavic <ylavic@apache.org>2023-07-07 10:21:21 +0200
commitac622813b2e8f2546b7a79a63a11dcbdf3a3bd0f (patch)
tree612c5c01e5ababb96d0fbe0e8dbb615b38b17773 /test/modules/md/test_720_wildcard.py
parentAdd application/vnd.geogebra.slides mime type (diff)
downloadapache2-ac622813b2e8f2546b7a79a63a11dcbdf3a3bd0f.tar.xz
apache2-ac622813b2e8f2546b7a79a63a11dcbdf3a3bd0f.zip
pytests: Ignore log errors/warnings per function.
It's easier to control errors at the function scope and it avoids ignored errors/warnings to propagate to the following tests (i.e. mask further unexpected errors). github: closes #371 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910844 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/modules/md/test_720_wildcard.py')
-rw-r--r--test/modules/md/test_720_wildcard.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/modules/md/test_720_wildcard.py b/test/modules/md/test_720_wildcard.py
index 23b311c3a4..916c47a5d8 100644
--- a/test/modules/md/test_720_wildcard.py
+++ b/test/modules/md/test_720_wildcard.py
@@ -44,6 +44,15 @@ class TestWildcard:
assert md
assert md['renewal']['errors'] > 0
assert md['renewal']['last']['problem'] == 'challenge-mismatch'
+ #
+ env.httpd_error_log.ignore_recent(
+ lognos = [
+ "AH10056" # None of offered challenge types
+ ],
+ matches = [
+ r'.*problem\[challenge-mismatch\].*'
+ ]
+ )
# test case: a wildcard certificate with ACMEv2, only dns-01 configured, invalid command path
def test_md_720_002(self, env):
@@ -67,6 +76,16 @@ class TestWildcard:
assert md
assert md['renewal']['errors'] > 0
assert md['renewal']['last']['problem'] == 'challenge-setup-failure'
+ #
+ env.httpd_error_log.ignore_recent(
+ lognos = [
+ "AH10056" # None of offered challenge types
+ ],
+ matches = [
+ r'.*problem\[challenge-setup-failure\].*',
+ r'.*setup command failed to execute.*'
+ ]
+ )
# variation, invalid cmd path, other challenges still get certificate for non-wildcard
def test_md_720_002b(self, env):
@@ -113,6 +132,15 @@ class TestWildcard:
assert md
assert md['renewal']['errors'] > 0
assert md['renewal']['last']['problem'] == 'challenge-setup-failure'
+ #
+ env.httpd_error_log.ignore_recent(
+ lognos = [
+ "AH10056" # None of offered challenge types
+ ],
+ matches = [
+ r'.*problem\[challenge-setup-failure\].*'
+ ]
+ )
# test case: a wildcard name certificate with ACMEv2, only dns-01 configured
def test_md_720_004(self, env):