mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
20 lines
400 B
Python
20 lines
400 B
Python
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
|