mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 08:53:07 -06:00
DCD-224: New task for common package installs that is cross-distro.
This commit is contained in:
16
roles/linux-common/molecule/default/tests/test_default.py
Normal file
16
roles/linux-common/molecule/default/tests/test_default.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import os
|
||||
|
||||
import testinfra.utils.ansible_runner
|
||||
|
||||
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
|
||||
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
|
||||
|
||||
|
||||
def test_user_prereq(host):
|
||||
f = host.file('/usr/sbin/useradd')
|
||||
assert f.exists
|
||||
|
||||
|
||||
def test_support_packages(host):
|
||||
assert host.file('/usr/bin/jq').exists
|
||||
assert host.file('/usr/bin/curl').exists
|
||||
Reference in New Issue
Block a user