diff options
author | Stefan Eissing <icing@apache.org> | 2022-04-19 14:11:39 +0000 |
---|---|---|
committer | Stefan Eissing <icing@apache.org> | 2022-04-19 14:11:39 +0000 |
commit | 80795a9ae24ef3b1a3e818d3023f4b68707cb87f (patch) | |
tree | 12ac84b972afd5b8fae64ead4346c78d7b424d1e /test | |
parent | 9bdf654ce7282246d682ee7d1163c28e187ed97f (diff) | |
download | httpd-80795a9ae24ef3b1a3e818d3023f4b68707cb87f.tar.gz |
* Implement full auto status ("key: value" type status output).
Especially not only status summary counts for certificates and
OCSP stapling but also lists. Auto status format is similar to
what was used for mod_proxy_balancer.
[Rainer Jung]
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1900039 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rw-r--r-- | test/modules/md/test_920_status.py | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/test/modules/md/test_920_status.py b/test/modules/md/test_920_status.py index 36c520ac94..c89ce6d8d7 100644 --- a/test/modules/md/test_920_status.py +++ b/test/modules/md/test_920_status.py @@ -148,13 +148,17 @@ Protocols h2 http/1.1 acme-tls/1 assert re.search(r'<h3>Managed Certificates</h3>', status, re.MULTILINE) # get the ascii summary status = env.get_server_status(query="?auto", via_domain=env.http_addr, use_https=False) - m = re.search(r'Managed Certificates: total=(\d+), ok=(\d+) renew=(\d+) errored=(\d+) ready=(\d+)', - status, re.MULTILINE) + m = re.search(r'ManagedCertificatesTotal: (\d+)', status, re.MULTILINE) + assert m, status + assert int(m.group(1)) == 1 + m = re.search(r'ManagedCertificatesOK: (\d+)', status, re.MULTILINE) + assert int(m.group(1)) == 0 + m = re.search(r'ManagedCertificatesRenew: (\d+)', status, re.MULTILINE) + assert int(m.group(1)) == 1 + m = re.search(r'ManagedCertificatesErrored: (\d+)', status, re.MULTILINE) + assert int(m.group(1)) == 0 + m = re.search(r'ManagedCertificatesReady: (\d+)', status, re.MULTILINE) assert int(m.group(1)) == 1 - assert int(m.group(2)) == 0 - assert int(m.group(3)) == 1 - assert int(m.group(4)) == 0 - assert int(m.group(5)) == 1 def test_md_920_011(self, env): # MD with static cert files in base server, see issue #161 |