mirror of
https://github.com/drwetter/testssl.sh.git
synced 2024-12-29 12:59:44 +01:00
Split IPv6 + IPv4
... and disable IPv6 test as it is NOT supported by Travis CI, see https://docs.travis-ci.com/user/reference/overview/#virtualisation-environment-vs-operating-system The *.disabled file should provide a start if it'll be available at some time or one can manage this in travis with a docker container, see https://github.com/travis-ci/travis-ci/issues/8891
This commit is contained in:
parent
50a83235fe
commit
b9aee02978
@ -39,22 +39,6 @@ unlike($opensslout, qr/(e|E)rror|(f|F)atal|\.\/testssl\.sh: line |Oops|s_client
|
||||
$tests++;
|
||||
|
||||
|
||||
$uri="testssl.net";
|
||||
|
||||
unlink "tmp.json";
|
||||
printf "\n%s\n", "Baseline unit test IPv6 via sockets --> $uri ...";
|
||||
$socketout = `./testssl.sh $check2run -6 $uri 2>&1`;
|
||||
# my $socket = json('tmp.json');
|
||||
unlike($socketout, qr/(e|E)rror|\.\/testssl\.sh: line |(f|F)atal/, "");
|
||||
$tests++;
|
||||
|
||||
unlink "tmp.json";
|
||||
printf "\n%s\n", "Baseline unit test IPv6 via OpenSSL --> $uri ...";
|
||||
$opensslout = `./testssl.sh --ssl-native $check2run -6 $uri 2>&1`;
|
||||
# my $openssl = json('tmp.json');
|
||||
$opensslout =~ s/testssl.*warning: command substitution: ignored null byte in input\n//g;
|
||||
unlike($opensslout, qr/(e|E)rror|(f|F)atal|\.\/testssl\.sh: line |Oops|s_client connect problem/, "");
|
||||
$tests++;
|
||||
|
||||
done_testing($tests);
|
||||
unlink "tmp.json";
|
52
t/21_baseline_ipv6_http.t.DISABLED
Executable file
52
t/21_baseline_ipv6_http.t.DISABLED
Executable file
@ -0,0 +1,52 @@
|
||||
#!/usr/bin/env perl
|
||||
|
||||
# disabled as IPv6 is not supported by Travis, see https://github.com/drwetter/testssl.sh/issues/1177
|
||||
|
||||
# Just a functional test, whether there are any problems on the client side
|
||||
# Probably we could also inspect the JSON for any problems for
|
||||
# "id" : "scanProblem"
|
||||
# "finding" : "Scan interrupted"
|
||||
|
||||
use strict;
|
||||
use Test::More;
|
||||
use Data::Dumper;
|
||||
# use JSON;
|
||||
|
||||
my $tests = 0;
|
||||
my $check2run ="-p -s -P --pfs -S -h -U -q --ip=one --color 0";
|
||||
my $uri="";
|
||||
my $socketout="";
|
||||
my $opensslout="";
|
||||
|
||||
# $check2run="--jsonfile tmp.json $check2run";
|
||||
|
||||
|
||||
$uri="testssl.net";
|
||||
|
||||
unlink "tmp.json";
|
||||
printf "\n%s\n", "Baseline unit test IPv6 via sockets --> $uri ...";
|
||||
$socketout = `./testssl.sh $check2run -6 $uri 2>&1`;
|
||||
# my $socket = json('tmp.json');
|
||||
unlike($socketout, qr/(e|E)rror|\.\/testssl\.sh: line |(f|F)atal/, "");
|
||||
$tests++;
|
||||
|
||||
unlink "tmp.json";
|
||||
printf "\n%s\n", "Baseline unit test IPv6 via OpenSSL --> $uri ...";
|
||||
$opensslout = `./testssl.sh --ssl-native $check2run -6 $uri 2>&1`;
|
||||
# my $openssl = json('tmp.json');
|
||||
$opensslout =~ s/testssl.*warning: command substitution: ignored null byte in input\n//g;
|
||||
unlike($opensslout, qr/(e|E)rror|(f|F)atal|\.\/testssl\.sh: line |Oops|s_client connect problem/, "");
|
||||
$tests++;
|
||||
|
||||
done_testing($tests);
|
||||
unlink "tmp.json";
|
||||
|
||||
|
||||
|
||||
sub json($) {
|
||||
my $file = shift;
|
||||
$file = `cat $file`;
|
||||
unlink $file;
|
||||
return from_json($file);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user