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

Method await_error

test/modules/md/md_env.py:524–536  ·  view source on GitHub ↗
(self, domain, timeout=60, via_domain=None, use_https=True, errors=1)

Source from the content-addressed store, hash-verified

522 return True
523
524 def await_error(self, domain, timeout=60, via_domain=None, use_https=True, errors=1):
525 try_until = time.time() + timeout
526 while True:
527 if time.time() >= try_until:
528 return False
529 md = self.get_md_status(domain, via_domain=via_domain, use_https=use_https)
530 if md:
531 if 'state' in md and md['state'] == MDTestEnv.MD_S_ERROR:
532 return md
533 if 'renewal' in md and 'errors' in md['renewal'] \
534 and md['renewal']['errors'] >= errors:
535 return md
536 time.sleep(0.1)
537
538 def await_file(self, fpath, timeout=60):
539 try_until = time.time() + timeout

Callers 15

test_md_710_004Method · 0.80
test_md_741_001Method · 0.80
test_md_751_002Method · 0.80
test_md_751_003Method · 0.80
test_md_750_001Method · 0.80
test_md_750_002Method · 0.80
test_md_750_003Method · 0.80
test_md_750_004Method · 0.80
test_md_750_005Method · 0.80
test_md_750_011Method · 0.80
test_md_750_012Method · 0.80
test_md_750_015Method · 0.80

Calls 1

get_md_statusMethod · 0.95

Tested by 15

test_md_710_004Method · 0.64
test_md_741_001Method · 0.64
test_md_751_002Method · 0.64
test_md_751_003Method · 0.64
test_md_750_001Method · 0.64
test_md_750_002Method · 0.64
test_md_750_003Method · 0.64
test_md_750_004Method · 0.64
test_md_750_005Method · 0.64
test_md_750_011Method · 0.64
test_md_750_012Method · 0.64
test_md_750_015Method · 0.64