Skip to content

Commit

Permalink
fix in repo test initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Dec 18, 2017
1 parent b1e0f10 commit 5003845
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 22 deletions.
10 changes: 3 additions & 7 deletions repo/repo-sql-impl-test/sample-configurations/mysql.properties
Expand Up @@ -14,11 +14,7 @@
# limitations under the License.
#

embedded=false
driverClassName=com.mysql.jdbc.Driver
hibernateHbm2ddl=validate
hibernateDialect=com.evolveum.midpoint.repo.sql.util.MidPointMySQLDialect
database=mysql
jdbcUsername=midpoint
jdbcPassword=qwe123
jdbcUrl=jdbc:mysql://localhost:3306/midpoint?useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8&clobCharacterEncoding=UTF-8
useZip=true
jdbcPassword=midpoint
jdbcUrl=jdbc:mysql://localhost:3306/midpoint?useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8&clobCharacterEncoding=UTF-8
Expand Up @@ -14,10 +14,7 @@
# limitations under the License.
#

embedded=false
driverClassName=oracle.jdbc.OracleDriver
hibernateHbm2ddl=validate
hibernateDialect=org.hibernate.dialect.Oracle10gDialect
database=oracle
jdbcPassword=qwe123
jdbcUsername=bamboo
jdbcUrl=jdbc:oracle:thin:@192.168.1.25:1521/xe
Expand Up @@ -14,10 +14,7 @@
# limitations under the License.
#

embedded=false
driverClassName=org.postgresql.Driver
hibernateHbm2ddl=validate
hibernateDialect=com.evolveum.midpoint.repo.sql.util.MidPointPostgreSQLDialect
database=postgresql
jdbcPassword=midpoint
jdbcUsername=midpoint
jdbcUrl=jdbc:postgresql://localhost:5432/midpoint
Expand Up @@ -14,13 +14,7 @@
# limitations under the License.
#

embedded=false
driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver
hibernateHbm2ddl=validate
hibernateDialect=com.evolveum.midpoint.repo.sql.util.UnicodeSQLServer2008Dialect
#jdbcPassword=password
#jdbcUsername=midpoint
#jdbcUrl=jdbc:sqlserver://localhost:1433;database=midpoint
database=sqlserver
jdbcUsername=bamboo
jdbcPassword=qwer1234X
jdbcUrl=jdbc:sqlserver://192.168.1.14:1433;database=midpoint
Expand Up @@ -85,6 +85,8 @@ private void updateConfigurationFromFile(Configuration configuration, String fil
}

private void updateConfigurationFromProperties(Configuration configuration, Properties properties) {
updateConfigurationStringProperty(configuration, properties, PROPERTY_DATABASE);

updateConfigurationBooleanProperty(configuration, properties, PROPERTY_EMBEDDED);
updateConfigurationBooleanProperty(configuration, properties, PROPERTY_DROP_IF_EXISTS);
updateConfigurationBooleanProperty(configuration, properties, PROPERTY_AS_SERVER);
Expand Down

0 comments on commit 5003845

Please sign in to comment.