Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DARIAH-DE OAI-PMH Services
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DARIAH-DE
DARIAH-DE OAI-PMH Services
Commits
f3580fd3
Commit
f3580fd3
authored
3 years ago
by
Stefan E. Funk
Browse files
Options
Downloads
Patches
Plain Diff
Fix some online tests
parent
f511a2fc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
oaipmh-core/src/test/java/info/textgrid/middleware/OaiPmhDariahdeOnlineTests.java
+15
-6
15 additions, 6 deletions
...a/info/textgrid/middleware/OaiPmhDariahdeOnlineTests.java
with
15 additions
and
6 deletions
oaipmh-core/src/test/java/info/textgrid/middleware/OaiPmhDariahdeOnlineTests.java
+
15
−
6
View file @
f3580fd3
...
...
@@ -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
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment