diff --git a/annotation/src/test/resources/test-dataSource.xml b/annotation/src/test/resources/test-dataSource.xml index 85af9016f8b8ade09074a808a46ac0b2486c640a..6374a21fdec63810545b6ae8bb7faeba53704645 100644 --- a/annotation/src/test/resources/test-dataSource.xml +++ b/annotation/src/test/resources/test-dataSource.xml @@ -9,7 +9,9 @@ http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd"> - <context:property-placeholder location="classpath:test-db.properties" /> + <context:property-placeholder + ignore-resource-not-found="true" + location="classpath:test-db.properties,file:/etc/minerva/test-db.properties" /> <!-- Data Source Declaration --> diff --git a/annotation/src/test/resources/test-db.properties b/annotation/src/test/resources/test-db.properties index 8e0d1e79f3884299de2dbb582af2a719199e7f61..e1edfb39acf73ef0ad8d928ba01941bb4d87ac72 100644 --- a/annotation/src/test/resources/test-db.properties +++ b/annotation/src/test/resources/test-db.properties @@ -1,3 +1,3 @@ -database.uri=jdbc:postgresql://localhost:5432/map_viewer-test +database.uri=jdbc:postgresql://localhost:5432/map_viewer database.username=map_viewer database.password=123qweasdzxc \ No newline at end of file diff --git a/converter-SBGNML/src/test/resources/test-dataSource.xml b/converter-SBGNML/src/test/resources/test-dataSource.xml index 4571b58c1be9169080cc032d47ef12671ed80b36..6374a21fdec63810545b6ae8bb7faeba53704645 100644 --- a/converter-SBGNML/src/test/resources/test-dataSource.xml +++ b/converter-SBGNML/src/test/resources/test-dataSource.xml @@ -11,7 +11,7 @@ <context:property-placeholder ignore-resource-not-found="true" - location="classpath:test-db.properties,file:/etc/minerva/db.properties" /> + location="classpath:test-db.properties,file:/etc/minerva/test-db.properties" /> <!-- Data Source Declaration --> @@ -19,7 +19,7 @@ class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close"> <property name="driverClass" value="org.postgresql.Driver" /> - <property name="jdbcUrl" value="jdbc:postgresql://localhost:5432/map_viewer-test" /> + <property name="jdbcUrl" value="${database.uri}" /> <property name="user" value="${database.username}" /> <property name="password" value="${database.password}" /> <property name="maxPoolSize" value="90" /> diff --git a/converter-SBGNML/src/test/resources/test-db.properties b/converter-SBGNML/src/test/resources/test-db.properties index 8e0d1e79f3884299de2dbb582af2a719199e7f61..e1edfb39acf73ef0ad8d928ba01941bb4d87ac72 100644 --- a/converter-SBGNML/src/test/resources/test-db.properties +++ b/converter-SBGNML/src/test/resources/test-db.properties @@ -1,3 +1,3 @@ -database.uri=jdbc:postgresql://localhost:5432/map_viewer-test +database.uri=jdbc:postgresql://localhost:5432/map_viewer database.username=map_viewer database.password=123qweasdzxc \ No newline at end of file diff --git a/persist/src/main/resources/dataSource.xml b/persist/src/main/resources/dataSource.xml index 0a0333182f47d6a5bbe4ca1de1922a85028512c9..6374a21fdec63810545b6ae8bb7faeba53704645 100644 --- a/persist/src/main/resources/dataSource.xml +++ b/persist/src/main/resources/dataSource.xml @@ -11,7 +11,7 @@ <context:property-placeholder ignore-resource-not-found="true" - location="classpath:test-db.properties,file:/etc/minerva/db.properties" /> + location="classpath:test-db.properties,file:/etc/minerva/test-db.properties" /> <!-- Data Source Declaration --> diff --git a/persist/src/test/resources/test-dataSource.xml b/persist/src/test/resources/test-dataSource.xml index 85af9016f8b8ade09074a808a46ac0b2486c640a..6374a21fdec63810545b6ae8bb7faeba53704645 100644 --- a/persist/src/test/resources/test-dataSource.xml +++ b/persist/src/test/resources/test-dataSource.xml @@ -9,7 +9,9 @@ http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd"> - <context:property-placeholder location="classpath:test-db.properties" /> + <context:property-placeholder + ignore-resource-not-found="true" + location="classpath:test-db.properties,file:/etc/minerva/test-db.properties" /> <!-- Data Source Declaration --> diff --git a/persist/src/test/resources/test-db.properties b/persist/src/test/resources/test-db.properties index 8e0d1e79f3884299de2dbb582af2a719199e7f61..e1edfb39acf73ef0ad8d928ba01941bb4d87ac72 100644 --- a/persist/src/test/resources/test-db.properties +++ b/persist/src/test/resources/test-db.properties @@ -1,3 +1,3 @@ -database.uri=jdbc:postgresql://localhost:5432/map_viewer-test +database.uri=jdbc:postgresql://localhost:5432/map_viewer database.username=map_viewer database.password=123qweasdzxc \ No newline at end of file diff --git a/reactome/src/test/resources/test-dataSource.xml b/reactome/src/test/resources/test-dataSource.xml index 85af9016f8b8ade09074a808a46ac0b2486c640a..6374a21fdec63810545b6ae8bb7faeba53704645 100644 --- a/reactome/src/test/resources/test-dataSource.xml +++ b/reactome/src/test/resources/test-dataSource.xml @@ -9,7 +9,9 @@ http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd"> - <context:property-placeholder location="classpath:test-db.properties" /> + <context:property-placeholder + ignore-resource-not-found="true" + location="classpath:test-db.properties,file:/etc/minerva/test-db.properties" /> <!-- Data Source Declaration --> diff --git a/reactome/src/test/resources/test-db.properties b/reactome/src/test/resources/test-db.properties index 8e0d1e79f3884299de2dbb582af2a719199e7f61..e1edfb39acf73ef0ad8d928ba01941bb4d87ac72 100644 --- a/reactome/src/test/resources/test-db.properties +++ b/reactome/src/test/resources/test-db.properties @@ -1,3 +1,3 @@ -database.uri=jdbc:postgresql://localhost:5432/map_viewer-test +database.uri=jdbc:postgresql://localhost:5432/map_viewer database.username=map_viewer database.password=123qweasdzxc \ No newline at end of file diff --git a/rest-api/src/test/resources/test-dataSource.xml b/rest-api/src/test/resources/test-dataSource.xml index 85af9016f8b8ade09074a808a46ac0b2486c640a..6374a21fdec63810545b6ae8bb7faeba53704645 100644 --- a/rest-api/src/test/resources/test-dataSource.xml +++ b/rest-api/src/test/resources/test-dataSource.xml @@ -9,7 +9,9 @@ http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd"> - <context:property-placeholder location="classpath:test-db.properties" /> + <context:property-placeholder + ignore-resource-not-found="true" + location="classpath:test-db.properties,file:/etc/minerva/test-db.properties" /> <!-- Data Source Declaration --> diff --git a/rest-api/src/test/resources/test-db.properties b/rest-api/src/test/resources/test-db.properties index 8e0d1e79f3884299de2dbb582af2a719199e7f61..e1edfb39acf73ef0ad8d928ba01941bb4d87ac72 100644 --- a/rest-api/src/test/resources/test-db.properties +++ b/rest-api/src/test/resources/test-db.properties @@ -1,3 +1,3 @@ -database.uri=jdbc:postgresql://localhost:5432/map_viewer-test +database.uri=jdbc:postgresql://localhost:5432/map_viewer database.username=map_viewer database.password=123qweasdzxc \ No newline at end of file diff --git a/service/src/test/resources/test-dataSource.xml b/service/src/test/resources/test-dataSource.xml index 85af9016f8b8ade09074a808a46ac0b2486c640a..6374a21fdec63810545b6ae8bb7faeba53704645 100644 --- a/service/src/test/resources/test-dataSource.xml +++ b/service/src/test/resources/test-dataSource.xml @@ -9,7 +9,9 @@ http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd"> - <context:property-placeholder location="classpath:test-db.properties" /> + <context:property-placeholder + ignore-resource-not-found="true" + location="classpath:test-db.properties,file:/etc/minerva/test-db.properties" /> <!-- Data Source Declaration --> diff --git a/service/src/test/resources/test-db.properties b/service/src/test/resources/test-db.properties index 8e0d1e79f3884299de2dbb582af2a719199e7f61..e1edfb39acf73ef0ad8d928ba01941bb4d87ac72 100644 --- a/service/src/test/resources/test-db.properties +++ b/service/src/test/resources/test-db.properties @@ -1,3 +1,3 @@ -database.uri=jdbc:postgresql://localhost:5432/map_viewer-test +database.uri=jdbc:postgresql://localhost:5432/map_viewer database.username=map_viewer database.password=123qweasdzxc \ No newline at end of file