Skip to content

Commit 2682d03

Browse files
authored
Merge pull request #1801 from drwetter/tmpfix_order_idsfriendly+U
Fix order for -U and --ids-friendly
2 parents 4f375de + 39132fe commit 2682d03

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

t/33_isJSON_severitylevel_valid.t

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,18 @@ my (
1515

1616
$tests = 0;
1717

18+
my $prg="./testssl.sh";
19+
my $check2run = '-S -e --ids-friendly -U --severity LOW --color 0';
20+
my $uri = 'badssl.com';
1821

1922
printf "\n%s\n", "Doing severity level checks";
23+
24+
die "Unable to open $prg" unless -f $prg;
2025
unlink 'tmp.json';
2126

2227
#1
23-
pass(" .. running testssl.sh against badssl.com to create a JSON report with severity level equal greater than LOW (may take 2~3 minutes)"); $tests++;
24-
$out = `./testssl.sh -S -e -U --ids-friendly --jsonfile tmp.json --severity LOW --color 0 badssl.com`;
28+
pass(" .. running testssl.sh against $uri to create a JSON report with severity level >= LOW (may take 2~3 minutes)"); $tests++;
29+
$out = `$prg $check2run --jsonfile tmp.json $uri`;
2530
$json = json('tmp.json');
2631
unlink 'tmp.json';
2732
$found = 0;
@@ -35,8 +40,8 @@ foreach my $f ( @$json ) {
3540
is($found,0,"We should not have any finding with INFO level"); $tests++;
3641

3742
#2
38-
pass(" .. running testssl.sh against badssl.com to create a JSON-PRETTY report with severity level equal greater than LOW (may take 2~3 minutes)"); $tests++;
39-
$out = `./testssl.sh -S -e -U --ids-friendly --jsonfile-pretty tmp.json --severity LOW --color 0 badssl.com`;
43+
pass(" .. running testssl.sh against $uri to create a JSON-PRETTY report with severity level >= LOW (may take 2~3 minutes)"); $tests++;
44+
$out = `$prg $check2run --jsonfile-pretty tmp.json $uri`;
4045
$json_pretty = json('tmp.json');
4146
unlink 'tmp.json';
4247
$found = 0;

0 commit comments

Comments
 (0)