[java-identity-provider] branch master updated: Add in-memory database to testbed.
Scott Cantor
cantor.2 at osu.edu
Mon Jul 6 17:53:01 UTC 2020
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch master
in repository java-identity-provider.
View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=241704c12b21cdfc9f2aca5295426857f8f82dbb
The following commit(s) were added to refs/heads/master by this push:
new 241704c12 Add in-memory database to testbed.
241704c12 is described below
commit 241704c12b21cdfc9f2aca5295426857f8f82dbb
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Mon Jul 6 13:53:03 2020 -0400
Add in-memory database to testbed.
---
idp-conf/src/test/resources/conf/global.xml | 10 ++++++++++
idp-conf/src/test/resources/test/test-jdbc.sql | 11 +++++++++++
2 files changed, 21 insertions(+)
diff --git a/idp-conf/src/test/resources/conf/global.xml b/idp-conf/src/test/resources/conf/global.xml
index 4c2b8a9cf..2cf7f1e2b 100644
--- a/idp-conf/src/test/resources/conf/global.xml
+++ b/idp-conf/src/test/resources/conf/global.xml
@@ -74,4 +74,14 @@
<value>%{idp.home}/system/conf/metadata-providers-system.xml</value>
</util:list>
+ <bean id="testbed.JDBCDataSource" class="org.hsqldb.jdbc.JDBCDataSource">
+ <property name="url" value="jdbc:hsqldb:mem:Mock" />
+ <property name="user" value="SA" />
+ <property name="password" value="" />
+ </bean>
+
+ <jdbc:initialize-database data-source="testbed.JDBCDataSource">
+ <jdbc:script location="classpath:/test/test-jdbc.sql"/>
+ </jdbc:initialize-database>
+
</beans>
diff --git a/idp-conf/src/test/resources/test/test-jdbc.sql b/idp-conf/src/test/resources/test/test-jdbc.sql
new file mode 100644
index 000000000..294b108a0
--- /dev/null
+++ b/idp-conf/src/test/resources/test/test-jdbc.sql
@@ -0,0 +1,11 @@
+CREATE TABLE shibpid (
+ localEntity VARCHAR(100) NOT NULL,
+ peerEntity VARCHAR(100) NOT NULL,
+ persistentId VARCHAR(50) NOT NULL,
+ principalName VARCHAR(50) NOT NULL,
+ localId VARCHAR(50) NOT NULL,
+ peerProvidedId VARCHAR(50),
+ creationDate TIMESTAMP NOT NULL,
+ deactivationDate TIMESTAMP,
+ PRIMARY KEY (localEntity, peerEntity, persistentId)
+ );
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list