Commit 648e9c40 authored by Hilko Bengen's avatar Hilko Bengen

New upstream version 2.9.5-7+dfsg1

parent 5a75801a
......@@ -39,15 +39,15 @@ is($found,1,"We had a finding for this in the JSON output"); $tests++;
# Self signed and not-expired
pass("Running testssl against"); $tests++;
$out = `./ -S --jsonfile tmp.json --color 0`;
like($out, qr/Certificate Expiration\s+\d+/,"The certificate should not be expired"); $tests++;
unlike($out, qr/Certificate Expiration\s+expired\!/,"The certificate should not be expired"); $tests++;
$json = json('tmp.json');
unlink 'tmp.json';
$found = 0;
foreach my $f ( @$json ) {
if ( $f->{id} eq "expiration" ) {
$found = 1;
like($f->{finding},qr/^Certificate Expiration \: \d+/,"Finding doesn't read expired."); $tests++;
is($f->{severity}, "OK", "Severity should be ok"); $tests++;
unlike($f->{finding},qr/^Certificate Expiration\s+expired\!/,"Finding doesn't read expired."); $tests++;
isnt($f->{severity}, "CRITICAL", "Severity should be OK or MEDIUM"); $tests++;
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment