DCD-224: Fetch the product 'latest' file when no version is specified.

This commit is contained in:
Steve Smith
2019-04-15 10:05:55 +10:00
parent 6db317051a
commit 624edfa5c9
11 changed files with 144 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
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('/etc/hosts')
assert f.exists
assert f.user == 'root'
assert f.group == 'root'