MCPcopy Create free account
hub / github.com/apache/httpd / test_md_801_011

Method test_md_801_011

test/modules/md/test_801_stapling.py:411–425  ·  view source on GitHub ↗
(self, env)

Source from the content-addressed store, hash-verified

409 # <https://bz.apache.org/bugzilla/show_bug.cgi?id=65567>
410 @pytest.mark.skipif(MDTestEnv.lacks_ocsp(), reason="no OCSP responder")
411 def test_md_801_011(self, env):
412 domains = [ f'test-801-011-{i}-{env.DOMAIN_SUFFIX}' for i in range(7)]
413 self.configure_httpd(env, domains, """
414 MDStapling on
415 LogLevel md:trace2 ssl:warn
416 """).install()
417 assert env.apache_restart() == 0, f'{env.apachectl_stderr}'
418 assert env.await_completion(domains, restart=False, timeout=120)
419 assert env.apache_restart() == 0, f'{env.apachectl_stderr}'
420 # now the certs are installed and ocsp will be retrieved
421 time.sleep(1)
422 for domain in domains:
423 stat = env.await_ocsp_status(domain)
424 assert stat['ocsp'] == "successful (0x0)"
425 assert stat['verify'] == "0 (ok)"

Callers

nothing calls this directly

Calls 5

configure_httpdMethod · 0.95
installMethod · 0.80
apache_restartMethod · 0.80
await_completionMethod · 0.80
await_ocsp_statusMethod · 0.80

Tested by

no test coverage detected