From b1ce67d612b8643bf69cf40c4154dcfb2d1990f9 Mon Sep 17 00:00:00 2001 From: Andreas Romeyke <andreas.romeyke@slub-dresden.de> Date: Thu, 30 May 2024 12:28:52 +0200 Subject: [PATCH] - adapted tests to changed datemode --- t/03-count.t | 4 ++-- t/03-search.t | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/t/03-count.t b/t/03-count.t index 864e8af..ae625c1 100644 --- a/t/03-count.t +++ b/t/03-count.t @@ -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'); diff --git a/t/03-search.t b/t/03-search.t index a2c88a2..2f86c76 100644 --- a/t/03-search.t +++ b/t/03-search.t @@ -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'); -- GitLab