Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SLUB_SIP_Builder
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
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
Digital Preservation
SLUB_SIP_Builder
Commits
f977c702
Commit
f977c702
authored
4 years ago
by
bolkun
Browse files
Options
Downloads
Patches
Plain Diff
Added tests for fallback to k10plusPPN
parent
4f9825e1
No related branches found
No related tags found
1 merge request
!5
Feature error coloring
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
t/slubsipbuilderbagit.t
+5
-1
5 additions, 1 deletion
t/slubsipbuilderbagit.t
with
5 additions
and
1 deletion
t/slubsipbuilderbagit.t
+
5
−
1
View file @
f977c702
...
...
@@ -24,7 +24,7 @@ use strict;
use
warnings
;
use
diagnostics
;
use
Test::
More
tests
=>
11
4
;
use
Test::
More
tests
=>
11
6
;
use
Test::
Output
;
use
Test::
Exception
;
use
Test::
File
;
...
...
@@ -129,8 +129,10 @@ BEGIN {
}
my
$exportToArchiveDate
=
"
2020-08-05_10-26-11
";
my
$ppn
=
"
457035137
";
my
$K10plus
=
"
1655506501
";
my
$noppn
=
"";
my
$marc21
;
my
$marc21_2
;
my
@addBagInfo
=
(
{'
SLUBArchiv-sipVersion
'
=>
'
v2020.1
'},
{'
SLUBArchiv-externalWorkflow
'
=>
'
kitodo
'},
...
...
@@ -186,6 +188,8 @@ throws_ok{ SLUB::LZA::SIPBuilderBagIt::get_marc21_from("https://sru.bsz-bw.de/sw
#
ok
(
$marc21
=
SLUB::LZA::SIPBuilderBagIt::
get_marc21_from_catalogue
(
$ppn
),
"
get_marc21_from_catalogue(), valid
");
like
(
$marc21
,
qr/<datafield tag="/
,
"
get_marc21_from_catalogue(), valid
");
ok
(
$marc21_2
=
SLUB::LZA::SIPBuilderBagIt::
get_marc21_from_catalogue
(
$K10plus
),
"
get_marc21_from_catalogue() K10plus, valid
");
like
(
$marc21_2
,
qr/<datafield tag="/
,
"
get_marc21_from_catalogue() K10plus, valid
");
throws_ok
{
SLUB::LZA::SIPBuilderBagIt::
get_marc21_from_catalogue
("");
}
qr/ppn not defined/
,
"
get_marc21_from_catalogue(), invalid
";
throws_ok
{
SLUB::LZA::SIPBuilderBagIt::
get_marc21_from_catalogue
(
undef
);
}
qr/ppn not defined/
,
"
get_marc21_from_catalogue(), invalid
";
#
...
...
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