Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tools for technical analysts
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
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
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
tools for technical analysts
Commits
592f1e2f
Commit
592f1e2f
authored
6 months ago
by
Jens Steidl
Browse files
Options
Downloads
Patches
Plain Diff
- fix search tests: result order can change, increase maxrecords to expected result count
parent
7cc55e21
No related branches found
No related tags found
No related merge requests found
Pipeline
#7850
passed
6 months ago
Stage: build
Stage: pretest
Stage: unittest
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
t/03-search.t
+3
-3
3 additions, 3 deletions
t/03-search.t
with
3 additions
and
3 deletions
t/03-search.t
+
3
−
3
View file @
592f1e2f
...
...
@@ -74,11 +74,11 @@ subtest 'elastic search existing dc entry' => sub {
plan tests => 3;
SKIP: {
skip "testhost
'
$host
'
not available", 3 unless Test::TA::is_testhost_available();
$testapp->run(args =>
'
search
--
descriptive
"
Retrodigitalisierte Fotosn
"'
); #SLUB:LZA:testworkflow:testcases:test-sip_2023-01-01-11_11-11_11111
');
$testapp->run(args =>
'
search
--
descriptive
"
Retrodigitalisierte Fotosn
"
--
maxrecords
30
'
); #SLUB:LZA:testworkflow:testcases:test-sip_2023-01-01-11_11-11_11111
');
#say "STDOUT:",$testapp->stdout;
#say "STDERR:",$testapp->stderr;
like
(
$testapp
->
stdout
,
qr/\A"aipid"\n"6ae5f1f0-5306-404f-8fb7-445f82416932"\n"9a254f9d-1c19-478a-aacb-43be3a3c7d9d"\n.*"4f7516e4-23c8-4750-a411-91359fb7a869"\Z/
s, 'ta-tool search by dc, existing,
stdout
'
);
like($testapp->stderr, qr/\Afound 30 results\nreporting results 1 …
1
0 output as csv\Z/s,
'
ta
-
tool
search
by
dc
,
existing
,
stderr
'
);
like
(
$testapp
->
stdout
,
qr/\A"aipid"\n"6ae5f1f0-5306-404f-8fb7-445f82416932"\n"9a254f9d-1c19-478a-aacb-43be3a3c7d9d"\n.*"4f7516e4-23c8-4750-a411-91359fb7a869"
.*
\Z/
s, 'ta-tool search by dc, existing,
stdout
'
);
like($testapp->stderr, qr/\Afound 30 results\nreporting results 1 …
3
0 output as csv\Z/s,
'
ta
-
tool
search
by
dc
,
existing
,
stderr
'
);
is($? >> 8, 0,
'
ta
-
tool
search
by
lzaid
,
existing
,
exit
status
'
);
};
};
...
...
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