Rename scenario to extra_opts indicating flexible use

This commit is contained in:
Dieter Verhelst 2019-03-12 14:00:01 +01:00
parent 0a8c460122
commit 3237335b6d
11 changed files with 24 additions and 12 deletions

View file

@ -0,0 +1,17 @@
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"

View file

@ -1,9 +0,0 @@
testinfra_hosts = ["ansible://folders"]
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"