add test
This commit is contained in:
parent
6919bbd36f
commit
f4320bd642
4 changed files with 154 additions and 0 deletions
|
|
@ -0,0 +1,64 @@
|
|||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Makefile of /CoreOS/ldns/Regression/RFE-ldns-does-not-support-ECDSA-DNSSEC-keys-RFC
|
||||
# Description: Test for BZ#1265605 ([RFE] ldns does not support ECDSA DNSSEC keys (RFC)
|
||||
# Author: Andrej Dzilsky <adzilsky@redhat.com>
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Copyright (c) 2016 Red Hat, Inc.
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License as
|
||||
# published by the Free Software Foundation, either version 2 of
|
||||
# the License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be
|
||||
# useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
# PURPOSE. See the GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see http://www.gnu.org/licenses/.
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
export TEST=/CoreOS/ldns/Regression/RFE-ldns-does-not-support-ECDSA-DNSSEC-keys-RFC
|
||||
export TESTVERSION=1.0
|
||||
|
||||
BUILT_FILES=
|
||||
|
||||
FILES=$(METADATA) runtest.sh Makefile PURPOSE
|
||||
|
||||
.PHONY: all install download clean
|
||||
|
||||
run: $(FILES) build
|
||||
./runtest.sh
|
||||
|
||||
build: $(BUILT_FILES)
|
||||
test -x runtest.sh || chmod a+x runtest.sh
|
||||
|
||||
clean:
|
||||
rm -f *~ $(BUILT_FILES)
|
||||
|
||||
|
||||
include /usr/share/rhts/lib/rhts-make.include
|
||||
|
||||
$(METADATA): Makefile
|
||||
@echo "Owner: Andrej Dzilsky <adzilsky@redhat.com>" > $(METADATA)
|
||||
@echo "Name: $(TEST)" >> $(METADATA)
|
||||
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
||||
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
||||
@echo "Description: [RFE] ldns does not support ECDSA DNSSEC keys (RFC)" >> $(METADATA)
|
||||
@echo "Type: Regression" >> $(METADATA)
|
||||
@echo "TestTime: 20m" >> $(METADATA)
|
||||
@echo "RunFor: ldns" >> $(METADATA)
|
||||
@echo "Requires: ldns unbound bind-utils" >> $(METADATA)
|
||||
@echo "Priority: Normal" >> $(METADATA)
|
||||
@echo "License: GPLv2+" >> $(METADATA)
|
||||
@echo "Confidential: no" >> $(METADATA)
|
||||
@echo "Destructive: no" >> $(METADATA)
|
||||
@echo "Bug: 1265605" >> $(METADATA)
|
||||
@echo "Releases: -RHEL4 -RHEL6 -RHELClient5 -RHELServer5" >> $(METADATA)
|
||||
|
||||
rhts-lint $(METADATA)
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
PURPOSE of /CoreOS/ldns/Regression/RFE-ldns-does-not-support-ECDSA-DNSSEC-keys-RFC
|
||||
Description: Test for BZ#1265605 ([RFE] ldns does not support ECDSA DNSSEC keys (RFC)
|
||||
Author: Andrej Dzilsky <adzilsky@redhat.com>
|
||||
Bug summary: [RFE] ldns does not support ECDSA DNSSEC keys (RFC 6605)
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1265605
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
summary: '[RFE] ldns does not support ECDSA DNSSEC keys (RFC)'
|
||||
description: |
|
||||
Bug summary: [RFE] ldns does not support ECDSA DNSSEC keys (RFC 6605)
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1265605
|
||||
contact: Petr Sklenar <psklenar@redhat.com>
|
||||
component: []
|
||||
test: ./runtest.sh
|
||||
framework: beakerlib
|
||||
recommend:
|
||||
- ldns
|
||||
- unbound
|
||||
- bind-utils
|
||||
duration: 20m
|
||||
enabled: true
|
||||
tag:
|
||||
- NoRHEL4
|
||||
- NoRHEL5
|
||||
- NoRHEL6
|
||||
- TIPfail
|
||||
- TIPfail_infra
|
||||
- Tier3
|
||||
tier: '3'
|
||||
link:
|
||||
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1265605
|
||||
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1818761
|
||||
adjust:
|
||||
- enabled: false
|
||||
when: distro == rhel-4, rhel-5, rhel-6
|
||||
continue: false
|
||||
extra-nitrate: TC#0603902
|
||||
extra-summary: /CoreOS/ldns/Regression/RFE-ldns-does-not-support-ECDSA-DNSSEC-keys-RFC
|
||||
extra-task: /CoreOS/ldns/Regression/RFE-ldns-does-not-support-ECDSA-DNSSEC-keys-RFC
|
||||
53
Regression/RFE-ldns-does-not-support-ECDSA-DNSSEC-keys-RFC/runtest.sh
Executable file
53
Regression/RFE-ldns-does-not-support-ECDSA-DNSSEC-keys-RFC/runtest.sh
Executable file
|
|
@ -0,0 +1,53 @@
|
|||
#!/bin/bash
|
||||
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# runtest.sh of /CoreOS/ldns/Regression/RFE-ldns-does-not-support-ECDSA-DNSSEC-keys-RFC
|
||||
# Description: Test for BZ#1265605 ([RFE] ldns does not support ECDSA DNSSEC keys (RFC)
|
||||
# Author: Andrej Dzilsky <adzilsky@redhat.com>
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Copyright (c) 2016 Red Hat, Inc.
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License as
|
||||
# published by the Free Software Foundation, either version 2 of
|
||||
# the License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be
|
||||
# useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
# PURPOSE. See the GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see http://www.gnu.org/licenses/.
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
# Include Beaker environment
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PACKAGE="ldns"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup
|
||||
rlAssertRpm $PACKAGE
|
||||
rlAssertRpm "bind-utils"
|
||||
rlRun "TMP_file=\$(mktemp)" 0 "Creating tmp file"
|
||||
rlServiceStart "unbound"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest
|
||||
rlRun " dig +dnssec +multiline -t ns gov. @localhost >$TMP_file"
|
||||
sleep 5; cat $TMP_file
|
||||
rlRun "grep ';; flags:' $TMP_file | grep 'ad'" 0 "Checking if flags contain 'ad' flag"
|
||||
rlRun "grep 'RRSIG' $TMP_file" 0 "Checking for RRSIG signature record"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup
|
||||
rlRun "rm -r $TMP_file" 0 "Removing tmp directory"
|
||||
rlServiceRestore unbound
|
||||
rlPhaseEnd
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
Loading…
Add table
Add a link
Reference in a new issue