Skip to content

Commit b42f947

Browse files
committed
Added info and basil.ini file to run integration tests on a MySQL docker container
1 parent 3c484ca commit b42f947

8 files changed

Lines changed: 37 additions & 7 deletions

File tree

basil.ini

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#
2+
# BASIL Example Configuration
3+
#
4+
# MySQL Database
5+
ds = com.mysql.jdbc.jdbc2.optional.MysqlDataSource
6+
ds.serverName = localhost
7+
ds.port = 8889
8+
ds.user = root
9+
ds.password = NMg17ruPknQSC2rF
10+
ds.databaseName = basil
11+
#
12+
# ------------------------------------------------------
13+
# SHIRO specific (do not touch!)
14+
#
15+
# password matcher
16+
passwordMatcher = org.apache.shiro.authc.credential.PasswordMatcher
17+
passwordService = org.apache.shiro.authc.credential.DefaultPasswordService
18+
passwordMatcher.passwordService = $passwordService
19+
20+
jdbcRealm = org.apache.shiro.realm.jdbc.JdbcRealm
21+
jdbcRealm.permissionsLookupEnabled = true
22+
jdbcRealm.authenticationQuery = SELECT password FROM users WHERE username = ?
23+
jdbcRealm.userRolesQuery = SELECT role_name FROM users_roles WHERE username = ?
24+
jdbcRealm.credentialsMatcher = $passwordMatcher
25+
jdbcRealm.dataSource=$ds
26+
securityManager.realms = $jdbcRealm
27+
sessionManager = org.apache.shiro.web.session.mgt.DefaultWebSessionManager
28+
securityManager.sessionManager = $sessionManager
29+
filterChainResolver = org.apache.shiro.web.filter.mgt.PathMatchingFilterChainResolver

basil/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>basil</groupId>
88
<artifactId>parent</artifactId>
9-
<version>0.7.0-SNAPSHOT</version>
9+
<version>0.7.0</version>
1010
<relativePath>../parent</relativePath>
1111
</parent>
1212
<artifactId>basil</artifactId>

it/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<parent>
1414
<groupId>basil</groupId>
1515
<artifactId>parent</artifactId>
16-
<version>0.7.0-SNAPSHOT</version>
16+
<version>0.7.0</version>
1717
<relativePath>../parent</relativePath>
1818
</parent>
1919

it/run_mysql_docker.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docker run --detach --name=basil-it-mysql --env="MYSQL_ROOT_PASSWORD=NMg17ruPknQSC2rF" --env="MYSQL_ROOT_HOST=%" --publish 8889:3306 mysql/mysql-server:5.7

parent/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>basil</groupId>
88
<artifactId>parent</artifactId>
9-
<version>0.7.0-SNAPSHOT</version>
9+
<version>0.7.0</version>
1010
<packaging>pom</packaging>
1111

1212
<name>BASIL :: Parent</name>
@@ -26,7 +26,7 @@
2626
<shiro.version>1.4.2</shiro.version>
2727

2828
<!-- basil version -->
29-
<basil.version>0.7.0-SNAPSHOT</basil.version>
29+
<basil.version>0.7.0</basil.version>
3030

3131
<!-- github server corresponds to entry in ~/.m2/settings.xml -->
3232
<github.global.server>github</github.global.server>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<parent>
99
<groupId>basil</groupId>
1010
<artifactId>parent</artifactId>
11-
<version>0.7.0-SNAPSHOT</version>
11+
<version>0.7.0</version>
1212
<relativePath>parent</relativePath>
1313
</parent>
1414
<name>BASIL :: Reactor</name>

rendering/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>basil</groupId>
88
<artifactId>parent</artifactId>
9-
<version>0.7.0-SNAPSHOT</version>
9+
<version>0.7.0</version>
1010
<relativePath>../parent</relativePath>
1111
</parent>
1212
<artifactId>rendering</artifactId>

server/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>basil</groupId>
88
<artifactId>parent</artifactId>
9-
<version>0.7.0-SNAPSHOT</version>
9+
<version>0.7.0</version>
1010
<relativePath>../parent</relativePath>
1111
</parent>
1212
<artifactId>basil-server</artifactId>

0 commit comments

Comments
 (0)