summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2018-07-01 20:54:59 +0000
committerbrian m. carlson <sandals@crustytoothpaste.net>2018-07-01 20:54:59 +0000
commit73f0f106c80a9ae0ac22ee67bdfe5a0e42fac7a4 (patch)
treeb9e12286f878910a879261b68ca05bdc4846c684
parent58fea8c1ac39705e7ed6c71ca5f48e3d1129cce7 (diff)
Fix skips for missing trust anchorHEADmaster
Add the SKIP label and skip DNSSEC tests if no trust anchor is provided. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
-rw-r--r--t/01_basic.t7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/01_basic.t b/t/01_basic.t
index 3ad3ec0..27330d7 100644
--- a/t/01_basic.t
+++ b/t/01_basic.t
@@ -41,6 +41,7 @@ subtest 'example.com' => sub {
}
);
+ SKIP:
foreach my $test (@tests) {
skip 'No trust anchor', 4
if exists $test->{init}{trust_anchor} &&
@@ -92,7 +93,13 @@ subtest 'dnssec-failed.org' => sub {
},
);
+ SKIP:
foreach my $test (@tests) {
+ skip 'No trust anchor', 2
+ if exists $test->{init}{trust_anchor} &&
+ !-f $test->{init}{trust_anchor} &&
+ $test->{init}{dnssec};
+
my $res = Net::DNS::Resolver::Unbound->new(%{$test->{init}});
my $reply = $res->send('www.dnssec-failed.org', $test->{type});
if ($test->{init}{dnssec}) {