mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 08:53:07 -06:00
DCD-796: Implement test that pg_dump is the correct version
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user