DCD-796: Implement test that pg_dump is the correct version

This commit is contained in:
Ben Partridge
2019-11-13 15:42:51 +11:00
parent b2b18e2cff
commit 1e3208d49e

View File

@@ -14,3 +14,7 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
]) ])
def test_postgresql_amazon_linux_extras_exes(host, exe): def test_postgresql_amazon_linux_extras_exes(host, exe):
assert host.file(exe).exists assert host.file(exe).exists
def test_postgresql_version(host):
pg_dump_version_output = host.check_output('pg_dump --version')
assert '(PostgreSQL) 9.6' in pg_dump_version_output