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

Method test_md_702_044

test/modules/md/test_702_auto.py:684–707  ·  view source on GitHub ↗
(self, env, challenge_type)

Source from the content-addressed store, hash-verified

682 "tls-alpn-01" # , "http-01",
683 ])
684 def test_md_702_044(self, env, challenge_type):
685 domain = self.test_domain
686 md_domains = [domain, "mail." + domain]
687 domains = [domain]
688 #
689 # generate 1 MD and 1 vhost
690 conf = MDConf(env, admin="admin@" + domain)
691 conf.add("Protocols http/1.1 acme-tls/1")
692 conf.add_drive_mode("auto")
693 conf.add(f"MDCAChallenges {challenge_type}")
694 conf.add_md(md_domains)
695 conf.add_vhost(domains)
696 conf.install()
697 #
698 # restart (-> drive), check that MD was synched and completes
699 assert env.apache_restart() == 0, f'{env.apachectl_stderr}'
700 env.check_md(md_domains)
701 assert env.await_completion([domain])
702 env.check_md_complete(domain)
703 #
704 # check SSL running OK
705 cert = env.get_cert(domain)
706 assert md_domains[0] in cert.get_san_list()
707 assert md_domains[1] in cert.get_san_list()
708
709 # Make a setup using the base server. It will use http-01 challenge.
710 def test_md_702_050(self, env):

Callers

nothing calls this directly

Calls 12

add_drive_modeMethod · 0.95
add_mdMethod · 0.95
MDConfClass · 0.85
addMethod · 0.80
add_vhostMethod · 0.80
installMethod · 0.80
apache_restartMethod · 0.80
check_mdMethod · 0.80
await_completionMethod · 0.80
check_md_completeMethod · 0.80
get_certMethod · 0.80
get_san_listMethod · 0.80

Tested by

no test coverage detected