blob: bacc3208df51de0fc467d9498ddc5a07c19b00f9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
testinfra_hosts = ['borg-client', 'borg-server', 'borg-server-2']
def test_borg_installed(host):
borg = host.package('borgbackup')
assert borg.is_installed
def test_borg_binary_exists(host):
borg = host.file('/usr/bin/borg')
assert borg.exists
assert borg.mode == 0o755
def test_borg_version(host):
c = host.run('borg --version')
assert c.rc == 0
assert 'borg' in c.stdout.lower()
|