Skip to content
Snippets Groups Projects
Commit b1ce67d6 authored by Andreas Romeyke's avatar Andreas Romeyke
Browse files

- adapted tests to changed datemode

parent 6f988651
Branches
Tags
No related merge requests found
......@@ -90,7 +90,7 @@ like($testapp->stdout, qr/^2$/, 'ta-tool count date, existing, stdout');
like($testapp->stderr, qr/^$/, 'ta-tool count date, existing, stderr');
is($? >> 8, 0, 'ta-tool count date, existing, exit status');
$testapp->run(args =>'count --creationdate 2023-09-05...2023-12-22');
$testapp->run(args =>'count --creationdate-from 2023-09-05 --creationdate-to 2023-12-22');
#say "STDOUT:",$testapp->stdout;
#say "STDERR:",$testapp->stderr;
like($testapp->stdout, qr/^25$/, 'ta-tool count dates, existing, stdout');
......@@ -98,7 +98,7 @@ like($testapp->stderr, qr/^$/, 'ta-tool count dates, existing, stderr');
is($? >> 8, 0, 'ta-tool count dates, existing, exit status');
note "overrides";
$testapp->run(args =>'count --elasticsearch-host localhost --creationdate 2023-09-05...2023-12-22');
$testapp->run(args =>'count --elasticsearch-host localhost --creationdate-from 2023-09-05 --creationdate-to 2023-12-22');
#say "STDOUT:",$testapp->stdout;
#say "STDERR:",$testapp->stderr;
like($testapp->stdout, qr/^$/, 'ta-tool count dates, existing, override, stdout');
......
......@@ -166,7 +166,7 @@ like($testapp->stdout, qr/\A"aipid"\n"47daf26a-02a1-4776-a8db-de04c6708bd2"\n"e8
like($testapp->stderr, qr/\Afound 2 results\nreporting results 1 … 2 output as csv/s, 'ta-tool search date, existing, stderr');
is($? >> 8, 0, 'ta-tool search date, existing, exit status');
$testapp->run(args =>'search --creationdate 2023-09-05...2023-12-22');
$testapp->run(args =>'search --creationdate-from 2023-09-05 --creationdate-to 2023-12-22');
#say "STDOUT:",$testapp->stdout;
#say "STDERR:",$testapp->stderr;
like($testapp->stdout, qr/\A"aipid"\n"47daf26a-02a1-4776-a8db-de04c6708bd2"\n/s, 'ta-tool search dates, existing, stdout');
......@@ -174,7 +174,7 @@ like($testapp->stderr, qr/\Afound 25 results\nreporting results 1 … 10 output
is($? >> 8, 0, 'ta-tool search dates, existing, exit status');
note "overrides";
$testapp->run(args =>'search --elasticsearch-host localhost --creationdate 2023-09-05...2023-12-22');
$testapp->run(args =>'search --elasticsearch-host localhost --creationdate-from 2023-09-05 --creationdate-to 2023-12-22');
#say "STDOUT:",$testapp->stdout;
#say "STDERR:",$testapp->stderr;
like($testapp->stdout, qr/^$/s, 'ta-tool search dates, existing, override, stdout');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment