DCD-796: Adds test for amazon-linux-extras install postgres

This commit is contained in:
Ben Partridge
2019-11-13 12:03:48 +11:00
parent 96e006cbb3
commit f3ced1534a
4 changed files with 71 additions and 0 deletions

View 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/pg_dump',
'/usr/bin/pg_restore',
'/usr/bin/psql'
])
def test_postgresql_amazon_linux_extras_exes(host, exe):
assert host.file(exe).exists