DCD-621: Uses ATL_DB_ENGINE paramerter to infer database type. If db_engine is 'aurora_postgres', then use aurrora postgres db type. Else use default postgres db_type

This commit is contained in:
Varun Arbatti
2019-08-28 12:21:28 +10:00
parent 9e6eb41734
commit 2a00f33508
8 changed files with 160 additions and 3 deletions

View File

@@ -23,7 +23,7 @@
atl_db_removeabandonedtimeout: 1111
atl_db_testwhileidle: 'false'
atl_db_testonborrow: 'true'
atl_db_type: 'postgres96'
atl_db_engine: 'rds_postgres'
roles:
- role: linux_common

View File

@@ -10,7 +10,7 @@ def test_dbconfig_file(host):
f = host.file('/var/atlassian/application-data/jira/dbconfig.xml')
assert f.exists
assert f.user == 'jira'
assert f.contains("<database-type>postgres96</database-type>")
assert f.contains("<database-type>postgres72</database-type>")
assert f.contains("<driver-class>org.postgresql.Driver</driver-class>")
assert f.contains("<username>atljira</username>")
assert f.contains("<password>molecule_password</password>")