def test_that_tinc_conf_files_were_deployed_on(tinc_network):
for tinc_node in tinc_network.tinc_nodes:
with settings(
hide('stdout', 'running'),
host_string=tinc_node.host_string,
private_key_filename=tinc_node.private_key
):
tinc_network_name = tinc_network.tinc_network_name
print(" running on %s" % tinc_node.host_string)
cmd = sudo('ls -l /etc/tinc/%s' % tinc_network_name)
try:
assert 'tinc.conf' in cmd.stdout
except Exception as detail:
raise Exception("%s %s" % (cmd.stdout, detail))
评论列表
文章目录