From c421da83ae8244ef0c31d21ade6bc1dd3eb431fc Mon Sep 17 00:00:00 2001 From: "Stefan E. Funk" <funk@sub.uni-goettingen.de> Date: Wed, 20 Oct 2021 15:44:30 +0200 Subject: [PATCH] Re-set config file location in beans.xml --- .../textgrid/middleware/OaiPmhTextgridOnlineTests.java | 7 +++---- oaipmh-webapp/src/main/webapp/WEB-INF/beans.xml | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/oaipmh-core/src/test/java/info/textgrid/middleware/OaiPmhTextgridOnlineTests.java b/oaipmh-core/src/test/java/info/textgrid/middleware/OaiPmhTextgridOnlineTests.java index c9ae47d8..67834e76 100644 --- a/oaipmh-core/src/test/java/info/textgrid/middleware/OaiPmhTextgridOnlineTests.java +++ b/oaipmh-core/src/test/java/info/textgrid/middleware/OaiPmhTextgridOnlineTests.java @@ -14,7 +14,6 @@ import org.junit.After; import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; -import org.junit.Ignore; import org.junit.Test; import info.textgrid.utils.httpclient.TGHttpClient; import info.textgrid.utils.httpclient.TGHttpResponse; @@ -26,7 +25,7 @@ import info.textgrid.utils.httpclient.TGHttpResponse; * * @author Stefan E. Funk, SUB Göttingen */ -@Ignore +// @Ignore public class OaiPmhTextgridOnlineTests { private static final String OAI_DC_PREFIX = "oai_dc"; @@ -48,8 +47,8 @@ public class OaiPmhTextgridOnlineTests { private static final String VERB_LIST_SETS = "ListSets"; // The OAIPMH host to be tested. - private static String host = "http://dev.textgridlab.org/1.0/tgoaipmh/"; - // private static String host = "http://textgridlab.org/1.0/tgoaipmh/"; + // private static String host = "http://dev.textgridlab.org/1.0/tgoaipmh/"; + private static String host = "http://textgridlab.org/1.0/tgoaipmh/"; // NOTE Test with "mvn jetty:run" in oaipmh-webapp module folder and SSH tunneling "ssh -L // 9302:localhost:9302 -l username textgrid-esx2.gwdg.de", please use original OAIPMH config file diff --git a/oaipmh-webapp/src/main/webapp/WEB-INF/beans.xml b/oaipmh-webapp/src/main/webapp/WEB-INF/beans.xml index 48e1e066..37c18fa1 100644 --- a/oaipmh-webapp/src/main/webapp/WEB-INF/beans.xml +++ b/oaipmh-webapp/src/main/webapp/WEB-INF/beans.xml @@ -24,7 +24,7 @@ class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="locations"> <list> - <value>file:C:\dev\oai-pmh\oaipmh-webapp\src\main\webapp\WEB-INF\oaipmh.textgrid.properties</value> + <value>file:/etc/dhrep/oaipmh/oaipmh.properties</value> </list> </property> <property name="ignoreResourceNotFound" value="true" /> -- GitLab