homeserver/roles/stefangweichinger.rclone/molecule/tests/test_default.py

15 lines
318 B
Python
Raw Normal View History

2020-08-18 11:57:53 +02:00
import os
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
def test_hosts_file(host):
f = host.file('/usr/bin/rclone')
assert f.exists
assert f.user == 'root'
assert f.group == 'root'