Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
namespace: use liquibase for chimera based tests
Acked-by: Gerd Behrmann Target: master Require-book: no Require-notes: no
- Loading branch information
Showing
5 changed files
with
118 additions
and
88 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
modules/dcache-chimera/src/test/java/org/dcache/chimera/namespace/ChimeraFsHelper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package org.dcache.chimera.namespace; | ||
|
||
import com.jolbox.bonecp.BoneCPDataSource; | ||
import org.dcache.chimera.JdbcFs; | ||
|
||
public class ChimeraFsHelper { | ||
|
||
private ChimeraFsHelper() {} | ||
|
||
public static JdbcFs getFileSystemProvider(String url, String drv, String user, | ||
String pass, String dialect) | ||
{ | ||
|
||
BoneCPDataSource ds = new BoneCPDataSource(); | ||
ds.setJdbcUrl(url); | ||
ds.setUsername(user); | ||
ds.setPassword(pass); | ||
ds.setDriverClass(drv); | ||
ds.setMaxConnectionsPerPartition(2); | ||
ds.setPartitionCount(1); | ||
|
||
return new JdbcFs(ds, dialect); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
modules/dcache-chimera/src/test/resources/org/dcache/chimera/chimera-test.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# | ||
# JDBC properties for Chimera | ||
# | ||
chimera.db.driver=org.hsqldb.jdbcDriver | ||
chimera.db.url=jdbc:hsqldb:mem:chimera | ||
chimera.db.user=sa | ||
chimera.db.password= | ||
chimera.db.dialect=HsqlDB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
modules/dcache/src/test/resources/org/dcache/tests/repository/chimera-test.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# | ||
# JDBC properties for Chimera | ||
# | ||
chimera.db.driver=org.hsqldb.jdbcDriver | ||
chimera.db.url=jdbc:hsqldb:mem | ||
chimera.db.user=sa | ||
chimera.db.password= | ||
chimera.db.dialect=HsqlDB |