DCD-686: Initial manifest download logic.

This commit is contained in:
Steve Smith
2019-10-03 11:24:31 +10:00
parent 6bd58d54f5
commit 58632c27f9
6 changed files with 93 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import os
import pytest
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
def test_user_created(host):
user = host.user('testuser')
assert user.exists
@pytest.mark.parametrize('exe', [
'/usr/bin/git'
])
def test_package_exes(host, exe):
assert host.file(exe).exists