diff options
Diffstat (limited to 'molecule/default/tests/test_installation.py')
| -rw-r--r-- | molecule/default/tests/test_installation.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/molecule/default/tests/test_installation.py b/molecule/default/tests/test_installation.py new file mode 100644 index 0000000..b1be621 --- /dev/null +++ b/molecule/default/tests/test_installation.py @@ -0,0 +1,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() |