Skip to content
Snippets Groups Projects
Commit f3580fd3 authored by Stefan E. Funk's avatar Stefan E. Funk
Browse files

Fix some online tests

parent f511a2fc
No related branches found
No related tags found
No related merge requests found
......@@ -29,8 +29,8 @@ public class OaiPmhDariahdeOnlineTests {
// The OAIPMH host to be tested.
// private static String host = "https://repository.de.dariah.eu/1.0/oaipmh/";
// private static String host = "https://dhrepworkshop.de.dariah.eu/1.0/oaipmh/";
// private static String host = "http://trep.de.dariah.eu/1.0/oaipmh/";
private static String host = "http://vm1.dariah.local/1.0/oaipmh/";
private static String host = "http://trep.de.dariah.eu/1.0/oaipmh/";
// private static String host = "http://vm1.dariah.local/1.0/oaipmh/";
// Some output finals.
private static final String ERROR = ">>> ERROR";
......@@ -167,11 +167,20 @@ public class OaiPmhDariahdeOnlineTests {
@Test
public void testListSets() throws IOException {
// VM1: <setSpec>hdl:21.T11991/0000-001B-4CE2-F</setSpec>
// VM1: <setName>DUNGEON MASTER images</setName>
String set = "hdl:21.T11991/0000-001B-4CE2-F";
String expected = "hdl:21.T11991/0000-001B-4CE2-F";
// repository.de.dariah.eu
String set = "hdl:21.11113/0000-000B-CADD-9";
if (host.contains("vm1")) {
// VM1: <setSpec>hdl:21.T11991/0000-001B-4CE2-F</setSpec>
// VM1: <setName>DUNGEON MASTER images</setName>
set = "hdl:21.T11991/0000-001B-4CE2-F";
} else if (host.contains("trep")) {
set = "hdl:21.T11991/0000-0008-C3AC-A";
} else if (host.contains("dhrepworkshop")) {
set = "hdl:21.T11991/0000-0013-8FEE-F";
}
String expected = set;
testListSet(set, expected);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment