ansible-borgbackup/molecule/generic_files/tests/test_client_extra_opts.py
2019-03-12 14:00:01 +01:00

18 lines
541 B
Python

testinfra_hosts = ["ansible://extra_opts"]
def test_include_exclude(host):
script = host.file("/usr/local/bin/borg-backup")
assert script.contains("/var/cache")
assert script.contains("--exclude '/var/cache/apt'")
assert script.user == "root"
assert script.group == "root"
def test_pre_post_commands(host):
script = host.file("/usr/local/bin/borg-backup")
assert script.contains("dpkg --get-selection")
assert script.contains("apt list")
assert script.user == "root"
assert script.group == "root"