This is an automated email from the ASF dual-hosted git repository. ikamga pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/fineract-cn-template.git
commit db65864ae5e57d0c97c721e66ecb8447687677cb Author: Isaac Kamga <[email protected]> AuthorDate: Sat Mar 23 00:06:19 2019 +0100 Migrate template service from MariaDB to PostgreSQL --- .../java/org/apache/fineract/cn/template/SuiteTestEnvironment.java | 6 +++--- .../src/main/java/org/apache/fineract/cn/template/TestSample.java | 2 +- service/src/main/resources/application.yml | 6 ++++++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/component-test/src/main/java/org/apache/fineract/cn/template/SuiteTestEnvironment.java b/component-test/src/main/java/org/apache/fineract/cn/template/SuiteTestEnvironment.java index 85b601e..8d93733 100644 --- a/component-test/src/main/java/org/apache/fineract/cn/template/SuiteTestEnvironment.java +++ b/component-test/src/main/java/org/apache/fineract/cn/template/SuiteTestEnvironment.java @@ -20,7 +20,7 @@ package org.apache.fineract.cn.template; import org.apache.fineract.cn.test.env.TestEnvironment; import org.apache.fineract.cn.test.fixture.cassandra.CassandraInitializer; -import org.apache.fineract.cn.test.fixture.mariadb.MariaDBInitializer; +import org.apache.fineract.cn.test.fixture.postgresql.PostgreSQLInitializer; import org.junit.ClassRule; import org.junit.rules.RuleChain; import org.junit.rules.RunExternalResourceOnce; @@ -38,11 +38,11 @@ public class SuiteTestEnvironment { static final TestEnvironment testEnvironment = new TestEnvironment(APP_NAME); static final CassandraInitializer cassandraInitializer = new CassandraInitializer(); - static final MariaDBInitializer mariaDBInitializer = new MariaDBInitializer(); + static final PostgreSQLInitializer postgreSQLInitializer = new PostgreSQLInitializer(); @ClassRule public static TestRule orderClassRules = RuleChain .outerRule(new RunExternalResourceOnce(testEnvironment)) .around(new RunExternalResourceOnce(cassandraInitializer)) - .around(new RunExternalResourceOnce(mariaDBInitializer)); + .around(new RunExternalResourceOnce(postgreSQLInitializer)); } diff --git a/component-test/src/main/java/org/apache/fineract/cn/template/TestSample.java b/component-test/src/main/java/org/apache/fineract/cn/template/TestSample.java index 42fc067..10fdd37 100644 --- a/component-test/src/main/java/org/apache/fineract/cn/template/TestSample.java +++ b/component-test/src/main/java/org/apache/fineract/cn/template/TestSample.java @@ -74,7 +74,7 @@ public class TestSample extends SuiteTestEnvironment { } @ClassRule - public final static TenantDataStoreContextTestRule tenantDataStoreContext = TenantDataStoreContextTestRule.forRandomTenantName(cassandraInitializer, mariaDBInitializer); + public final static TenantDataStoreContextTestRule tenantDataStoreContext = TenantDataStoreContextTestRule.forRandomTenantName(cassandraInitializer, postgreSQLInitializer); @Rule public final TenantApplicationSecurityEnvironmentTestRule tenantApplicationSecurityEnvironment diff --git a/service/src/main/resources/application.yml b/service/src/main/resources/application.yml index 2ae6bd0..b987018 100644 --- a/service/src/main/resources/application.yml +++ b/service/src/main/resources/application.yml @@ -23,6 +23,12 @@ spring: enabled: false config: enabled: false + datasource: + driver-class-name: org.postgresql.Driver + platform: postgres + url: jdbc:postgresql://localhost:5432/seshat + username: postgres + password: postgres eureka: client:
