aboutsummaryrefslogtreecommitdiffstats
path: root/molecule/default/tests/test_installation.py
blob: 800eba4bc61f8f6f800d1b4534b638cbc131c6e6 (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()