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

Function setup

test/modules/md/dns01_v2.py:30–37  ·  view source on GitHub ↗
(domain, challenge)

Source from the content-addressed store, hash-verified

28
29
30def setup(domain, challenge):
31 teardown(domain)
32 rv = run([curl, '-s', '-d', f'{{"host":"{domain}", "addresses":["127.0.0.1"]}}',
33 f'{challtestsrv}/set-txt'])
34 if rv == 0:
35 rv = run([curl, '-s', '-d', f'{{"host":"_acme-challenge.{domain}.", "value":"{challenge}"}}',
36 f'{challtestsrv}/set-txt'])
37 return rv
38
39
40def main(argv):

Callers 1

mainFunction · 0.70

Calls 2

teardownFunction · 0.70
runFunction · 0.70

Tested by

no test coverage detected