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

Method check_md_complete

test/modules/md/md_env.py:339–351  ·  view source on GitHub ↗
(self, domain, pkey=None)

Source from the content-addressed store, hash-verified

337 return 'pubcert.pem'
338
339 def check_md_complete(self, domain, pkey=None):
340 md = self.get_md_status(domain)
341 assert md
342 assert 'state' in md, "md is unexpected: {0}".format(md)
343 assert md['state'] is MDTestEnv.MD_S_COMPLETE, f"unexpected state: {md['state']}"
344 pkey_file = self.store_domain_file(domain, self.pkey_fname(pkey))
345 cert_file = self.store_domain_file(domain, self.cert_fname(pkey))
346 r = self.run(['ls', os.path.dirname(pkey_file)])
347 if not os.path.isfile(pkey_file):
348 assert False, f"pkey missing: {pkey_file}: {r.stdout}"
349 if not os.path.isfile(cert_file):
350 assert False, f"cert missing: {cert_file}: {r.stdout}"
351 return md
352
353 def check_md_credentials(self, domain):
354 if isinstance(domain, list):

Callers 15

test_md_790_001Method · 0.80
test_md_790_002Method · 0.80
test_md_790_003Method · 0.80
_class_scopeMethod · 0.80
test_md_741_002Method · 0.80
test_md_702_001Method · 0.80
test_md_702_003Method · 0.80
test_md_702_004Method · 0.80
test_md_702_008aMethod · 0.80
test_md_702_030Method · 0.80
test_md_702_031Method · 0.80
test_md_702_032Method · 0.80

Calls 5

get_md_statusMethod · 0.95
store_domain_fileMethod · 0.95
pkey_fnameMethod · 0.95
cert_fnameMethod · 0.95
runMethod · 0.45

Tested by 15

test_md_790_001Method · 0.64
test_md_790_002Method · 0.64
test_md_790_003Method · 0.64
_class_scopeMethod · 0.64
test_md_741_002Method · 0.64
test_md_702_001Method · 0.64
test_md_702_003Method · 0.64
test_md_702_004Method · 0.64
test_md_702_008aMethod · 0.64
test_md_702_030Method · 0.64
test_md_702_031Method · 0.64
test_md_702_032Method · 0.64