mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
DCD-224: Ensure ec2-utils is installed and add testing.
This commit is contained in:
16
roles/aws_common/molecule/default/tests/test_default.py
Normal file
16
roles/aws_common/molecule/default/tests/test_default.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import os
|
||||
import pytest
|
||||
|
||||
import testinfra.utils.ansible_runner
|
||||
|
||||
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
|
||||
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
|
||||
|
||||
|
||||
@pytest.mark.parametrize('exe', [
|
||||
'/usr/bin/ec2-metadata',
|
||||
'/usr/bin/amazon-ssm-agent',
|
||||
'/sbin/mount.efs'
|
||||
])
|
||||
def test_package_exes(host, exe):
|
||||
assert host.file(exe).exists
|
||||
Reference in New Issue
Block a user