You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

10 lines
280 B

testinfra_hosts = ['bind-client-host']
def test_caa(host):
domain = host.run("hostname -d").stdout.strip()
cmd = host.run("dig +short CAA " + domain)
print(cmd.stdout)
print(cmd.stderr)
assert 0 == cmd.rc
assert '"letsencrypt.org"' in cmd.stdout.strip()