Skip to content

Commit

Permalink
add more test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Oct 23, 2024
1 parent 732071c commit d58569d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion t/scenarios/rest_api/t/local/rest_case_sensitive.t
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ BEGIN {
import TestUtils;
}

plan tests => 101;
plan tests => 230;

###########################################################
# test thruks script path
Expand Down Expand Up @@ -46,6 +46,10 @@ sub _run_tests {
];

for my $re (@{$regex}) {
TestUtils::test_command({
cmd => '/usr/bin/env thruk r \'/sites/ALL/hosts?columns=name,peer_name&name[regex]='.$re.'\'',
like => ['/"name" : "UPPERCASE"/'],
});
TestUtils::test_page(
url => 'http://localhost/demo/thruk/r/sites/ALL/hosts?columns=name,peer_name&name[regex]='.$re,
like => ['"name" : "UPPERCASE"'],
Expand Down

0 comments on commit d58569d

Please sign in to comment.