mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-01 06:19:44 +01:00
Fix travis
.. see previous commit
This commit is contained in:
parent
e92b7326bc
commit
a73fda7cf9
@ -27,7 +27,7 @@ $json = json('tmp.json');
|
||||
unlink 'tmp.json';
|
||||
$found = 0;
|
||||
foreach my $f ( @$json ) {
|
||||
if ( $f->{id} eq "cert_expiration_status" ) {
|
||||
if ( $f->{id} eq "cert_expirationStatus" ) {
|
||||
$found = 1;
|
||||
like($f->{finding},qr/^expired/,"Finding reads expired."); $tests++;
|
||||
is($f->{severity}, "CRITICAL", "Severity should be CRITICAL"); $tests++;
|
||||
@ -44,7 +44,7 @@ $json = json('tmp.json');
|
||||
unlink 'tmp.json';
|
||||
$found = 0;
|
||||
foreach my $f ( @$json ) {
|
||||
if ( $f->{id} eq "cert_expiration_status" ) {
|
||||
if ( $f->{id} eq "cert_expirationStatus" ) {
|
||||
$found = 1;
|
||||
like($f->{finding},qr/days/,"Finding doesn't read expired."); $tests++;
|
||||
isnt($f->{severity}, "CRITICAL", "Severity should be OK, MEDIUM or HIGH"); $tests++;
|
||||
|
@ -5,6 +5,7 @@ use Test::More;
|
||||
use Data::Dumper;
|
||||
|
||||
my $tests = 0;
|
||||
unlink 'tmp.html';
|
||||
|
||||
pass("Running testssl.sh against badssl.com to create HTML and terminal outputs (may take 2~3 minutes)"); $tests++;
|
||||
# specify a TERM_WIDTH so that the two calls to testssl.sh don't create HTML files with different values of TERM_WIDTH
|
||||
@ -49,6 +50,7 @@ $okhtml =~ s/HTTP clock skew \+?-?[0-9]* /HTTP clock skew
|
||||
$debughtml =~ s/HTTP clock skew \+?-?[0-9]* /HTTP clock skew X /;
|
||||
|
||||
$debughtml =~ s/ Pre-test: .*\n//g;
|
||||
$debughtml =~ s/.*OK: below 5 years.*\n//g;
|
||||
|
||||
pass("Checking that using the --debug option doesn't affect the HTML file"); $tests++;
|
||||
cmp_ok($debughtml, "eq", $okhtml, "HTML file created with --debug 4 matches HTML file created without --debug"); $tests++;
|
||||
|
Loading…
Reference in New Issue
Block a user