From e15d494e96e9f9e6cdf21676ce3644c7894b3b53 Mon Sep 17 00:00:00 2001 From: Colin Wilk Date: Fri, 26 Jun 2026 22:35:40 +0000 Subject: test: add larger test suite for role - Add test systems for client/server setup - Add tests for systemd service and timer files - Add tests for SSH connectivity - Add tests for security configurations - Add tests for multi-instance backup scenarios --- molecule/default/tests/test_installation.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 molecule/default/tests/test_installation.py (limited to 'molecule/default/tests/test_installation.py') 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() -- cgit v1.2.3