aboutsummaryrefslogtreecommitdiffstats
path: root/molecule/default/tests/test_installation.py
blob: b1be62149df4b43c911195d5a4476490af187e87 (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']


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()