diff --git a/Regression/bz1426626-The-named-sdb-utility-raises-an-abort/Makefile b/Regression/bz1426626-The-named-sdb-utility-raises-an-abort/Makefile deleted file mode 100644 index 6f61b47..0000000 --- a/Regression/bz1426626-The-named-sdb-utility-raises-an-abort/Makefile +++ /dev/null @@ -1,65 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/bind/Regression/bz1426626-The-named-sdb-utility-raises-an-abort -# Description: Test for BZ#1426626 (The named-sdb utility raises an abort()) -# Author: Andrej Dzilsky -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2018 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/bind/Regression/bz1426626-The-named-sdb-utility-raises-an-abort -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 " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for BZ#1426626 (The named-sdb utility raises an abort())" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 30m" >> $(METADATA) - @echo "RunFor: bind" >> $(METADATA) - @echo "Requires: bind-chroot bind-utils" >> $(METADATA) - @echo "RhtsRequires: library(bind/bind-setup)" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2+" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 1426626" >> $(METADATA) - @echo "Releases: -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/Regression/bz1426626-The-named-sdb-utility-raises-an-abort/PURPOSE b/Regression/bz1426626-The-named-sdb-utility-raises-an-abort/PURPOSE deleted file mode 100644 index abf9c6f..0000000 --- a/Regression/bz1426626-The-named-sdb-utility-raises-an-abort/PURPOSE +++ /dev/null @@ -1,5 +0,0 @@ -PURPOSE of /CoreOS/bind/Regression/bz1426626-The-named-sdb-utility-raises-an-abort -Description: Test for BZ#1426626 (The named-sdb utility raises an abort()) -Author: Andrej Dzilsky -Bug summary: The named-sdb utility raises an abort() within ldapdb_getconn() due to a double-free -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1426626 diff --git a/Regression/bz1426626-The-named-sdb-utility-raises-an-abort/main.fmf b/Regression/bz1426626-The-named-sdb-utility-raises-an-abort/main.fmf deleted file mode 100644 index 0cece2a..0000000 --- a/Regression/bz1426626-The-named-sdb-utility-raises-an-abort/main.fmf +++ /dev/null @@ -1,28 +0,0 @@ -summary: Test for BZ#1426626 (The named-sdb utility raises an abort()) -description: | - Bug summary: The named-sdb utility raises an abort() within ldapdb_getconn() due to a double-free - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1426626 -contact: Petr Sklenar -component: -- bind -test: ./runtest.sh -require: -- bind-chroot -- bind-utils -- library(bind/bind-setup) -duration: 30m -enabled: true -tag: -- NoRHEL4 -- NoRHEL5 -- TIP_fedora_pass -- TIPpass -- TIPpass_infra -- Tier1 -- tip_destructive_el8 -tier: '1' -relevancy: | - distro = rhel-4, rhel-5: False -extra-summary: /CoreOS/bind/Regression/bz1426626-The-named-sdb-utility-raises-an-abort -extra-task: /CoreOS/bind/Regression/bz1426626-The-named-sdb-utility-raises-an-abort -extra-nitrate: TC#0569792 diff --git a/Regression/bz1426626-The-named-sdb-utility-raises-an-abort/runtest.sh b/Regression/bz1426626-The-named-sdb-utility-raises-an-abort/runtest.sh deleted file mode 100755 index 3b2ddf3..0000000 --- a/Regression/bz1426626-The-named-sdb-utility-raises-an-abort/runtest.sh +++ /dev/null @@ -1,79 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/bind/Regression/bz1426626-The-named-sdb-utility-raises-an-abort -# Description: Test for BZ#1426626 (The named-sdb utility raises an abort()) -# Author: Andrej Dzilsky -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2018 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/bin/rhts-environment.sh || exit 1 -. /usr/share/beakerlib/beakerlib.sh || exit 1 - -PACKAGE="bind" - -rlJournalStart - rlPhaseStartSetup - rlFileBackup --clean /var/named/chroot - rlFileBackup /etc/sysconfig/named - rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - - rlRun "rlImport bind/bind-setup" - bsBindSetupStart - - rlRun "rm -rf /etc/named.conf $ROOTDIR/etc/named.conf /var/named/*zone $ROOTDIR/var/named/*zone" - cat <<-AEND > /etc/named.conf -options { - listen-on port 53 { 127.0.0.1; }; - directory "/var/named"; - dump-file "/var/named/data/cache_dump.db"; - statistics-file "/var/named/data/named_stats.txt"; - allow-query { localhost; }; -}; - -# Using resources outside of RH is not good idea -# but it doesn't matter in this case, even if this source will be not available -zone "ldap.forumsys.com" { - type master; - database "ldap ldap://54.196.176.103/cn=read-only-admin,dc=example,dc=com 172800"; -}; -AEND - - rlRun "[ ! -z \"$ROOTDIR\" ] && cp /etc/named.conf $ROOTDIR/etc/|| true" - rlRun "chown named:named /etc/named.conf $ROOTDIR/etc/named.conf" - rlRun "restorecon /etc/named.conf $ROOTDIR/etc/named.conf" - bsBindSetupDone - rlPhaseEnd - - rlPhaseStartTest - bsBindSetupCleanup - cat /var/log/messages | tail -15 > log.named-service-stop - rlAssertNotGrep "Saved core dump" log.named-service-stop - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "rm log.named-service-stop" 0 "Removing log file" - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalEnd diff --git a/Regression/bz160914-bind-does-not-go-on-to-second-DNS-when-first-one/Makefile b/Regression/bz160914-bind-does-not-go-on-to-second-DNS-when-first-one/Makefile deleted file mode 100644 index 8d3f632..0000000 --- a/Regression/bz160914-bind-does-not-go-on-to-second-DNS-when-first-one/Makefile +++ /dev/null @@ -1,65 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/bind/Regression/bz160914-bind-does-not-go-on-to-second-DNS-when-first-one -# Description: Test for bz160914 (bind does not go on to second DNS when first one) -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2010 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -export TEST=/CoreOS/bind/Regression/bz160914-bind-does-not-go-on-to-second-DNS-when-first-one -export TESTVERSION=1.1 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE - -.PHONY: all install download clean - -run: $(FILES) build - ./runtest.sh - -build: $(BUILT_FILES) - chmod a+x runtest.sh - -clean: - rm -f *~ $(BUILT_FILES) - - -include /usr/share/rhts/lib/rhts-make.include - -$(METADATA): Makefile - @echo "Owner: Martin Cermak " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for bz160914 (bind does not go on to second DNS when first one)" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 15m" >> $(METADATA) - @echo "RunFor: bind" >> $(METADATA) - @echo "Requires: bind-utils bind-chroot" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 160914" >> $(METADATA) - @echo "RhtsRequires: library(bind/bind-setup)" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/Regression/bz160914-bind-does-not-go-on-to-second-DNS-when-first-one/PURPOSE b/Regression/bz160914-bind-does-not-go-on-to-second-DNS-when-first-one/PURPOSE deleted file mode 100644 index dbffad2..0000000 --- a/Regression/bz160914-bind-does-not-go-on-to-second-DNS-when-first-one/PURPOSE +++ /dev/null @@ -1,8 +0,0 @@ -PURPOSE of /CoreOS/bind/Regression/bz160914-bind-does-not-go-on-to-second-DNS-when-first-one -Description: Test for bz160914 (bind does not go on to second DNS when first one) -Author: Martin Cermak -Bug summary: bind does not go on to second DNS when first one gives "No answer" -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=160914 - -Fixed in RHEL5.6+ - diff --git a/Regression/bz160914-bind-does-not-go-on-to-second-DNS-when-first-one/main.fmf b/Regression/bz160914-bind-does-not-go-on-to-second-DNS-when-first-one/main.fmf deleted file mode 100644 index 5167ecb..0000000 --- a/Regression/bz160914-bind-does-not-go-on-to-second-DNS-when-first-one/main.fmf +++ /dev/null @@ -1,27 +0,0 @@ -summary: Test for bz160914 (bind does not go on to second DNS when first one) -description: |+ - Bug summary: bind does not go on to second DNS when first one gives "No answer" - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=160914 - - Fixed in RHEL5.6+ - -contact: Petr Sklenar -component: -- bind -test: ./runtest.sh -require: -- bind-utils -- bind-chroot -- library(bind/bind-setup) -duration: 15m -enabled: true -tag: -- TIP_fedora_pass -- TIPfail_infra -- TIPpass -- TipWaived5 -- TipWaived7 -- broken5.9 -extra-summary: /CoreOS/bind/Regression/bz160914-bind-does-not-go-on-to-second-DNS-when-first-one -extra-task: /CoreOS/bind/Regression/bz160914-bind-does-not-go-on-to-second-DNS-when-first-one -extra-nitrate: TC#0126549 diff --git a/Regression/bz160914-bind-does-not-go-on-to-second-DNS-when-first-one/runtest.sh b/Regression/bz160914-bind-does-not-go-on-to-second-DNS-when-first-one/runtest.sh deleted file mode 100755 index 5af13e1..0000000 --- a/Regression/bz160914-bind-does-not-go-on-to-second-DNS-when-first-one/runtest.sh +++ /dev/null @@ -1,101 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/bind/Regression/bz160914-bind-does-not-go-on-to-second-DNS-when-first-one -# Description: Test for bz160914 (bind does not go on to second DNS when first one) -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2010 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -# Include rhts environment -. /usr/bin/rhts-environment.sh -. /usr/lib/beakerlib/beakerlib.sh -. /usr/share/beakerlib/beakerlib.sh || exit 1 - -PACKAGE="bind" - -NS1="ns1.redhat.com" - -rlJournalStart - rlPhaseStartSetup - rlFileBackup --clean /var/named - rlFileBackup /etc/sysconfig/named - rlFileBackup /etc/named.conf - rlFileBackup --clean /etc/resolv.conf `readlink -f /etc/resolv.conf` - rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - - rlRun "rlImport bind/bind-setup" - #rlRun "wget --quiet http://nest.test.redhat.com/mnt/qa/scratch/mcermak/bind-setup.tar.gz && tar xvzf bind-setup.tar.gz > /dev/null && . bind-setup/bind-setup.sh" 0 "Imported bind-setup functions." - - rlGetTestState && { - bsBindSetupStart "" "chrootoff" - bsRemoveConfSetting "recursion.*yes" - bsSetUserOptions "recursion no;" - bsBindSetupDone - } - rlPhaseEnd -rlGetTestState && { - rlPhaseStartTest - rlRun "RHNS=`bsGetDefaultNameServer`" - - rlRun "nslookup $NS1 127.0.0.1 &> nslookup_localhost.txt" 0,1 - rlRun "nslookup $NS1 $RHNS &> nslookup_rhns.txt" - rlRun "nslookup $NS1 &> nslookup_test1.txt" - - if rlIsRHEL 3 || rlIsRHEL 4 || rlIsRHEL 5; then - rlRun "grep -q 'No answer' nslookup_localhost.txt" 0 - else - rlRun "grep -q 'REFUSED' nslookup_localhost.txt" 0 - fi - rlRun "grep -q 'No answer' nslookup_rhns.txt" 1 - rlRun "grep -q 'No answer' nslookup_test1.txt" 1 - - rlRun "echo 'nameserver 127.0.0.1' > /etc/resolv.conf" - rlRun "echo 'nameserver $RHNS' >> /etc/resolv.conf" - rlRun "cat /etc/resolv.conf" - - rlRun "nslookup $NS1 &> nslookup_test2.txt" - - #bz756458 on rhel5 bug CLOSED WONTFIX - if ! rlIsRHEL 5 ; then - rlRun "grep -q 'No answer' nslookup_test2.txt" 1 - rlRun "grep -q 'trying next server' nslookup_test2.txt" 0 - fi - - rlRun "echo 'nameserver $RHNS' > /etc/resolv.conf" - rlRun "echo 'nameserver 127.0.0.1' >> /etc/resolv.conf" - rlRun "cat /etc/resolv.conf" - - rlRun "nslookup $NS1 &> nslookup_test3.txt" - - rlRun "grep -q 'No answer' nslookup_test3.txt" 1 - rlRun "grep -q 'trying next server' nslookup_test3.txt" 1 - rlPhaseEnd -} - rlPhaseStartCleanup - rlBundleLogs "TEST_LOGS" "nslookup_localhost.txt" "nslookup_rhns.txt" "nslookup_test1.txt" "nslookup_test2.txt" "nslookup_test3.txt" - bsBindSetupCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalEnd diff --git a/Regression/bz1609856-bind-disable-GeoIP-support/Makefile b/Regression/bz1609856-bind-disable-GeoIP-support/Makefile deleted file mode 100644 index 340a7a8..0000000 --- a/Regression/bz1609856-bind-disable-GeoIP-support/Makefile +++ /dev/null @@ -1,64 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/bind/Regression/bz1609856-bind-disable-GeoIP-support -# Description: Test for BZ#1609856 (bind disable GeoIP support) -# Author: Ondrej Mejzlik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2018 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/bind/Regression/bz1609856-bind-disable-GeoIP-support -export TESTVERSION=1.0 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE named.conf - -.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: Ondrej Mejzlik " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for BZ#1609856 (bind disable GeoIP support)" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 5m" >> $(METADATA) - @echo "RunFor: bind" >> $(METADATA) - @echo "Requires: bind yum-utils" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2+" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 1609856" >> $(METADATA) - @echo "Releases: -RHEL4 -RHELClient5 -RHELServer5 -RHEL6" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/Regression/bz1609856-bind-disable-GeoIP-support/PURPOSE b/Regression/bz1609856-bind-disable-GeoIP-support/PURPOSE deleted file mode 100644 index 7d27c16..0000000 --- a/Regression/bz1609856-bind-disable-GeoIP-support/PURPOSE +++ /dev/null @@ -1,5 +0,0 @@ -PURPOSE of /CoreOS/bind/Regression/bz1609856-bind-disable-GeoIP-support -Description: Test for BZ#1609856 (bind disable GeoIP support) -Author: Ondrej Mejzlik -Bug summary: bind: disable GeoIP support -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1609856 diff --git a/Regression/bz1609856-bind-disable-GeoIP-support/main.fmf b/Regression/bz1609856-bind-disable-GeoIP-support/main.fmf deleted file mode 100644 index 081a51e..0000000 --- a/Regression/bz1609856-bind-disable-GeoIP-support/main.fmf +++ /dev/null @@ -1,24 +0,0 @@ -summary: Test for BZ#1609856 (bind disable GeoIP support) -description: | - Bug summary: bind: disable GeoIP support - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1609856 -contact: Petr Sklenar -component: -- bind -test: ./runtest.sh -require: -- bind -- yum-utils -duration: 5m -enabled: true -tag: -- NoRHEL4 -- NoRHEL5 -- NoRHEL6 -- TIPfail_infra -- TIPpass -relevancy: | - distro = rhel-4, rhel-5, rhel-6, rhel-7: False -extra-summary: /CoreOS/bind/Regression/bz1609856-bind-disable-GeoIP-support -extra-task: /CoreOS/bind/Regression/bz1609856-bind-disable-GeoIP-support -extra-nitrate: TC#0575394 diff --git a/Regression/bz1609856-bind-disable-GeoIP-support/named.conf b/Regression/bz1609856-bind-disable-GeoIP-support/named.conf deleted file mode 100644 index 26d85dd..0000000 --- a/Regression/bz1609856-bind-disable-GeoIP-support/named.conf +++ /dev/null @@ -1,35 +0,0 @@ -options { - geoip-directory "/path/to/geoip/database"; - listen-on port 53 { 127.0.0.1; }; - listen-on-v6 port 53 { ::1; }; - directory "/var/named"; - dump-file "/var/named/data/cache_dump.db"; - statistics-file "/var/named/data/named_stats.txt"; - memstatistics-file "/var/named/data/named_mem_stats.txt"; - secroots-file "/var/named/data/named.secroots"; - recursing-file "/var/named/data/named.recursing"; - allow-query { localhost; }; - recursion yes; - dnssec-enable yes; - dnssec-validation yes; - managed-keys-directory "/var/named/dynamic"; - pid-file "/run/named/named.pid"; - session-keyfile "/run/named/session.key"; - include "/etc/crypto-policies/back-ends/bind.config"; -}; - -logging { - channel default_debug { - file "data/named.run"; - severity dynamic; - }; -}; - -zone "." IN { - type hint; - file "named.ca"; -}; - -include "/etc/named.rfc1912.zones"; -include "/etc/named.root.key"; - diff --git a/Regression/bz1609856-bind-disable-GeoIP-support/runtest.sh b/Regression/bz1609856-bind-disable-GeoIP-support/runtest.sh deleted file mode 100755 index 86b3a93..0000000 --- a/Regression/bz1609856-bind-disable-GeoIP-support/runtest.sh +++ /dev/null @@ -1,69 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/bind/Regression/bz1609856-bind-disable-GeoIP-support -# Description: Test for BZ#1609856 (bind disable GeoIP support) -# Author: Ondrej Mejzlik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2018 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/bin/rhts-environment.sh || exit 1 -. /usr/share/beakerlib/beakerlib.sh || exit 1 - -PACKAGE=${PACKAGE:-bind} - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm $PACKAGE - if [ $? -ne 0 ]; then - rlDie "Package $PACKAGE not installed" - fi - TESTDIR=$(pwd) - rlRun "rlFileBackup /etc/named.conf" 0 "Backing up /etc/named.conf" - rlLog "PC name: $(hostname) User: $(whoami)" - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - rlPhaseEnd - - rlGetTestState && { - rlPhaseStartTest CheckRequirements - # Systems may provide more versions, we need only the installed bind version. - rlRun "repoquery --requires $(rpm -q bind) | grep -i 'libGeoIP'" 1 "Geoip library is not in requirements" - rlPhaseEnd - - rlPhaseStartTest RunWithGeoIP - rlRun "rlServiceStart named" 0 "Named should start with default config" - rlRun "cp -f $TESTDIR/named.conf /etc/named.conf" 0 "Put geoip option into config" - rlRun "rlServiceStart named" 1 "Named should NOT start with geoip" - rlRun "systemctl status named | grep \"option .geoip-directory. was not enabled at compile time\"" 0 "Log reports geoip disabled" - rlPhaseEnd - } - - rlPhaseStartCleanup - rlRun "rlFileRestore" 0 "Restoring /etc/named.conf" - rlLog "Restoring original named state" - rlServiceRestore - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/Regression/bz451450_chroot_path/Makefile b/Regression/bz451450_chroot_path/Makefile deleted file mode 100644 index 368f965..0000000 --- a/Regression/bz451450_chroot_path/Makefile +++ /dev/null @@ -1,65 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/bind/Regression/bz451450_chroot_path -# Description: Test for bz451450 (bind_chroot update overwrites user supplied) -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2010 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -export TEST=/CoreOS/bind/Regression/bz451450_chroot_path -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) - chmod a+x runtest.sh - -clean: - rm -f *~ $(BUILT_FILES) - - -include /usr/share/rhts/lib/rhts-make.include - -$(METADATA): Makefile - @echo "Owner: Martin Cermak " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for bz451450 (bind_chroot update overwrites user supplied)" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 15m" >> $(METADATA) - @echo "RunFor: bind" >> $(METADATA) - @echo "Requires: bind bind-chroot rng-tools rng-utils" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 451450" >> $(METADATA) - @echo "RhtsRequires: library(bind/bind-setup)" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/Regression/bz451450_chroot_path/PURPOSE b/Regression/bz451450_chroot_path/PURPOSE deleted file mode 100644 index aa81d94..0000000 --- a/Regression/bz451450_chroot_path/PURPOSE +++ /dev/null @@ -1,6 +0,0 @@ -PURPOSE of /CoreOS/bind/Regression/bz451450_chroot_path -Description: Test for bz451450 (bind_chroot update overwrites user supplied) -Author: Martin Cermak -Bug summary: bind_chroot update overwrites user supplied ROOTDIR setting -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=451450 - diff --git a/Regression/bz451450_chroot_path/main.fmf b/Regression/bz451450_chroot_path/main.fmf deleted file mode 100644 index e420323..0000000 --- a/Regression/bz451450_chroot_path/main.fmf +++ /dev/null @@ -1,26 +0,0 @@ -summary: Test for bz451450 (bind_chroot update overwrites user supplied) -description: |+ - Bug summary: bind_chroot update overwrites user supplied ROOTDIR setting - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=451450 - -contact: Petr Sklenar -component: -- bind -test: ./runtest.sh -require: -- bind -- bind-chroot -- rng-tools -- rng-utils -- library(bind/bind-setup) -duration: 15m -enabled: true -tag: -- TIPfail_infra -- TIPpass -- Tier1 -- broken6.3 -tier: '1' -extra-summary: /CoreOS/bind/Regression/bz451450_chroot_path -extra-task: /CoreOS/bind/Regression/bz451450_chroot_path -extra-nitrate: TC#0126557 diff --git a/Regression/bz451450_chroot_path/runtest.sh b/Regression/bz451450_chroot_path/runtest.sh deleted file mode 100755 index 6ed7c27..0000000 --- a/Regression/bz451450_chroot_path/runtest.sh +++ /dev/null @@ -1,77 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/bind/Regression/bz451450_chroot_path -# Description: Test for bz451450 (bind_chroot update overwrites user supplied) -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2010 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -# Include rhts environment -. /usr/bin/rhts-environment.sh -. /usr/lib/beakerlib/beakerlib.sh -. /usr/share/beakerlib/beakerlib.sh || exit 1 - -rpm -q bind97-libs && PACKAGE="bind97-chroot" || PACKAGE="bind-chroot" - -rlJournalStart - rlPhaseStartSetup - rngd -r /dev/urandom - rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - - rlAssertRpm $PACKAGE - - rlRun "rlImport bind/bind-setup" - #rlRun "wget --quiet http://nest.test.redhat.com/mnt/qa/scratch/mcermak/bind-setup.tar.gz && tar xvzf bind-setup.tar.gz > /dev/null && . bind-setup/bind-setup.sh" 0 "Imported bind-setup functions." - - bsBindSetupStart "" "on" - bsBindSetupDone - rlServiceStop "named" - rlPhaseEnd - - rlPhaseStartTest - rlRun "TEMPFILE=`mktemp`" - rlRun "cp /etc/sysconfig/named $TEMPFILE" - rlRun "MYCHROOT=\`mktemp -d\`" - rlRun "echo \"ROOTDIR=$MYCHROOT\" > /etc/sysconfig/named" - if rlIsFedora; then - rlRun "dnf -y reinstall $PACKAGE" - else - rlRun "yum -y reinstall $PACKAGE" - fi - rlRun "[ \"`grep ROOTDIR=$MYCHROOT /etc/sysconfig/named | wc -l`\" == \"1\" ]" - rlRun "cp -f $TEMPFILE /etc/sysconfig/named" - if rlIsFedora; then - rlRun "dnf -y reinstall $PACKAGE" - else - rlRun "yum -y reinstall $PACKAGE" - fi - rlPhaseEnd - - rlPhaseStartCleanup - bsBindSetupCleanup - rlRun "popd" - rlRun "rm -rf $TmpDir" 0 "Removing tmp directory" - rlRun "rm -rf $MYCHROOT" - rlPhaseEnd -rlJournalEnd diff --git a/Regression/bz457533_rndc_crash/Makefile b/Regression/bz457533_rndc_crash/Makefile deleted file mode 100644 index 1bf1cc7..0000000 --- a/Regression/bz457533_rndc_crash/Makefile +++ /dev/null @@ -1,67 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/bind/Regression/bz457533_rndc_crash -# Description: Test for bz457533 (named crashes on incorrect usage of rndc reload) -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2010 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -export TEST=/CoreOS/bind/Regression/bz457533_rndc_crash -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) - chmod a+x runtest.sh - -clean: - rm -f *~ $(BUILT_FILES) - - -include /usr/share/rhts/lib/rhts-make.include - -$(METADATA): Makefile - @echo "Owner: Martin Cermak " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for bz457533 (named crashes on incorrect usage of rndc reload)" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 30m" >> $(METADATA) - @echo "RunFor: bind" >> $(METADATA) - @echo "Requires: bind-chroot bind-utils redhat-lsb" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 457533" >> $(METADATA) - @echo "Bug: 475202" >> $(METADATA) - @echo "Bug: 552578" >> $(METADATA) - @echo "RhtsRequires: library(bind/bind-setup)" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/Regression/bz457533_rndc_crash/PURPOSE b/Regression/bz457533_rndc_crash/PURPOSE deleted file mode 100644 index 512c5f1..0000000 --- a/Regression/bz457533_rndc_crash/PURPOSE +++ /dev/null @@ -1,37 +0,0 @@ -PURPOSE of /CoreOS/bind/Regression/bz457533_rndc_crash -Description: Test for bz457533 (named crashes on incorrect usage of rndc reload) -Author: Martin Cermak -Bug summary: named crashes on incorrect usage of rndc reload command -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=457533 - -Description ---------------- - -Description of problem: -named crashes (process terminates) on incorrect usage of the rndc reload -command - -How To Test ---------------- - - configure zone foo - - run rndc reload asd.foo - named crashed (see system log - - exiting (due to assertion failure)) - - -THE BUG SYMPTOMS ;-) --------------------------- - -If the bug is present (like in bind-9.2.4-30.el4_8.4), then this line: - -rlRun "rndc reload asdfXXX.pokus.cz" 0-255 - -causes the fail which is finally detected by the next - -rlRun "dig @localhost +short petra.pokus.cz | grep \"192.168.55.55\"" - -which fails. That's it. - - -NOTE to the rndc | cat -------------------------- -This is a workaround that should prevent us from AVC denials on RHEL4. diff --git a/Regression/bz457533_rndc_crash/main.fmf b/Regression/bz457533_rndc_crash/main.fmf deleted file mode 100644 index 945ed03..0000000 --- a/Regression/bz457533_rndc_crash/main.fmf +++ /dev/null @@ -1,32 +0,0 @@ -summary: Test for bz457533 (named crashes on incorrect usage of rndc reload) -description: "Bug summary: named crashes on incorrect usage of rndc reload command\n\ - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=457533\n\nDescription\n\ - ---------------\n\nDescription of problem:\nnamed crashes (process terminates)\ - \ on incorrect usage of the rndc reload \ncommand\n\nHow To Test\n---------------\n\ - \ - configure zone foo \n - run rndc reload asd.foo - named crashed (see system\ - \ log\n - exiting (due to assertion failure)) \n\n\nTHE BUG SYMPTOMS ;-)\n--------------------------\n\ - \nIf the bug is present (like in bind-9.2.4-30.el4_8.4), then this line:\n\nrlRun\ - \ \"rndc reload asdfXXX.pokus.cz\" 0-255\n\ncauses the fail which is finally detected\ - \ by the next \n\nrlRun \"dig @localhost +short petra.pokus.cz | grep \\\"192.168.55.55\\\ - \"\"\n\nwhich fails. That's it.\n\n\nNOTE to the rndc | cat\n-------------------------\n\ - This is a workaround that should prevent us from AVC denials on RHEL4.\n" -contact: Petr Sklenar -component: -- bind -test: ./runtest.sh -require: -- bind-chroot -- bind-utils -- redhat-lsb -- library(bind/bind-setup) -duration: 30m -enabled: true -tag: -- TIPfail_infra -- TIPpass -- Tier1 -- noExpectedness -tier: '1' -extra-summary: /CoreOS/bind/Regression/bz457533_rndc_crash -extra-task: /CoreOS/bind/Regression/bz457533_rndc_crash -extra-nitrate: TC#0126570 diff --git a/Regression/bz457533_rndc_crash/runtest.sh b/Regression/bz457533_rndc_crash/runtest.sh deleted file mode 100755 index 6cd8375..0000000 --- a/Regression/bz457533_rndc_crash/runtest.sh +++ /dev/null @@ -1,103 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/bind/Regression/bz457533_rndc_crash -# Description: Test for bz457533 (named crashes on incorrect usage of rndc reload) -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2010 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -# Include rhts environment -. /usr/bin/rhts-environment.sh -. /usr/lib/beakerlib/beakerlib.sh -. /usr/share/beakerlib/beakerlib.sh || exit 1 - -rlJournalStart - rlPhaseStartSetup - rlFileBackup --clean /var/named/chroot - rlFileBackup /etc/sysconfig/named - rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - - rlRun "rlImport bind/bind-setup" - bsBindSetupStart - rlRun "rm -rf /etc/named.conf $ROOTDIR/etc/named.conf /var/named/*zone $ROOTDIR/var/named/*zone" - - cat <<-AEND > /etc/named.conf - options { - listen-on port 53 { 127.0.0.1; }; - directory "/var/named"; - dump-file "/var/named/data/cache_dump.db"; - statistics-file "/var/named/data/named_stats.txt"; - allow-query { localhost; }; - }; - - zone "pokus.cz" IN { - type master; - file "pokus.cz.zone"; - allow-update { none; }; - }; - AEND - - cat <<-BEND > /var/named/pokus.cz.zone - \$ORIGIN pokus.cz. - \$TTL 86400 - @ IN SOA alena.pokus.cz. petra.pokus.cz. ( - 661134094 ; serial - 21600 ; refresh after 6 hours - 3600 ; retry after 1 hour - 604800 ; expire after 1 week - 86400 ) ; minimum TTL of 1 day - - IN NS alena.pokus.cz. - - IN MX 10 alena.pokus.cz. - - IN A 192.168.33.33 - - alena IN A 192.168.44.44 - petra IN A 192.168.55.55 - BEND - - rlRun "[ ! -z \"$ROOTDIR\" ] && cp /etc/named.conf $ROOTDIR/etc/ && cp /var/named/pokus.cz.zone $ROOTDIR/var/named/ || true" - rlRun "chown named:named /etc/named.conf $ROOTDIR/etc/named.conf /var/named/*zone $ROOTDIR/var/named/*zone" - rlRun "restorecon /etc/named.conf $ROOTDIR/etc/named.conf /var/named/*zone $ROOTDIR/var/named/*zone" - bsBindSetupDone - rlPhaseEnd - - rlPhaseStartTest - rlRun "dig @localhost +short petra.pokus.cz | grep \"192.168.55.55\"" - rlRun "rndc reload pokus.cz | cat" - rlRun "dig @localhost +short petra.pokus.cz | grep \"192.168.55.55\"" - rlRun "rndc reload asdfXXX.pokus.cz | cat" 0-255 - rlRun "dig @localhost +short petra.pokus.cz | grep \"192.168.55.55\"" - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "rm /var/named/pokus.cz.zone" - rlRun "rm $ROOTDIR/var/named/pokus.cz.zone" - bsBindSetupCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd - -rlJournalEnd diff --git a/Regression/bz469441-host-command-mixed-ipv4-and-6/Makefile b/Regression/bz469441-host-command-mixed-ipv4-and-6/Makefile deleted file mode 100644 index a8462bf..0000000 --- a/Regression/bz469441-host-command-mixed-ipv4-and-6/Makefile +++ /dev/null @@ -1,66 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/bind/Regression/bz469441-host-command-mixed-ipv4-and-6 -# Description: Test for bz469441 ('host -4 hostname' fails even though ipv4) -# Author: Matej Susta -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2009 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -export TEST=/CoreOS/bind/Regression/bz469441-host-command-mixed-ipv4-and-6 -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) - chmod a+x runtest.sh - -clean: - rm -f *~ $(BUILT_FILES) - - -include /usr/share/rhts/lib/rhts-make.include - -$(METADATA): Makefile - @echo "Owner: Martin Cermak " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for bz469441 ('host -4 hostname' fails even though ipv4)" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 90m" >> $(METADATA) - @echo "RunFor: bind" >> $(METADATA) - @echo "Requires: bind bind-chroot bind-utils nmap caching-nameserver" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 469441" >> $(METADATA) - @echo "Releases: -RedHatEnterpriseLinux3 -RedHatEnterpriseLinux4" >> $(METADATA) - @echo "RhtsRequires: library(bind/bind-setup)" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/Regression/bz469441-host-command-mixed-ipv4-and-6/PURPOSE b/Regression/bz469441-host-command-mixed-ipv4-and-6/PURPOSE deleted file mode 100644 index 0caeb08..0000000 --- a/Regression/bz469441-host-command-mixed-ipv4-and-6/PURPOSE +++ /dev/null @@ -1,49 +0,0 @@ -PURPOSE of /CoreOS/bind/Regression/bz469441-host-command-mixed-ipv4-and-6 -Description: Test for bz469441 ('host -4 hostname' fails even though ipv4) -Author: Matej Susta -Bug summary: 'host -4 hostname' fails even though ipv4 nameservers are available. -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=469441 - -Description: - -Description of problem: - -I have a mix of ipv4 and ipv6 DNS servers listed in /etc/resolv.conf: -% grep -v '^#' /etc/resolv.conf -nameserver 2001:468:c80:2101:0:100:0:22 -nameserver 2001:468:c80:6101:0:100:0:62 -nameserver 198.82.247.66 -nameserver 198.82.247.34 -nameserver 198.82.247.98 - -Using 'host -4' fails: -% host -4 listserv.vt.edu -host: couldn't get address for '2001:468:c80:2101:0:100:0:22': address family not supported - -Even though the actual target exists: -% host -6 listserv.vt.edu -listserv.vt.edu has address 198.82.161.192 -listserv.vt.edu has IPv6 address 2001:468:c80:2105:211:43ff:feda:d769 -listserv.vt.edu mail is handled by 0 smtp.vt.edu. - -'host -4' *should* have gone ahead and tried the 3 listed IPv4 servers. - -Version-Release number of selected component (if applicable): -bind-utils-9.3.4-6.0.2.P1.el5_2 - -How reproducible: - - -Steps to Reproduce: -1. -2. -3. - -Actual results: - - -Expected results: - - -Additional info: -I've also opened bug #469440 against Fedora Rawhide for this. diff --git a/Regression/bz469441-host-command-mixed-ipv4-and-6/main.fmf b/Regression/bz469441-host-command-mixed-ipv4-and-6/main.fmf deleted file mode 100644 index 8cfc487..0000000 --- a/Regression/bz469441-host-command-mixed-ipv4-and-6/main.fmf +++ /dev/null @@ -1,47 +0,0 @@ -summary: Test for bz469441 ('host -4 hostname' fails even though ipv4) -description: "Bug summary: 'host -4 hostname' fails even though ipv4 nameservers are\ - \ available.\nBugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=469441\n\ - \nDescription:\n\nDescription of problem:\n\nI have a mix of ipv4 and ipv6 DNS\ - \ servers listed in /etc/resolv.conf:\n% grep -v '^#' /etc/resolv.conf\nnameserver\ - \ 2001:468:c80:2101:0:100:0:22\nnameserver 2001:468:c80:6101:0:100:0:62\nnameserver\ - \ 198.82.247.66\nnameserver 198.82.247.34\nnameserver 198.82.247.98\n\nUsing 'host\ - \ -4' fails:\n% host -4 listserv.vt.edu\nhost: couldn't get address for '2001:468:c80:2101:0:100:0:22':\ - \ address family not supported\n\nEven though the actual target exists:\n% host\ - \ -6 listserv.vt.edu\nlistserv.vt.edu has address 198.82.161.192\nlistserv.vt.edu\ - \ has IPv6 address 2001:468:c80:2105:211:43ff:feda:d769\nlistserv.vt.edu mail\ - \ is handled by 0 smtp.vt.edu.\n\n'host -4' *should* have gone ahead and tried\ - \ the 3 listed IPv4 servers.\n\nVersion-Release number of selected component (if\ - \ applicable):\nbind-utils-9.3.4-6.0.2.P1.el5_2\n\nHow reproducible:\n\n\nSteps\ - \ to Reproduce:\n1.\n2.\n3.\n \nActual results:\n\n\nExpected results:\n\n\n\ - Additional info:\nI've also opened bug #469440 against Fedora Rawhide for this.\n" -contact: Petr Sklenar -component: -- bind -test: ./runtest.sh -require: -- bind -- bind-chroot -- bind-utils -- nmap -- caching-nameserver -- library(bind/bind-setup) -duration: 90m -enabled: true -tag: -- NoRHEL3 -- NoRHEL4 -- TIPfail_infra -- TIPpass -- Tier1 -- tip_destructive_el8 -- bind-setup -tier: '1' -relevancy: | - distro = rhel-6: False -adjust: - enabled: false - when: distro > fedora-33 - because: Does not work with bind 9.16+ yet -extra-summary: /CoreOS/bind/Regression/bz469441-host-command-mixed-ipv4-and-6 -extra-task: /CoreOS/bind/Regression/bz469441-host-command-mixed-ipv4-and-6 -extra-nitrate: TC#0126576 diff --git a/Regression/bz469441-host-command-mixed-ipv4-and-6/runtest.sh b/Regression/bz469441-host-command-mixed-ipv4-and-6/runtest.sh deleted file mode 100644 index 90c3787..0000000 --- a/Regression/bz469441-host-command-mixed-ipv4-and-6/runtest.sh +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/rhts-library/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/bind/Regression/bz469441-host-command-mixed-ipv4-and-6 -# Description: Test for bz469441 ('host -4 hostname' fails even though ipv4) -# Author: Matej Susta -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2009 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -# Include rhts environment -. /usr/bin/rhts-environment.sh -. /usr/share/rhts-library/rhtslib.sh -. /usr/share/beakerlib/beakerlib.sh || exit 1 - -. /etc/sysconfig/named - -# we need fresh config files -#yum -y remove bind bind-chroot bind-utils > /dev/null -#yum -y install bind bind-chroot bind-utils > /dev/null - -PACKAGE="bind" - -rlJournalStart - rlPhaseStartSetup - rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - - rlRun "rlImport bind/bind-setup" - #rlRun "wget --quiet http://nest.test.redhat.com/mnt/qa/scratch/mcermak/bind-setup.tar.gz && tar xvzf bind-setup.tar.gz > /dev/null && . bind-setup/bind-setup.sh" 0 "Imported bind-setup functions." - - bsBindSetupStart - bsDnssecDisable - bsSetUserOptions "forwarders { `bsGetDefaultNameServer`; };" - bsSetUserOptions "forward only;" - bsBindSetupDone - - bsSetLocalResolving - rlRun "host -4 ns2.redhat.com" 0 - rlRun "host -6 ns2.redhat.com" 0 - - - bsBindSetupCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalEnd diff --git a/Regression/bz481803-unowned-directory/Makefile b/Regression/bz481803-unowned-directory/Makefile deleted file mode 100644 index 4b32f0d..0000000 --- a/Regression/bz481803-unowned-directory/Makefile +++ /dev/null @@ -1,65 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/bind/Regression/bz481803-unowned-directory -# Description: Test for bz481803 (Unowned directory in bind-9.3.4-10.P1.el5.src.rpm) -# Author: Matej Susta -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2009 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -export TEST=/CoreOS/bind/Regression/bz481803-unowned-directory -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) - chmod a+x runtest.sh - -clean: - rm -f *~ $(BUILT_FILES) - - -include /usr/share/rhts/lib/rhts-make.include - -$(METADATA): Makefile - @echo "Owner: Martin Cermak " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for bz481803 (Unowned directory in bind-9.3.4-10.P1.el5.src.rpm)" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 15m" >> $(METADATA) - @echo "RunFor: bind" >> $(METADATA) - @echo "Requires: bind" >> $(METADATA) - @echo "Requires: bind-chroot bind-utils" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 481803" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/Regression/bz481803-unowned-directory/PURPOSE b/Regression/bz481803-unowned-directory/PURPOSE deleted file mode 100644 index 4553f47..0000000 --- a/Regression/bz481803-unowned-directory/PURPOSE +++ /dev/null @@ -1,33 +0,0 @@ -PURPOSE of /CoreOS/bind/Regression/bz481803-unowned-directory -Description: Test for bz481803 (Unowned directory in bind-9.3.4-10.P1.el5.src.rpm) -Author: Matej Susta -Bug summary: Unowned directory in bind-9.3.4-10.P1.el5.src.rpm -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=481803 - -Description: - - -Description of problem: -This component has one or more packages that contains unowned directories. This happens when a package lists a file but does not list that file's directory. If no other package claims ownership of the directory, then the directory gets created but is unowned. More context is available in bug #195328. - -Version-Release number of selected component (if applicable): -bind-9.3.4-10.P1.el5.src.rpm - -How reproducible: -always - -Steps to Reproduce: -1. cvs -d :pserver:anonymous@cvs.devel.redhat.com:/cvs/rel-eng co utility-scripts/rpm-attr-test -2. cd utility-scripts -3. ./rpm-attr-test --tree /mnt/redhat/released/RHEL-5-Server/U3/i386/os/ - - Actual results: -SRPM: bind-9.3.4-10.P1.el5.src.rpm - RPM: bind-chroot-9.3.4-10.P1.el5.i386.rpm - Unowned Directory: /var/named/chroot/var/log - - - Expected results: - - - Additional info: diff --git a/Regression/bz481803-unowned-directory/main.fmf b/Regression/bz481803-unowned-directory/main.fmf deleted file mode 100644 index fd17ed3..0000000 --- a/Regression/bz481803-unowned-directory/main.fmf +++ /dev/null @@ -1,51 +0,0 @@ -summary: Test for bz481803 (Unowned directory in bind-9.3.4-10.P1.el5.src.rpm) -description: | - Bug summary: Unowned directory in bind-9.3.4-10.P1.el5.src.rpm - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=481803 - - Description: - - - Description of problem: - This component has one or more packages that contains unowned directories. This happens when a package lists a file but does not list that file's directory. If no other package claims ownership of the directory, then the directory gets created but is unowned. More context is available in bug #195328. - - Version-Release number of selected component (if applicable): - bind-9.3.4-10.P1.el5.src.rpm - - How reproducible: - always - - Steps to Reproduce: - 1. cvs -d :pserver:anonymous@cvs.devel.redhat.com:/cvs/rel-eng co utility-scripts/rpm-attr-test - 2. cd utility-scripts - 3. ./rpm-attr-test --tree /mnt/redhat/released/RHEL-5-Server/U3/i386/os/ - - Actual results: - SRPM: bind-9.3.4-10.P1.el5.src.rpm - RPM: bind-chroot-9.3.4-10.P1.el5.i386.rpm - Unowned Directory: /var/named/chroot/var/log - - - Expected results: - - - Additional info: -contact: Petr Sklenar -component: -- bind -test: ./runtest.sh -require: -- bind -- bind-chroot -- bind-utils -duration: 15m -enabled: true -tag: -- TIPpass -- TIPpass_infra -- Tier1 -- tip_destructive_el8 -tier: '1' -extra-summary: /CoreOS/bind/Regression/bz481803-unowned-directory -extra-task: /CoreOS/bind/Regression/bz481803-unowned-directory -extra-nitrate: TC#0126566 diff --git a/Regression/bz481803-unowned-directory/runtest.sh b/Regression/bz481803-unowned-directory/runtest.sh deleted file mode 100644 index 99dfbc8..0000000 --- a/Regression/bz481803-unowned-directory/runtest.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/rhts-library/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/bind/Regression/bz481803-unowned-directory -# Description: Test for bz481803 (Unowned directory in bind-9.3.4-10.P1.el5.src.rpm) -# Author: Matej Susta -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2009 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -# Include rhts environment -. /usr/bin/rhts-environment.sh -. /usr/share/rhts-library/rhtslib.sh - -rlJournalStart - rlPhaseStartSetup - if rpm -q bind97; then - rlAssertRpm bind97-chroot - rlAssertRpm bind97-utils - else - rlAssertRpm bind-chroot - rlAssertRpm bind-utils - fi - rlPhaseEnd - - rlPhaseStartTest - if rpm -q bind97; then - rlRun "A=`rpm -q bind97-chroot`" 0 - else - rlRun "A=`rpm -q bind-chroot`" 0 - fi - rlRun "B=`rpm -qf /var/named/chroot/var/log`" 0 - rlAssertEquals "Check if bind-chroot package equals to the package owning /var/named/chroot/var/log" "$A" "$B" - rlPhaseEnd - - rlPhaseStartCleanup - rlPhaseEnd -rlJournalEnd diff --git a/Regression/bz491655-unknown-DLV-alghorithms-handling/Makefile b/Regression/bz491655-unknown-DLV-alghorithms-handling/Makefile deleted file mode 100644 index 0ee035f..0000000 --- a/Regression/bz491655-unknown-DLV-alghorithms-handling/Makefile +++ /dev/null @@ -1,66 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/bind/Regression/bz491655-unknown-DLV-alghorithms-handling -# Description: Test for bz491655 (bind doesn't handle unknown DLV algorithms well) -# Author: Matej Susta -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2009 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -export TEST=/CoreOS/bind/Regression/bz491655-unknown-DLV-alghorithms-handling -export TESTVERSION=1.3 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE named.conf - -.PHONY: all install download clean - -run: $(FILES) build - ./runtest.sh - -build: $(BUILT_FILES) - chmod a+x runtest.sh - -clean: - rm -f *~ $(BUILT_FILES) - - -include /usr/share/rhts/lib/rhts-make.include - -$(METADATA): Makefile - @echo "Owner: Martin Cermak " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for bz491655 (bind doesn't handle unknown DLV algorithms well)" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 5m" >> $(METADATA) - @echo "RunFor: bind" >> $(METADATA) - @echo "Requires: bind" >> $(METADATA) - @echo "Requires: bind-chroot bind-utils" >> $(METADATA) - @echo "Requires: caching-nameserver" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 491655" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/Regression/bz491655-unknown-DLV-alghorithms-handling/PURPOSE b/Regression/bz491655-unknown-DLV-alghorithms-handling/PURPOSE deleted file mode 100644 index c70906b..0000000 --- a/Regression/bz491655-unknown-DLV-alghorithms-handling/PURPOSE +++ /dev/null @@ -1,13 +0,0 @@ -PURPOSE of /CoreOS/bind/Regression/bz491655-unknown-DLV-alghorithms-handling -Description: Test for bz491655 (bind doesn't handle unknown DLV algorithms well) -Author: Matej Susta -Bug summary: bind doesn't handle unknown DLV algorithms well -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=491655 - -Description: - -Description of problem: -BIND doesn't handle unknown DLV algorithms well. This issue is fixed in 9.5.1-P2 and patch must be backported to RHEL5. - -Version: -bind-9.3.4-10.P1.el5 diff --git a/Regression/bz491655-unknown-DLV-alghorithms-handling/main.fmf b/Regression/bz491655-unknown-DLV-alghorithms-handling/main.fmf deleted file mode 100644 index f4cd60a..0000000 --- a/Regression/bz491655-unknown-DLV-alghorithms-handling/main.fmf +++ /dev/null @@ -1,34 +0,0 @@ -summary: Test for bz491655 (bind doesn't handle unknown DLV algorithms well) -description: | - Bug summary: bind doesn't handle unknown DLV algorithms well - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=491655 - - Description: - - Description of problem: - BIND doesn't handle unknown DLV algorithms well. This issue is fixed in 9.5.1-P2 and patch must be backported to RHEL5. - - Version: - bind-9.3.4-10.P1.el5 -contact: Petr Sklenar -component: -- bind -test: ./runtest.sh -require: -- bind -- bind-chroot -- bind-utils -- caching-nameserver -duration: 5m -enabled: true -tag: -- RHEL5 -- RHEL6 -- TIPfail_infra -- TIPpass -- TIPpass_FIPS -relevancy: |4+ - -extra-summary: /CoreOS/bind/Regression/bz491655-unknown-DLV-alghorithms-handling -extra-task: /CoreOS/bind/Regression/bz491655-unknown-DLV-alghorithms-handling -extra-nitrate: TC#0126552 diff --git a/Regression/bz491655-unknown-DLV-alghorithms-handling/named.conf b/Regression/bz491655-unknown-DLV-alghorithms-handling/named.conf deleted file mode 100644 index e197297..0000000 --- a/Regression/bz491655-unknown-DLV-alghorithms-handling/named.conf +++ /dev/null @@ -1,35 +0,0 @@ -options { - dnssec-enable yes; - dnssec-lookaside . trust-anchor dlv.isc.org.; - listen-on port 53 { 127.0.0.1; }; - listen-on-v6 port 53 { ::1; }; - directory "/var/named"; - dump-file "/var/named/data/cache_dump.db"; - statistics-file "/var/named/data/named_stats.txt"; - memstatistics-file "/var/named/data/named_mem_stats.txt"; -forwarders { - 10.64.63.6; - }; - - // Those options should be used carefully because they disable port - // randomization - // query-source port 53; - // query-source-v6 port 53; - - allow-query { localhost; }; -}; -logging { - channel default_debug { - file "data/named.run"; - severity dynamic; - }; -}; -view localhost_resolver { - match-clients { localhost; }; - match-destinations { localhost; }; - recursion yes; - include "/etc/named.rfc1912.zones"; -}; - -include "/etc/dlv.key"; - diff --git a/Regression/bz491655-unknown-DLV-alghorithms-handling/runtest.sh b/Regression/bz491655-unknown-DLV-alghorithms-handling/runtest.sh deleted file mode 100644 index 8737c62..0000000 --- a/Regression/bz491655-unknown-DLV-alghorithms-handling/runtest.sh +++ /dev/null @@ -1,81 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/rhts-library/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/bind/Regression/bz491655-unknown-DLV-alghorithms-handling -# Description: Test for bz491655 (bind doesn't handle unknown DLV algorithms well) -# Author: Matej Susta -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2009 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -# Include rhts environment -# rpm -Uvh http://nest.test.redhat.com/mnt/qa/scratch/pmuller/rhtslib/rhtslib.rpm - -. /usr/bin/rhts-environment.sh -. /usr/share/rhts-library/rhtslib.sh - -PACKAGE="" -rpm -q bind && PACKAGE="bind" -rpm -q bind97 && PACKAGE="bind97" - - -rlJournalStart - rlPhaseStartSetup Setup - rlAssertRpm $PACKAGE - rlAssertRpm $PACKAGE-chroot - . /etc/sysconfig/named - rlServiceStop named - rlFileBackup --clean /etc/named.conf /var/named/data/named.run /etc/rndc.key - if [ -e $ROOTDIR/etc/named.conf ]; then - rlFileBackup --clean $ROOTDIR/etc/named.conf - #BACKED=1 - fi - rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory" - rlRun "chmod 777 $TmpDir" 0 "Chmodding Tmp" - rlPhaseEnd - - rlPhaseStartTest Testing - rlAssertExists $TmpDir - rlRun "wget -O $ROOTDIR/etc/dlv.key http://ftp.isc.org/www/dlv/dlv.isc.org.named.conf" 0 "Downloading actual DLV key" - cat $ROOTDIR/etc/dlv.key - rlRun "cp -f named.conf $ROOTDIR/etc/named.conf" 0 "Inserting our named.conf" - rlRun "chown root.named $ROOTDIR/etc/named.conf" 0 "Chowning" - cat $ROOTDIR/etc/named.conf - - rlRun "service named start" 0 "Starting BIND" - tail /var/log/messages - -sleep 10 - rlRun "dig @127.0.0.1 gov SOA +dnssec >$TmpDir/output" 0 "Reproducer: Querying for .gov" - rlLog "Query details in TESTOUT" - echo "===== DIG output =====" - cat $TmpDir/output - rlAssertNotGrep "SERVFAIL" "$TmpDir/output" - rlRun "service named stop" 0 "Stoping BIND" - rlPhaseEnd - - rlPhaseStartCleanup Cleanup - rlRun "rm -rf $TmpDir $ROOTDIR/etc/named.conf $ROOTDIR/etc/dlv.key" 0 "Cleaning up" - #(($BACKED)) && rlFileRestore - rlFileRestore - rlServiceRestore named - rlPhaseEnd -rlJournalPrintText diff --git a/Regression/bz500535-etc-init-d-named-script-kills-all-process-named/Makefile b/Regression/bz500535-etc-init-d-named-script-kills-all-process-named/Makefile deleted file mode 100644 index ca8f848..0000000 --- a/Regression/bz500535-etc-init-d-named-script-kills-all-process-named/Makefile +++ /dev/null @@ -1,65 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/bind/Regression/bz500535-etc-init-d-named-script-kills-all-process-named -# Description: Test for bz500535 (/etc/init.d/named script kills all process named) -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2010 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -export TEST=/CoreOS/bind/Regression/bz500535-etc-init-d-named-script-kills-all-process-named -export TESTVERSION=1.9 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE - -.PHONY: all install download clean - -run: $(FILES) build - ./runtest.sh - -build: $(BUILT_FILES) - chmod a+x runtest.sh - -clean: - rm -f *~ $(BUILT_FILES) - - -include /usr/share/rhts/lib/rhts-make.include - -$(METADATA): Makefile - @echo "Owner: Martin Cermak " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for bz500535 (/etc/init.d/named script kills all process named)" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 15m" >> $(METADATA) - @echo "RunFor: bind" >> $(METADATA) - @echo "Requires: bind psmisc" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 500535" >> $(METADATA) - @echo "RhtsRequires: library(bind/bind-setup)" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/Regression/bz500535-etc-init-d-named-script-kills-all-process-named/PURPOSE b/Regression/bz500535-etc-init-d-named-script-kills-all-process-named/PURPOSE deleted file mode 100644 index c9c175d..0000000 --- a/Regression/bz500535-etc-init-d-named-script-kills-all-process-named/PURPOSE +++ /dev/null @@ -1,8 +0,0 @@ -PURPOSE of /CoreOS/bind/Regression/bz500535-etc-init-d-named-script-kills-all-process-named -Description: Test for bz500535 (/etc/init.d/named script kills all process named) -Author: Martin Cermak -Bug summary: /etc/init.d/named script kills all process named 'named'. -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=500535 - -This test can catch the bug eg in bind-9.3.6-4.P1.el5_4.2. The bug is present there. - diff --git a/Regression/bz500535-etc-init-d-named-script-kills-all-process-named/main.fmf b/Regression/bz500535-etc-init-d-named-script-kills-all-process-named/main.fmf deleted file mode 100644 index fc5f7d4..0000000 --- a/Regression/bz500535-etc-init-d-named-script-kills-all-process-named/main.fmf +++ /dev/null @@ -1,28 +0,0 @@ -summary: Test for bz500535 (/etc/init.d/named script kills all process named) -description: |+ - Bug summary: /etc/init.d/named script kills all process named 'named'. - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=500535 - - This test can catch the bug eg in bind-9.3.6-4.P1.el5_4.2. The bug is present there. - -contact: Petr Sklenar -component: -- bind -test: ./runtest.sh -require: -- bind -- psmisc -- library(bind/bind-setup) -duration: 15m -enabled: true -tag: -- TIP_fedora_fail -- TIPfail_infra -- TIPpass -- TIPpass_FIPS -- Tier1 -- TipWaived5 -tier: '1' -extra-summary: /CoreOS/bind/Regression/bz500535-etc-init-d-named-script-kills-all-process-named -extra-task: /CoreOS/bind/Regression/bz500535-etc-init-d-named-script-kills-all-process-named -extra-nitrate: TC#0126553 diff --git a/Regression/bz500535-etc-init-d-named-script-kills-all-process-named/runtest.sh b/Regression/bz500535-etc-init-d-named-script-kills-all-process-named/runtest.sh deleted file mode 100755 index de90536..0000000 --- a/Regression/bz500535-etc-init-d-named-script-kills-all-process-named/runtest.sh +++ /dev/null @@ -1,94 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/bind/Regression/bz500535-etc-init-d-named-script-kills-all-process-named -# Description: Test for bz500535 (/etc/init.d/named script kills all process named) -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2010 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -# Include rhts environment -. /usr/bin/rhts-environment.sh -. /usr/lib/beakerlib/beakerlib.sh -. /usr/share/beakerlib/beakerlib.sh || exit 1 - -PACKAGE="bind" - -rlJournalStart - rlPhaseStartSetup - rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - #old backup because the bsBindSetupStart backup the same file - cp -a /etc/named.conf /$TmpDir/named.conf - - rlRun "rlImport bind/bind-setup" - #rlRun "wget --quiet http://nest.test.redhat.com/mnt/qa/scratch/mcermak/bind-setup.tar.gz && tar xvzf bind-setup.tar.gz > /dev/null && . bind-setup/bind-setup.sh" 0 "Imported bind-setup functions." - echo "controls { inet 127.0.0.1 allow { none; }; };" >> /etc/named.conf - # Second instance must not listen on the same port - rlRun "sed -e 's/port 53/port 853/' /etc/named.conf > /etc/named/named-2.conf" - rlRun "chown root:named /etc/named/named-2.conf" - rlRun "chmod 0640 /etc/named/named-2.conf" - bsBindSetupStart "" "chrootoff" - bsBindSetupDone - rlPhaseEnd - - rlPhaseStartTest - # bsBindSetupStart ensures that - # only one instance of bind is run - - # sleep a while - rlRun "sleep 3" - - # let's start one extra named process - rlRun "named -g -u named -c /etc/named/named-2.conf &" - - # sleep a while - rlRun "sleep 3" - - # check what's running - ps axu | grep named &> $TmpDir/two_processes_should_be_running.txt - - # our extra named shouldn't be killed here: - # Just the originally started process should be stopped: - rlRun "service named stop" 0,1 - # RHEL6 bind fails to stop if our extra named process runs. Respectively - it stops, but ends up with 1. - - # check what's running - ps axu | grep named &> $TmpDir/just_one_process_should_be_running.txt - - # ... so ensure it runs: -sleep 10 - rlRun "ps axu | grep \"named\ -g\ -u\ named\"" - rlRun "ps axu | grep \"named\ -g\ -u\ named\" | wc -l | grep \"^1$\"" 0 "Exactly one named process should be running now." - rlPhaseEnd - - rlPhaseStartCleanup - # rlFileBackup "TESTLOGS" "$TmpDir/two_processes_should_be_running.txt" "$TmpDir/just_one_process_should_be_running.txt" - rlRun "killall named" 0-255 - bsBindSetupCleanup - - cp -a $TmpDir/named.conf /etc/named.conf - rlRun "rm -f /etc/named/named-2.conf" - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalEnd diff --git a/Regression/bz523052-named-segfault/Makefile b/Regression/bz523052-named-segfault/Makefile deleted file mode 100644 index b0aba87..0000000 --- a/Regression/bz523052-named-segfault/Makefile +++ /dev/null @@ -1,65 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/bind/Regression/bz523052-named-segfault -# Description: Test for bz523052 (named segfault) -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2010 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -export TEST=/CoreOS/bind/Regression/bz523052-named-segfault -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) - chmod a+x runtest.sh - -clean: - rm -f *~ $(BUILT_FILES) - - -include /usr/share/rhts/lib/rhts-make.include - -$(METADATA): Makefile - @echo "Owner: Martin Cermak " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for bz523052 (named segfault)" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 15m" >> $(METADATA) - @echo "RunFor: bind" >> $(METADATA) - @echo "Requires: bind strace bind-chroot" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 523052" >> $(METADATA) - @echo "RhtsRequires: library(bind/bind-setup)" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/Regression/bz523052-named-segfault/PURPOSE b/Regression/bz523052-named-segfault/PURPOSE deleted file mode 100644 index 42849d3..0000000 --- a/Regression/bz523052-named-segfault/PURPOSE +++ /dev/null @@ -1,14 +0,0 @@ -PURPOSE of /CoreOS/bind/Regression/bz523052-named-segfault -Description: Test for bz523052 (named segfault) -Author: Martin Cermak -Bug summary: named (caching-nameserver) segfault -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=523052 - -Test can catch the bug in: -# rpm -qa | grep bind- -bind-9.3.6-4.P1.el5 -bind-libs-9.3.6-4.P1.el5 -bind-utils-9.3.6-4.P1.el5 -bind-chroot-9.3.6-4.P1.el5 - -Fixed in RHEL5.6+ diff --git a/Regression/bz523052-named-segfault/main.fmf b/Regression/bz523052-named-segfault/main.fmf deleted file mode 100644 index a4d12e1..0000000 --- a/Regression/bz523052-named-segfault/main.fmf +++ /dev/null @@ -1,34 +0,0 @@ -summary: Test for bz523052 (named segfault) -description: | - Bug summary: named (caching-nameserver) segfault - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=523052 - - Test can catch the bug in: - # rpm -qa | grep bind- - bind-9.3.6-4.P1.el5 - bind-libs-9.3.6-4.P1.el5 - bind-utils-9.3.6-4.P1.el5 - bind-chroot-9.3.6-4.P1.el5 - - Fixed in RHEL5.6+ -contact: Petr Sklenar -component: -- bind -test: ./runtest.sh -require: -- bind -- strace -- bind-chroot -- library(bind/bind-setup) -duration: 15m -enabled: true -tag: -- TIPfail_infra -- TIPpass -- Tier1 -- broken6.3 -- noExpectedness -tier: '1' -extra-summary: /CoreOS/bind/Regression/bz523052-named-segfault -extra-task: /CoreOS/bind/Regression/bz523052-named-segfault -extra-nitrate: TC#0126572 diff --git a/Regression/bz523052-named-segfault/runtest.sh b/Regression/bz523052-named-segfault/runtest.sh deleted file mode 100755 index baba187..0000000 --- a/Regression/bz523052-named-segfault/runtest.sh +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/bind/Regression/bz523052-named-segfault -# Description: Test for bz523052 (named segfault) -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2010 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -# Include rhts environment -. /usr/bin/rhts-environment.sh -. /usr/lib/beakerlib/beakerlib.sh -. /usr/share/beakerlib/beakerlib.sh || exit 1 - -PACKAGE="bind" - -rlJournalStart - rlPhaseStartSetup - rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - rlRun "rlImport bind/bind-setup" - #rlRun "wget --quiet http://nest.test.redhat.com/mnt/qa/scratch/mcermak/bind-setup.tar.gz && tar xvzf bind-setup.tar.gz > /dev/null && . bind-setup/bind-setup.sh" 0 "Imported bind-setup functions." - bsBindSetupStart - bsBindSetupDone - rlServiceStop "named" - rlPhaseEnd - - rlPhaseStartTest - rlRun "strace named -gunamed -D -c /etc/named.conf &> strace.txt &" 0 - rlRun "sleep 5" - rlRun "grep 'killed by SIGSEGV' strace.txt" 1 - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "killall -9 strace" 0-255 - bsBindSetupCleanup - rlBundleLogs "TEST_LOGS" "strace.txt" - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalEnd diff --git a/Regression/bz530214-service-named-configtest-always-returns-0/Makefile b/Regression/bz530214-service-named-configtest-always-returns-0/Makefile deleted file mode 100644 index 88514a6..0000000 --- a/Regression/bz530214-service-named-configtest-always-returns-0/Makefile +++ /dev/null @@ -1,65 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/bind/Regression/bz530214-service-named-configtest-always-returns-0 -# Description: Test for bz530214 (service named configtest always returns 0) -# Author: Ludek Dolihal -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2009 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -export TEST=/CoreOS/bind/Regression/bz530214-service-named-configtest-always-returns-0 -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) - chmod a+x runtest.sh - -clean: - rm -f *~ $(BUILT_FILES) - - -include /usr/share/rhts/lib/rhts-make.include - -$(METADATA): Makefile - @echo "Owner: Martin Cermak " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for bz530214 (service named configtest always returns 0)" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 120m" >> $(METADATA) - @echo "RunFor: bind" >> $(METADATA) - @echo "Requires: bind bind-chroot redhat-lsb" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 530214" >> $(METADATA) - @echo "RhtsRequires: library(bind/bind-setup)" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/Regression/bz530214-service-named-configtest-always-returns-0/PURPOSE b/Regression/bz530214-service-named-configtest-always-returns-0/PURPOSE deleted file mode 100644 index b6c4296..0000000 --- a/Regression/bz530214-service-named-configtest-always-returns-0/PURPOSE +++ /dev/null @@ -1,18 +0,0 @@ -PURPOSE of /CoreOS/bind/Regression/bz530214-service-named-configtest-always-returns-0 -Description: Test for bz530214 (service named configtest always returns 0) -Author: Ludek Dolihal -Bug summary: service named configtest always returns 0 -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=530214 - -This test can catch the bug using: -rpm -qa | grep bind- -bind-9.3.4-10.P1.el5 -bind-libs-9.3.4-10.P1.el5 -bind-chroot-9.3.4-10.P1.el5 -bind-utils-9.3.4-10.P1.el5 - -But in this case also -bsRemoveConfOptions "allow-query-cache" -must be added under -bsBindSetupStart "" "chrootoff" -because 9.3.4-10.P1.el5 does not know that option yet. diff --git a/Regression/bz530214-service-named-configtest-always-returns-0/main.fmf b/Regression/bz530214-service-named-configtest-always-returns-0/main.fmf deleted file mode 100644 index 4e74304..0000000 --- a/Regression/bz530214-service-named-configtest-always-returns-0/main.fmf +++ /dev/null @@ -1,26 +0,0 @@ -summary: Test for bz530214 (service named configtest always returns 0) -description: "Bug summary: service named configtest always returns 0\nBugzilla link:\ - \ https://bugzilla.redhat.com/show_bug.cgi?id=530214\n\nThis test can catch the\ - \ bug using:\nrpm -qa | grep bind-\nbind-9.3.4-10.P1.el5\nbind-libs-9.3.4-10.P1.el5\n\ - bind-chroot-9.3.4-10.P1.el5\nbind-utils-9.3.4-10.P1.el5\n\nBut in this case also\ - \ \nbsRemoveConfOptions \"allow-query-cache\"\nmust be added under \nbsBindSetupStart\ - \ \"\" \"chrootoff\"\nbecause 9.3.4-10.P1.el5 does not know that option yet.\n" -contact: Petr Sklenar -component: -- bind -test: ./runtest.sh -require: -- bind -- bind-chroot -- redhat-lsb -- library(bind/bind-setup) -duration: 120m -enabled: true -tag: -- TIPfail_infra -- TIPpass -- Tier1 -tier: '1' -extra-summary: /CoreOS/bind/Regression/bz530214-service-named-configtest-always-returns-0 -extra-task: /CoreOS/bind/Regression/bz530214-service-named-configtest-always-returns-0 -extra-nitrate: TC#0126554 diff --git a/Regression/bz530214-service-named-configtest-always-returns-0/runtest.sh b/Regression/bz530214-service-named-configtest-always-returns-0/runtest.sh deleted file mode 100755 index f4b1f3b..0000000 --- a/Regression/bz530214-service-named-configtest-always-returns-0/runtest.sh +++ /dev/null @@ -1,66 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/bind/Regression/bz530214-service-named-configtest-always-returns-0 -# Description: Test for bz530214 (service named configtest always returns 0) -# Author: Ludek Dolihal -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2009 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -# Include rhts environment -. /usr/bin/rhts-environment.sh -. /usr/lib/beakerlib/beakerlib.sh -. /usr/share/beakerlib/beakerlib.sh || exit 1 - -PACKAGE="bind" - -rlJournalStart - rlPhaseStartSetup - rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory" - rlFileBackup /etc/named.conf - rlRun "pushd $TmpDir" - - rlRun "rlImport bind/bind-setup" - #rlRun "wget --quiet http://nest.test.redhat.com/mnt/qa/scratch/mcermak/bind-setup.tar.gz && tar xvzf bind-setup.tar.gz > /dev/null && . bind-setup/bind-setup.sh" 0 "Imported bind-setup functions." - - bsBindSetupStart "" "chrootoff" - bsBindSetupDone - - rlRun "service named stop" - - bsRemoveConfOptions "allow-query" - bsSetUserOptions "allow-query { foo; };" - - rlRun "service named start" 1-255 - rlPhaseEnd - - rlPhaseStartTest - rlRun "named-checkconf /etc/named.conf" 1 - rlPhaseEnd - - rlPhaseStartCleanup - bsBindSetupCleanup - rlFileRestore - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalEnd diff --git a/Regression/bz561299-host-nslookup-dig-query-wrong-server/Makefile b/Regression/bz561299-host-nslookup-dig-query-wrong-server/Makefile deleted file mode 100644 index c0ca26b..0000000 --- a/Regression/bz561299-host-nslookup-dig-query-wrong-server/Makefile +++ /dev/null @@ -1,65 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/bind/Regression/bz561299-host-nslookup-dig-query-wrong-server -# Description: Test for bz561299 (host/nslookup/dig query wrong server) -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2010 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -export TEST=/CoreOS/bind/Regression/bz561299-host-nslookup-dig-query-wrong-server -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) - chmod a+x runtest.sh - -clean: - rm -f *~ $(BUILT_FILES) - - -include /usr/share/rhts/lib/rhts-make.include - -$(METADATA): Makefile - @echo "Owner: Petr Sklenar " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for bz561299 (host/nslookup/dig query wrong server)" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 15m" >> $(METADATA) - @echo "RunFor: bind" >> $(METADATA) - @echo "Requires: bind redhat-lsb" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 561299" >> $(METADATA) - @echo "RhtsRequires: library(bind/bind-setup)" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/Regression/bz561299-host-nslookup-dig-query-wrong-server/PURPOSE b/Regression/bz561299-host-nslookup-dig-query-wrong-server/PURPOSE deleted file mode 100644 index 4597ec5..0000000 --- a/Regression/bz561299-host-nslookup-dig-query-wrong-server/PURPOSE +++ /dev/null @@ -1,12 +0,0 @@ -PURPOSE of /CoreOS/bind/Regression/bz561299-host-nslookup-dig-query-wrong-server -Description: Test for bz561299 (host/nslookup/dig query wrong server) -Author: Martin Cermak -Bug summary: host/nslookup/dig query wrong server -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=561299 - -In the unpatched version, if we issue this command: nslookup - then we get correct IP -address of the which is wrong. With the patched version we -get "no servers could be reached", which is OK. - -Fixed in RHEL5.6+ diff --git a/Regression/bz561299-host-nslookup-dig-query-wrong-server/main.fmf b/Regression/bz561299-host-nslookup-dig-query-wrong-server/main.fmf deleted file mode 100644 index f759615..0000000 --- a/Regression/bz561299-host-nslookup-dig-query-wrong-server/main.fmf +++ /dev/null @@ -1,30 +0,0 @@ -summary: Test for bz561299 (host/nslookup/dig query wrong server) -description: | - Bug summary: host/nslookup/dig query wrong server - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=561299 - - In the unpatched version, if we issue this command: nslookup - then we get correct IP - address of the which is wrong. With the patched version we - get "no servers could be reached", which is OK. - - Fixed in RHEL5.6+ -contact: Petr Sklenar -component: -- bind -test: ./runtest.sh -require: -- bind -- redhat-lsb -- library(bind/bind-setup) -duration: 15m -enabled: true -tag: -- TIPfail_infra -- TIPpass -- broken6.3 -relevancy: | - distro = rhel-3, rhel-4, rhel-5: False -extra-summary: /CoreOS/bind/Regression/bz561299-host-nslookup-dig-query-wrong-server -extra-task: /CoreOS/bind/Regression/bz561299-host-nslookup-dig-query-wrong-server -extra-nitrate: TC#0126550 diff --git a/Regression/bz561299-host-nslookup-dig-query-wrong-server/runtest.sh b/Regression/bz561299-host-nslookup-dig-query-wrong-server/runtest.sh deleted file mode 100755 index 3e7e5d7..0000000 --- a/Regression/bz561299-host-nslookup-dig-query-wrong-server/runtest.sh +++ /dev/null @@ -1,63 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/bind/Regression/bz561299-host-nslookup-dig-query-wrong-server -# Description: Test for bz561299 (host/nslookup/dig query wrong server) -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2010 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -# Include rhts environment -. /usr/bin/rhts-environment.sh -. /usr/lib/beakerlib/beakerlib.sh - -PACKAGE="bind" - -UNEXISTINGIP="1.2.3.4" - -rlJournalStart - rlPhaseStartSetup - rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - - rlRun "rlImport bind/bind-setup" - #rlRun "wget --quiet http://nest.test.redhat.com/mnt/qa/scratch/mcermak/bind-setup.tar.gz && tar xvzf bind-setup.tar.gz > /dev/null && . bind-setup/bind-setup.sh" 0 "Imported bind-setup functions." - - bsBindSetupStart - bsSetUserOptions "forwarders { `bsGetDefaultNameServer`; };" - bsSetUserOptions "forward only;" - bsBindSetupDone - rlPhaseEnd - - rlPhaseStartTest - # out UNEXISTINGIP shouldn't be reachable - rlRun "ping -c 1 $UNEXISTINGIP" 1 - # the test itself - rlRun "nslookup ns1.redhat.com $UNEXISTINGIP 2>&1 | grep \"no servers could be reached\"" - rlPhaseEnd - - rlPhaseStartCleanup - bsBindSetupCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalEnd diff --git a/Regression/bz570851-host-command-ignores-resolv-conf-options/Makefile b/Regression/bz570851-host-command-ignores-resolv-conf-options/Makefile deleted file mode 100644 index 391477e..0000000 --- a/Regression/bz570851-host-command-ignores-resolv-conf-options/Makefile +++ /dev/null @@ -1,65 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/bind/Regression/bz570851-host-command-ignores-resolv-conf-options -# Description: Test for bz570851 (host command ignores resolv.conf options) -# Author: Alex Sersen -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2010 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -export TEST=/CoreOS/bind/Regression/bz570851-host-command-ignores-resolv-conf-options -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) - chmod a+x runtest.sh - -clean: - rm -f *~ $(BUILT_FILES) - - -include /usr/share/rhts/lib/rhts-make.include - -$(METADATA): Makefile - @echo "Owner: Martin Cermak " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for bz570851 (host command ignores resolv.conf options)" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 5m" >> $(METADATA) - @echo "RunFor: bind" >> $(METADATA) - @echo "Requires: bind bind-chroot bind-utils" >> $(METADATA) - #@echo "RhtsRequires: library(bind/library)" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: yes" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 570851" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/Regression/bz570851-host-command-ignores-resolv-conf-options/PURPOSE b/Regression/bz570851-host-command-ignores-resolv-conf-options/PURPOSE deleted file mode 100644 index 6aa50c4..0000000 --- a/Regression/bz570851-host-command-ignores-resolv-conf-options/PURPOSE +++ /dev/null @@ -1,8 +0,0 @@ -PURPOSE of /CoreOS/bind/Regression/bz570851-host-command-ignores-resolv-conf-options -Description: Test for bz570851 (host command ignores resolv.conf options) -Author: Alex Sersen -Bug summary: host command ignores resolv.conf options -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=570851 - -Fixed in RHEL5.6+ - diff --git a/Regression/bz570851-host-command-ignores-resolv-conf-options/main.fmf b/Regression/bz570851-host-command-ignores-resolv-conf-options/main.fmf deleted file mode 100644 index 665e7ff..0000000 --- a/Regression/bz570851-host-command-ignores-resolv-conf-options/main.fmf +++ /dev/null @@ -1,29 +0,0 @@ -summary: Test for bz570851 (host command ignores resolv.conf options) -description: |+ - Bug summary: host command ignores resolv.conf options - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=570851 - - Fixed in RHEL5.6+ - -contact: Petr Sklenar -component: -- bind -test: ./runtest.sh -require: -- bind -- bind-chroot -- bind-utils -duration: 5m -enabled: true -tag: -- TIP_fedora_pass -- TIPfail -- TIPpass_infra -- Tier1 -- destructive -- destructive_el8 -- tip_destructive_el8 -tier: '1' -extra-summary: /CoreOS/bind/Regression/bz570851-host-command-ignores-resolv-conf-options -extra-task: /CoreOS/bind/Regression/bz570851-host-command-ignores-resolv-conf-options -extra-nitrate: TC#0126565 diff --git a/Regression/bz570851-host-command-ignores-resolv-conf-options/runtest.sh b/Regression/bz570851-host-command-ignores-resolv-conf-options/runtest.sh deleted file mode 100755 index 6a7a6fe..0000000 --- a/Regression/bz570851-host-command-ignores-resolv-conf-options/runtest.sh +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/bind/Regression/bz570851-host-command-ignores-resolv-conf-options -# Description: Test for bz570851 (host command ignores resolv.conf options) -# Author: Alex Sersen -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2010 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -# Include rhts environment -. /usr/bin/rhts-environment.sh -. /usr/lib/beakerlib/beakerlib.sh - -NEW_RESOLV="options timeout:1 attempts:1 -nameserver 10.0.0.1" - -declare -i START -declare -i END - -rlJournalStart - rlPhaseStartSetup - if rpm -q bind97; then - rlAssertRpm bind97-chroot - rlAssertRpm bind97-utils - else - rlAssertRpm bind-chroot - rlAssertRpm bind-utils - fi - cat /etc/resolv.conf > /tmp/el8debug - rlFileBackup --clean /etc/resolv.conf `readlink -f /etc/resolv.conf` - rlRun "echo '${NEW_RESOLV}' > /etc/resolv.conf" 0 "Creating new resolv.conf" - rlRun "START=`date +%s`" - rlRun "host localhost" 1 "Running host on localhost" - rlRun "END=`date +%s`" - declare -i RESULT=`expr $END '-' $START` - rlAssertGreater "(END-START)<=6" "6" "${RESULT}" - cat /tmp/el8debug > /etc/resolv.conf - rlFileRestore - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/Regression/bz695382-bind97-does-not-contain-root-zone-dnskey/Makefile b/Regression/bz695382-bind97-does-not-contain-root-zone-dnskey/Makefile deleted file mode 100644 index 72b5dc4..0000000 --- a/Regression/bz695382-bind97-does-not-contain-root-zone-dnskey/Makefile +++ /dev/null @@ -1,65 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/bind/Regression/bz695382-bind97-does-not-contain-root-zone-dnskey -# Description: bz695382-bind97-does-not-contain-root-zone-dnskey -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2011 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -export TEST=/CoreOS/bind/Regression/bz695382-bind97-does-not-contain-root-zone-dnskey -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) - chmod a+x runtest.sh - -clean: - rm -f *~ $(BUILT_FILES) - - -include /usr/share/rhts/lib/rhts-make.include - -$(METADATA): Makefile - @echo "Owner: Martin Cermak " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: bz695382-bind97-does-not-contain-root-zone-dnskey" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 15m" >> $(METADATA) - @echo "RunFor: bind" >> $(METADATA) - @echo "Requires: bind bind-utils bind-chroot redhat-lsb rng-tools" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 695382" >> $(METADATA) - @echo "RhtsRequires: library(bind/bind-setup)" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/Regression/bz695382-bind97-does-not-contain-root-zone-dnskey/PURPOSE b/Regression/bz695382-bind97-does-not-contain-root-zone-dnskey/PURPOSE deleted file mode 100644 index d6c06c9..0000000 --- a/Regression/bz695382-bind97-does-not-contain-root-zone-dnskey/PURPOSE +++ /dev/null @@ -1,11 +0,0 @@ -PURPOSE of /CoreOS/bind/Regression/bz695382-bind97-does-not-contain-root-zone-dnskey -Description: bz695382-bind97-does-not-contain-root-zone-dnskey -Author: Martin Cermak -Bug summary: bind97 doesn't contain root zone DNSKEY -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=695382 - -This test is intended to run with RHEL6 bind or with bind97/RHEL5. -This test will fail with RHEL5 bind. - -CAUTION: This test can't be run in closed environment as it needs access to root servers. ------------------------------------------------------------------------------------------ diff --git a/Regression/bz695382-bind97-does-not-contain-root-zone-dnskey/main.fmf b/Regression/bz695382-bind97-does-not-contain-root-zone-dnskey/main.fmf deleted file mode 100644 index fcb91b6..0000000 --- a/Regression/bz695382-bind97-does-not-contain-root-zone-dnskey/main.fmf +++ /dev/null @@ -1,31 +0,0 @@ -summary: bz695382-bind97-does-not-contain-root-zone-dnskey -description: | - Bug summary: bind97 doesn't contain root zone DNSKEY - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=695382 - - This test is intended to run with RHEL6 bind or with bind97/RHEL5. - This test will fail with RHEL5 bind. - - CAUTION: This test can't be run in closed environment as it needs access to root servers. - ----------------------------------------------------------------------------------------- -contact: Petr Sklenar -component: -- bind -test: ./runtest.sh -require: -- bind -- bind-utils -- bind-chroot -- redhat-lsb -- rng-tools -- library(bind/bind-setup) -duration: 15m -enabled: true -tag: -- TIPfail_infra -- TIPpass -relevancy: |4+ - -extra-summary: /CoreOS/bind/Regression/bz695382-bind97-does-not-contain-root-zone-dnskey -extra-task: /CoreOS/bind/Regression/bz695382-bind97-does-not-contain-root-zone-dnskey -extra-nitrate: TC#0126551 diff --git a/Regression/bz695382-bind97-does-not-contain-root-zone-dnskey/runtest.sh b/Regression/bz695382-bind97-does-not-contain-root-zone-dnskey/runtest.sh deleted file mode 100755 index 5b6ab6b..0000000 --- a/Regression/bz695382-bind97-does-not-contain-root-zone-dnskey/runtest.sh +++ /dev/null @@ -1,82 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/bind/Regression/bz695382-bind97-does-not-contain-root-zone-dnskey -# Description: bz695382-bind97-does-not-contain-root-zone-dnskey -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2011 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -# Include rhts environment -. /usr/bin/rhts-environment.sh -. /usr/lib/beakerlib/beakerlib.sh -. /usr/share/beakerlib/beakerlib.sh - -ORIGPWD=`pwd` - -if rlIsRHEL 5 && rpm -q bind; then - rlJournalStart - rlPhaseStartTest - rlLogInfo "It makes only sense to run this test for RHEL6/bind, or for RHEL5/bind97. But not for RHEL5/bind." - rlRun "true" - rlPhaseEnd - rlJournalPrintText - rlJournalEnd -else - rlJournalStart - rlPhaseStartSetup - rngd -r /dev/urandom - rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory" - rlRun "chmod a+rx $TmpDir" - rlRun "skfjhxshg=$TmpDir" - rlRun "pushd $TmpDir" - rlFileBackup --clean /var/named/chroot/ - - rlRun "MYPACKAGE=$(rpm --queryformat="%{name}\n" -qf /etc/sysconfig/named)" - rlRun "echo $MYPACKAGE | grep ^bind" - rlRun "cp -p /etc/named.root.key $TmpDir/named.root.key" - - rlRun "rlImport bind/bind-setup" - #rlRun "wget --quiet http://nest.test.redhat.com/mnt/qa/scratch/mcermak/bind-setup.tar.gz && tar xvzf bind-setup.tar.gz > /dev/null && . bind-setup/bind-setup.sh" 0 "Imported bind-setup functions." - - bsBindSetupStart - bsSetUserSettings "include \"\/etc\/named.root.key\";" -#https://mojo.redhat.com/docs/DOC-1010763: - bsSetUserOptions "forwarders { 10.64.63.6;10.97.120.27; };" - rlRun "cp -p $TmpDir/named.root.key /var/named/chroot/etc/" - bsBindSetupDone - rlPhaseEnd - - rlPhaseStartTest - rlRun "dig @127.0.0.1 . NS +dnssec &> output.txt" - rlRun "cat output.txt" - rlRun "grep ';; flags:[^;]* ad[^;]*;' output.txt" - rlPhaseEnd - rlPhaseStartCleanup - bsBindSetupCleanup - rlFileRestore - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd - rlJournalPrintText - rlJournalEnd -fi diff --git a/Regression/max-open-files-1024-WARNING/Makefile b/Regression/max-open-files-1024-WARNING/Makefile deleted file mode 100644 index bcb53f9..0000000 --- a/Regression/max-open-files-1024-WARNING/Makefile +++ /dev/null @@ -1,65 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/bind/Regression/max-open-files-1024-WARNING -# Description: max-open-files-1024-WARNING -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2011 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -export TEST=/CoreOS/bind/Regression/max-open-files-1024-WARNING -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) - chmod a+x runtest.sh - -clean: - rm -f *~ $(BUILT_FILES) - - -include /usr/share/rhts/lib/rhts-make.include - -$(METADATA): Makefile - @echo "Owner: Martin Cermak " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: max-open-files-1024-WARNING" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 15m" >> $(METADATA) - @echo "RunFor: bind" >> $(METADATA) - @echo "Requires: bind bind-chroot bind-utils redhat-lsb" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 663112" >> $(METADATA) - @echo "RhtsRequires: library(bind/bind-setup)" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/Regression/max-open-files-1024-WARNING/PURPOSE b/Regression/max-open-files-1024-WARNING/PURPOSE deleted file mode 100644 index 220bb55..0000000 --- a/Regression/max-open-files-1024-WARNING/PURPOSE +++ /dev/null @@ -1,5 +0,0 @@ -PURPOSE of /CoreOS/bind/Regression/max-open-files-1024-WARNING -Description: max-open-files-1024-WARNING -Author: Martin Cermak -Bug summary: max open files (1024) WARNING -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=663112 diff --git a/Regression/max-open-files-1024-WARNING/main.fmf b/Regression/max-open-files-1024-WARNING/main.fmf deleted file mode 100644 index 38a712e..0000000 --- a/Regression/max-open-files-1024-WARNING/main.fmf +++ /dev/null @@ -1,28 +0,0 @@ -summary: max-open-files-1024-WARNING -description: | - Bug summary: max open files (1024) WARNING - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=663112 -contact: Petr Sklenar -component: -- bind -test: ./runtest.sh -require: -- bind -- bind-chroot -- bind-utils -- redhat-lsb -- library(bind/bind-setup) -duration: 15m -enabled: true -tag: -- TIPfail_infra -- TIPpass -- Tier1 -- rhel6 -- syslog -tier: '6' -relevancy: | - distro = rhel-3, rhel-4, rhel-5: False -extra-summary: /CoreOS/bind/Regression/max-open-files-1024-WARNING -extra-task: /CoreOS/bind/Regression/max-open-files-1024-WARNING -extra-nitrate: TC#0126571 diff --git a/Regression/max-open-files-1024-WARNING/runtest.sh b/Regression/max-open-files-1024-WARNING/runtest.sh deleted file mode 100755 index c0b4ce6..0000000 --- a/Regression/max-open-files-1024-WARNING/runtest.sh +++ /dev/null @@ -1,64 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/bind/Regression/max-open-files-1024-WARNING -# Description: max-open-files-1024-WARNING -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2011 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -# Include rhts environment -. /usr/bin/rhts-environment.sh -. /usr/lib/beakerlib/beakerlib.sh -. /usr/share/beakerlib/beakerlib.sh - -PACKAGE="bind" - -rlJournalStart - rlPhaseStartSetup - rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - - rlRun "rlImport bind/bind-setup" - #rlRun "wget --quiet http://nest.test.redhat.com/mnt/qa/scratch/mcermak/bind-setup.tar.gz && tar xvzf bind-setup.tar.gz > /dev/null && . bind-setup/bind-setup.sh" 0 "Imported bind-setup functions." - - bsBindSetupStart - bsBindSetupDone - rlPhaseEnd - - rlPhaseStartTest - rlRun "cp /var/log/messages log1" - rlRun "service named restart" - rlRun "cp /var/log/messages log2" - rlRun "diff log1 log2 | tee diff.txt" - # - rlRun "grep 'max open files.*is smaller than max sockets' diff.txt" 1 - # - rlPhaseEnd - - rlPhaseStartCleanup - bsBindSetupCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/Regression/named-allocates-new-memory-on-each-reload/Makefile b/Regression/named-allocates-new-memory-on-each-reload/Makefile deleted file mode 100644 index 47d28ff..0000000 --- a/Regression/named-allocates-new-memory-on-each-reload/Makefile +++ /dev/null @@ -1,65 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/bind/Regression/named-allocates-new-memory-on-each-reload -# Description: Test for BZ#1790879 (named allocates new memory on each reload) -# Author: Robin Hack -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2020 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/bind/Regression/named-allocates-new-memory-on-each-reload -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: Robin Hack " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for BZ#1790879 (named allocates new memory on each reload)" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 20m" >> $(METADATA) - @echo "RunFor: bind" >> $(METADATA) - @echo "Requires: bind bind-chroot bind-utils redhat-lsb" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2+" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 1790879" >> $(METADATA) - @echo "Releases: -RHEL4 -RHELClient5 -RHELServer5 -RHEL6 -RHEL7" >> $(METADATA) - @echo "RhtsRequires: library(bind/bind-setup)" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/Regression/named-allocates-new-memory-on-each-reload/PURPOSE b/Regression/named-allocates-new-memory-on-each-reload/PURPOSE deleted file mode 100644 index 4f21ee4..0000000 --- a/Regression/named-allocates-new-memory-on-each-reload/PURPOSE +++ /dev/null @@ -1,5 +0,0 @@ -PURPOSE of /CoreOS/bind/Regression/named-allocates-new-memory-on-each-reload -Description: Test for BZ#1790879 (named allocates new memory on each reload) -Author: Robin Hack -Bug summary: named allocates new memory on each reload -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1790879 diff --git a/Regression/named-allocates-new-memory-on-each-reload/main.fmf b/Regression/named-allocates-new-memory-on-each-reload/main.fmf deleted file mode 100644 index f25784b..0000000 --- a/Regression/named-allocates-new-memory-on-each-reload/main.fmf +++ /dev/null @@ -1,28 +0,0 @@ -summary: Test for BZ#1790879 (named allocates new memory on each reload) -description: | - Bug summary: named allocates new memory on each reload - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1790879 -contact: None -component: -- bind -test: ./runtest.sh -require: -- bind -- bind-chroot -- bind-utils -- redhat-lsb -- library(bind/bind-setup) -duration: 20m -enabled: true -tag: -- NoRHEL4 -- NoRHEL5 -- NoRHEL6 -- NoRHEL7 -- TIPpass -- TIPpass_infra -relevancy: | - distro = rhel-4, rhel-5, rhel-6, rhel-7: False -extra-summary: /CoreOS/bind/Regression/named-allocates-new-memory-on-each-reload -extra-task: /CoreOS/bind/Regression/named-allocates-new-memory-on-each-reload -extra-nitrate: TC#0605468 diff --git a/Regression/named-allocates-new-memory-on-each-reload/runtest.sh b/Regression/named-allocates-new-memory-on-each-reload/runtest.sh deleted file mode 100755 index d890879..0000000 --- a/Regression/named-allocates-new-memory-on-each-reload/runtest.sh +++ /dev/null @@ -1,74 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/bind/Regression/named-allocates-new-memory-on-each-reload -# Description: Test for BZ#1790879 (named allocates new memory on each reload) -# Author: Robin Hack -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2020 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/bin/rhts-environment.sh || exit 1 -. /usr/share/beakerlib/beakerlib.sh || exit 1 - -PACKAGE="bind" - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm $PACKAGE - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - - rlRun "rlImport bind/bind-setup" - bsBindSetupStart - bsBindSetupDone - rlPhaseEnd - - rlPhaseStartTest - rlRun "systemctl restart named" - - # number of files should not grow so we are ok with start like that - pmap -x $(pidof named) > bind_mem_map - - declare -i GIP_FILES - declare -i GIP_FILES_REPEAT - - GIP_FILES=$(grep -c "\.mmdb" bind_mem_map) - rndc reload - - for ((p=0; p < 10; ++p)); do - pmap -x $(pidof named) > bind_mem_map - rndc reload - - GIP_FILES_REPEAT=$(grep -c "\.mmdb" bind_mem_map) - rlLogInfo "Mapped files: $GIP_FILES_REPEAT" - rlAssertEquals "Should be same" "$GIP_FILES" "$GIP_FILES_REPEAT" - done - - rlPhaseEnd - - rlPhaseStartCleanup - bsBindSetupCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/Regression/nslookup-fails-against-authoritative-dns/Makefile b/Regression/nslookup-fails-against-authoritative-dns/Makefile deleted file mode 100644 index 358299c..0000000 --- a/Regression/nslookup-fails-against-authoritative-dns/Makefile +++ /dev/null @@ -1,65 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/bind/Regression/nslookup-fails-against-authoritative-dns -# Description: nslookup-fails-against-authoritative-dns -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2011 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -export TEST=/CoreOS/bind/Regression/nslookup-fails-against-authoritative-dns -export TESTVERSION=1.0 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE custom.rhel5.conf custom.rhel6.conf - -.PHONY: all install download clean - -run: $(FILES) build - ./runtest.sh - -build: $(BUILT_FILES) - chmod a+x runtest.sh - -clean: - rm -f *~ $(BUILT_FILES) - - -include /usr/share/rhts/lib/rhts-make.include - -$(METADATA): Makefile - @echo "Owner: Martin Cermak " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: nslookup-fails-against-authoritative-dns" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 15m" >> $(METADATA) - @echo "RunFor: bind" >> $(METADATA) - @echo "Requires: bind bind-chroot bind-utils" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 726120" >> $(METADATA) - @echo "RhtsRequires: library(bind/bind-setup)" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/Regression/nslookup-fails-against-authoritative-dns/PURPOSE b/Regression/nslookup-fails-against-authoritative-dns/PURPOSE deleted file mode 100644 index af58f0e..0000000 --- a/Regression/nslookup-fails-against-authoritative-dns/PURPOSE +++ /dev/null @@ -1,5 +0,0 @@ -PURPOSE of /CoreOS/bind/Regression/nslookup-fails-against-authoritative-dns -Description: nslookup-fails-against-authoritative-dns -Author: Martin Cermak -Bug summary: nslookup fails against authoritative dns configured with recursion off -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=726120 diff --git a/Regression/nslookup-fails-against-authoritative-dns/custom.rhel5.conf b/Regression/nslookup-fails-against-authoritative-dns/custom.rhel5.conf deleted file mode 100644 index fcdbfae..0000000 --- a/Regression/nslookup-fails-against-authoritative-dns/custom.rhel5.conf +++ /dev/null @@ -1,43 +0,0 @@ -// -// named.caching-nameserver.conf -// -// Provided by Red Hat caching-nameserver package to configure the -// ISC BIND named(8) DNS server as a caching only nameserver -// (as a localhost DNS resolver only). -// -// See /usr/share/doc/bind*/sample/ for example named configuration files. -// -// DO NOT EDIT THIS FILE - use system-config-bind or an editor -// to create named.conf - edits to this file will be lost on -// caching-nameserver package upgrade. -// -options { - listen-on port 53 { 127.0.0.1; }; - listen-on-v6 port 53 { ::1; }; - directory "/var/named"; - dump-file "/var/named/data/cache_dump.db"; - statistics-file "/var/named/data/named_stats.txt"; - memstatistics-file "/var/named/data/named_mem_stats.txt"; - - // Those options should be used carefully because they disable port - // randomization - // query-source port 53; - // query-source-v6 port 53; - - allow-query { localhost; }; - allow-query-cache { localhost; }; -}; -logging { - channel default_debug { - file "data/named.run"; - severity dynamic; - }; -}; -view localhost_resolver { - match-clients { localhost; }; - match-destinations { localhost; }; - recursion no; - include "/etc/named.rfc1912.zones"; -}; - - diff --git a/Regression/nslookup-fails-against-authoritative-dns/custom.rhel6.conf b/Regression/nslookup-fails-against-authoritative-dns/custom.rhel6.conf deleted file mode 100644 index 06d121f..0000000 --- a/Regression/nslookup-fails-against-authoritative-dns/custom.rhel6.conf +++ /dev/null @@ -1,41 +0,0 @@ -// -// named.conf -// -// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS -// server as a caching only nameserver (as a localhost DNS resolver only). -// -// See /usr/share/doc/bind*/sample/ for example named configuration files. -// - -options { - listen-on port 53 { 127.0.0.1; }; - listen-on-v6 port 53 { ::1; }; - directory "/var/named"; - dump-file "/var/named/data/cache_dump.db"; - statistics-file "/var/named/data/named_stats.txt"; - memstatistics-file "/var/named/data/named_mem_stats.txt"; - allow-query { localhost; }; - recursion no; - - dnssec-enable yes; - dnssec-validation yes; - dnssec-lookaside auto; - - /* Path to ISC DLV key */ - bindkeys-file "/etc/named.iscdlv.key"; -}; - -logging { - channel default_debug { - file "data/named.run"; - severity dynamic; - }; -}; - -zone "." IN { - type hint; - file "named.ca"; -}; - -include "/etc/named.rfc1912.zones"; - diff --git a/Regression/nslookup-fails-against-authoritative-dns/main.fmf b/Regression/nslookup-fails-against-authoritative-dns/main.fmf deleted file mode 100644 index b62d8c1..0000000 --- a/Regression/nslookup-fails-against-authoritative-dns/main.fmf +++ /dev/null @@ -1,25 +0,0 @@ -summary: nslookup-fails-against-authoritative-dns -description: | - Bug summary: nslookup fails against authoritative dns configured with recursion off - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=726120 -contact: Petr Sklenar -component: -- bind -test: ./runtest.sh -require: -- bind -- bind-chroot -- bind-utils -- library(bind/bind-setup) -duration: 15m -enabled: true -tag: -- TIPfail_infra -- TIPpass -- TipWaived5 -- tip_destructive_el8 -relevancy: | - distro = rhel-5 && component = bind97: False -extra-summary: /CoreOS/bind/Regression/nslookup-fails-against-authoritative-dns -extra-task: /CoreOS/bind/Regression/nslookup-fails-against-authoritative-dns -extra-nitrate: TC#0126577 diff --git a/Regression/nslookup-fails-against-authoritative-dns/runtest.sh b/Regression/nslookup-fails-against-authoritative-dns/runtest.sh deleted file mode 100755 index f7bc394..0000000 --- a/Regression/nslookup-fails-against-authoritative-dns/runtest.sh +++ /dev/null @@ -1,69 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/bind/Regression/nslookup-fails-against-authoritative-dns -# Description: nslookup-fails-against-authoritative-dns -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2011 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -# Include rhts environment -. /usr/bin/rhts-environment.sh -. /usr/lib/beakerlib/beakerlib.sh - -rpm -q bind97 && PACKAGE="bind97" || PACKAGE="bind" - -rlJournalStart - rlPhaseStartSetup - rlRun "ORIGPWD=$( pwd )" - rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - rlFileBackup --clean /etc/resolv.conf `readlink -f /etc/resolv.conf` - rlRun "rlImport bind/bind-setup" - - #rlRun "wget --quiet http://nest.test.redhat.com/mnt/qa/scratch/mcermak/bind-setup.tar.gz && tar xvzf bind-setup.tar.gz > /dev/null && . bind-setup/bind-setup.sh" 0 "Imported bind-setup functions." - - if rlIsRHEL 5; then - bsBindSetupStart "$ORIGPWD/custom.rhel5.conf" - else - bsBindSetupStart "$ORIGPWD/custom.rhel6.conf" - fi - bsBindSetupDone - rlPhaseEnd - - rlPhaseStartTest - if rlIsRHEL 5 && rpm -q bind97; then - rlPass 'Bug got a WONTFIX for bind97 on RHEL5 (i.e., current config) - see bz#757706. Skipping test.' - else - # resolv.conf is already backed up ATM (by common functions) - echo "nameserver 127.0.0.1" > /etc/resolv.conf - echo "nameserver 1.1.1.1" >> /etc/resolv.conf - rlRun "nslookup localhost 2>&1 | tee output.txt" - rlRun "grep -q 'no servers could be reached' output.txt" 1 - fi - bsBindSetupCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlFileRestore - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/Regression/working-directory-not-writable-in-chroot/Makefile b/Regression/working-directory-not-writable-in-chroot/Makefile deleted file mode 100644 index f954426..0000000 --- a/Regression/working-directory-not-writable-in-chroot/Makefile +++ /dev/null @@ -1,65 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/bind/Regression/working-directory-not-writable-in-chroot -# Description: working-directory-not-writable-in-chroot -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2011 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -export TEST=/CoreOS/bind/Regression/working-directory-not-writable-in-chroot -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) - chmod a+x runtest.sh - -clean: - rm -f *~ $(BUILT_FILES) - - -include /usr/share/rhts/lib/rhts-make.include - -$(METADATA): Makefile - @echo "Owner: Martin Cermak " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: working-directory-not-writable-in-chroot" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 15m" >> $(METADATA) - @echo "RunFor: bind" >> $(METADATA) - @echo "Requires: bind bind-chroot redhat-lsb bind-utils" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 692758" >> $(METADATA) - @echo "RhtsRequires: library(bind/bind-setup)" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/Regression/working-directory-not-writable-in-chroot/PURPOSE b/Regression/working-directory-not-writable-in-chroot/PURPOSE deleted file mode 100644 index c9022d4..0000000 --- a/Regression/working-directory-not-writable-in-chroot/PURPOSE +++ /dev/null @@ -1,5 +0,0 @@ -PURPOSE of /CoreOS/bind/Regression/working-directory-not-writable-in-chroot -Description: working-directory-not-writable-in-chroot -Author: Martin Cermak -Bug summary: When named is started, "the working directory is not writable" message is reported. -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=692758 diff --git a/Regression/working-directory-not-writable-in-chroot/main.fmf b/Regression/working-directory-not-writable-in-chroot/main.fmf deleted file mode 100644 index e559adf..0000000 --- a/Regression/working-directory-not-writable-in-chroot/main.fmf +++ /dev/null @@ -1,28 +0,0 @@ -summary: working-directory-not-writable-in-chroot -description: | - Bug summary: When named is started, "the working directory is not writable" message is reported. - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=692758 -contact: Petr Sklenar -component: -- bind -test: ./runtest.sh -require: -- bind -- bind-chroot -- redhat-lsb -- bind-utils -- library(bind/bind-setup) -duration: 15m -enabled: true -tag: -- TIPfail_infra -- TIPpass -- Tier1 -- rhel6 -- syslog -tier: '6' -relevancy: | - distro = rhel-3, rhel-4, rhel-5: False -extra-summary: /CoreOS/bind/Regression/working-directory-not-writable-in-chroot -extra-task: /CoreOS/bind/Regression/working-directory-not-writable-in-chroot -extra-nitrate: TC#0126574 diff --git a/Regression/working-directory-not-writable-in-chroot/runtest.sh b/Regression/working-directory-not-writable-in-chroot/runtest.sh deleted file mode 100755 index a8bcaee..0000000 --- a/Regression/working-directory-not-writable-in-chroot/runtest.sh +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/bind/Regression/working-directory-not-writable-in-chroot -# Description: working-directory-not-writable-in-chroot -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2011 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -# Include rhts environment -. /usr/bin/rhts-environment.sh -. /usr/lib/beakerlib/beakerlib.sh -. /usr/share/beakerlib/beakerlib.sh - -PACKAGE="bind" - -rlJournalStart - rlPhaseStartSetup - rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - - rlRun "rlImport bind/bind-setup" - #rlRun "wget --quiet http://nest.test.redhat.com/mnt/qa/scratch/mcermak/bind-setup.tar.gz && tar xvzf bind-setup.tar.gz > /dev/null && . bind-setup/bind-setup.sh" 0 "Imported bind-setup functions." - - bsBindSetupStart - bsBindSetupDone - rlPhaseEnd - - rlPhaseStartTest - rlRun "service named stop" - rlRun "cp /var/log/messages log1" - rlRun "service named start" - rlRun "cp /var/log/messages log2" - rlRun "diff log1 log2 | tee diff.txt" - # - rlRun "grep 'the working directory is not writable' diff.txt" 1 - # - rlPhaseEnd - - rlPhaseStartCleanup - bsBindSetupCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/Regression/zone-transfers-fail-with-particular-zone-setups/Makefile b/Regression/zone-transfers-fail-with-particular-zone-setups/Makefile deleted file mode 100644 index 0f02326..0000000 --- a/Regression/zone-transfers-fail-with-particular-zone-setups/Makefile +++ /dev/null @@ -1,65 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/bind/Regression/zone-transfers-fail-with-particular-zone-setups -# Description: zone-transfers-fail-with-particular-zone-setups -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2012 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -export TEST=/CoreOS/bind/Regression/zone-transfers-fail-with-particular-zone-setups -export TESTVERSION=1.0 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE named.conf reproducer.tar.bz2 - -.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: Martin Cermak " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: zone-transfers-fail-with-particular-zone-setups" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 15m" >> $(METADATA) - @echo "RunFor: bind" >> $(METADATA) - @echo "Requires: bind bind-chroot bind-utils redhat-lsb bzip2" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: yes" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 758873" >> $(METADATA) - @echo "RhtsRequires: library(bind/bind-setup)" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/Regression/zone-transfers-fail-with-particular-zone-setups/PURPOSE b/Regression/zone-transfers-fail-with-particular-zone-setups/PURPOSE deleted file mode 100644 index c7e4803..0000000 --- a/Regression/zone-transfers-fail-with-particular-zone-setups/PURPOSE +++ /dev/null @@ -1,5 +0,0 @@ -PURPOSE of /CoreOS/bind/Regression/zone-transfers-fail-with-particular-zone-setups -Description: zone-transfers-fail-with-particular-zone-setups -Author: Martin Cermak -Bug summary: Zone transfers fail with particular zone setups -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=758873 diff --git a/Regression/zone-transfers-fail-with-particular-zone-setups/main.fmf b/Regression/zone-transfers-fail-with-particular-zone-setups/main.fmf deleted file mode 100644 index e4549f1..0000000 --- a/Regression/zone-transfers-fail-with-particular-zone-setups/main.fmf +++ /dev/null @@ -1,28 +0,0 @@ -summary: zone-transfers-fail-with-particular-zone-setups -description: | - Bug summary: Zone transfers fail with particular zone setups - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=758873 -contact: Petr Sklenar -component: -- bind -test: ./runtest.sh -require: -- bind -- bind-chroot -- bind-utils -- redhat-lsb -- bzip2 -- library(bind/bind-setup) -duration: 15m -enabled: true -tag: -- CI-Tier-1-DONTPASS -- TIPfail_infra -- TIPpass -- TIPpass_FIPS -- TipWaived5 -relevancy: | - distro < rhel-6: False -extra-summary: /CoreOS/bind/Regression/zone-transfers-fail-with-particular-zone-setups -extra-task: /CoreOS/bind/Regression/zone-transfers-fail-with-particular-zone-setups -extra-nitrate: TC#0129476 diff --git a/Regression/zone-transfers-fail-with-particular-zone-setups/named.conf b/Regression/zone-transfers-fail-with-particular-zone-setups/named.conf deleted file mode 100644 index 830e308..0000000 --- a/Regression/zone-transfers-fail-with-particular-zone-setups/named.conf +++ /dev/null @@ -1,26 +0,0 @@ -options { - listen-on port 53 { 127.0.0.1; }; - listen-on-v6 port 53 { ::1; }; - directory "/var/named"; - dump-file "/var/named/data/cache_dump.db"; - statistics-file "/var/named/data/named_stats.txt"; - memstatistics-file "/var/named/data/named_mem_stats.txt"; - - allow-query { localhost; }; - allow-query-cache { localhost; }; - - allow-transfer { any; }; - -}; - -logging { - channel default_debug { - file "data/named.run"; - severity dynamic; - }; -}; - -zone "." { - type master; - file "/var/named/epc.mnc990.mcc311.3gppnetwork.org.zone"; -}; diff --git a/Regression/zone-transfers-fail-with-particular-zone-setups/reproducer.tar.bz2 b/Regression/zone-transfers-fail-with-particular-zone-setups/reproducer.tar.bz2 deleted file mode 100644 index 153c4a2..0000000 Binary files a/Regression/zone-transfers-fail-with-particular-zone-setups/reproducer.tar.bz2 and /dev/null differ diff --git a/Regression/zone-transfers-fail-with-particular-zone-setups/runtest.sh b/Regression/zone-transfers-fail-with-particular-zone-setups/runtest.sh deleted file mode 100755 index 96b1230..0000000 --- a/Regression/zone-transfers-fail-with-particular-zone-setups/runtest.sh +++ /dev/null @@ -1,81 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/bind/Regression/zone-transfers-fail-with-particular-zone-setups -# Description: zone-transfers-fail-with-particular-zone-setups -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2012 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -# Include Beaker environment -. /usr/bin/rhts-environment.sh -. /usr/lib/beakerlib/beakerlib.sh - -rpm -q bind97 && PACKAGE="bind97" || PACKAGE="bind" -ORIGPWD=$( pwd ) - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm $PACKAGE - - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - - rlRun "rlImport bind/bind-setup" - - bsBindSetupStart "$ORIGPWD/named.conf" - rlRun "rm -rf /var/named/include_0804 /var/named/include" - rlRun "rm -rf /var/named/chroot/var/named/include_0804 /var/named/chroot/var/named/include" - rlRun "tar -C /var/named -xmjf ${ORIGPWD}/reproducer.tar.bz2" - rlRun "tar -C /var/named/chroot/var/named -xmjf ${ORIGPWD}/reproducer.tar.bz2" - rlRun "mv /var/named/include_0804 /var/named/include" - rlRun "mv /var/named/chroot/var/named/include_0804 /var/named/chroot/var/named/include" - rlRun "chown -R named:named /var/named/epc.mnc990.mcc311.3gppnetwork.org.zone /var/named/include" - rlRun "chown -R named:named /var/named/chroot/var/named/epc.mnc990.mcc311.3gppnetwork.org.zone /var/named/chroot/var/named/include" - rlRun "restorecon -R /var/named" - bsBindSetupDone - rlPhaseEnd - - rlPhaseStartTest - rlRun "cp /var/log/messages log1.txt" - rlRun "dig @127.0.0.1 . AXFR > /dev/null" - rlRun "sleep 3" - rlRun "cp /var/log/messages log2.txt" - rlRun "diff log1.txt log2.txt > diff.txt" 1 - - rlRun "grep 'zone data: ran out of space' diff.txt" 1 - rlPhaseEnd - - rlPhaseStartCleanup - - rlRun "rm -rf /var/named/include_0804 /var/named/include" - rlRun "rm -rf /var/named/chroot/var/named/include_0804 /var/named/chroot/var/named/include" - rlRun "rm -f /var/named/epc.mnc990.mcc311.3gppnetwork.org.zone" - rlRun "rm -f /var/named/chroot/var/named/epc.mnc990.mcc311.3gppnetwork.org.zone" - - bsBindSetupCleanup - - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/Sanity/CAA-support/Makefile b/Sanity/CAA-support/Makefile deleted file mode 100644 index 1cdddfb..0000000 --- a/Sanity/CAA-support/Makefile +++ /dev/null @@ -1,64 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/bind/Sanity/CAA-support -# Description: sanity testing of CAA support -# Author: Petr Sklenar -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# 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/bind/Sanity/CAA-support -export TESTVERSION=1.2 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE zone.petr.god zone.hi.ho - -.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: Petr Sklenar " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: sanity testing of CAA support" >> $(METADATA) - @echo "Type: Sanity" >> $(METADATA) - @echo "TestTime: 10m" >> $(METADATA) - @echo "RunFor: bind" >> $(METADATA) - @echo "Requires: bind bind-utils" >> $(METADATA) - @echo "RhtsRequires: library(distribution/mcase)" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2+" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Releases: -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/Sanity/CAA-support/PURPOSE b/Sanity/CAA-support/PURPOSE deleted file mode 100644 index c420b0b..0000000 --- a/Sanity/CAA-support/PURPOSE +++ /dev/null @@ -1,3 +0,0 @@ -PURPOSE of /CoreOS/bind/Sanity/CAA-support -Description: sanity testing of CAA support -Author: Petr Sklenar diff --git a/Sanity/CAA-support/main.fmf b/Sanity/CAA-support/main.fmf deleted file mode 100644 index 72748b2..0000000 --- a/Sanity/CAA-support/main.fmf +++ /dev/null @@ -1,25 +0,0 @@ -summary: sanity testing of CAA support -description: '' -contact: Petr Sklenar -component: -- bind -test: ./runtest.sh -require: -- bind -- bind-utils -- library(distribution/mcase) -duration: 10m -enabled: true -tag: -- ExpIgnorePass -- NoRHEL4 -- NoRHEL5 -- TIPfail_infra -- TIPpass -- TipFedora -- notier -relevancy: | - distro = rhel-4, rhel-5: False -extra-summary: /CoreOS/bind/Sanity/CAA-support -extra-task: /CoreOS/bind/Sanity/CAA-support -extra-nitrate: TC#0518206 diff --git a/Sanity/CAA-support/runtest.sh b/Sanity/CAA-support/runtest.sh deleted file mode 100755 index 03cbde8..0000000 --- a/Sanity/CAA-support/runtest.sh +++ /dev/null @@ -1,89 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/bind/Sanity/CAA-support -# Description: sanity testing of CAA support -# Author: Petr Sklenar -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# 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/bin/rhts-environment.sh || exit 1 -. /usr/share/beakerlib/beakerlib.sh || exit 1 - -PACKAGE="bind" - -distribution_mcase__setup() { - rlPhaseStartSetup - rlAssertRpm $PACKAGE - rlFileBackup --clean /var/named/zone.petr.god - rlFileBackup --clean /var/named/zone.hi.ho - rlFileBackup /etc/named.conf - cp zone.petr.god /var/named/zone.petr.god - cp zone.hi.ho /var/named/zone.hi.ho - - cat <> /etc/named.conf -zone "petr.god." IN { - type master; - file "/var/named/zone.petr.god"; -}; - -zone "hi.ho." IN { - type master; - file "/var/named/zone.hi.ho"; -}; -EOT - rlRun "rlServiceStart named" - rlPhaseEnd -} - -distribution_mcase__test() { - rlPhaseStartTest 'petr.god' - rlRun "dig +short @127.0.0.1 caa01.petr.god CAA|grep 'policy'" - rlRun "dig +short @127.0.0.1 caa02.petr.god CAA|grep 'Unknown'" - rlRun "dig +short @127.0.0.1 caa03.petr.god CAA|grep 'tbs'" - rlRun "dig +short @127.0.0.1 caa6.petr.god CAA | wc -l | grep 6" - rlPhaseEnd - - rlPhaseStartTest 'hi.ho' - rlRun "dig +short @127.0.0.1 caa.hi.ho CAA | grep issue" - rlRun "dig +short @127.0.0.1 caa1.hi.ho CAA | grep 'mailto:security at example.com'" - rlRun "dig +short @127.0.0.1 caa2.hi.ho CAA| grep 'http://iodef.example.com/'" - - rlPhaseEnd -} - -distribution_mcase__cleanup() { - rlPhaseStartCleanup - rlFileRestore - rlServiceRestore named - rlPhaseEnd -} - -rlJournalStart - rlPhaseStartSetup init - rlImport "distribution/mcase" - rlPhaseEnd - - distribution_mcase__run -P - -rlJournalPrintText -rlJournalEnd diff --git a/Sanity/CAA-support/zone.hi.ho b/Sanity/CAA-support/zone.hi.ho deleted file mode 100644 index b7f1c7e..0000000 --- a/Sanity/CAA-support/zone.hi.ho +++ /dev/null @@ -1,24 +0,0 @@ -$ORIGIN hi.ho. -@ 1D IN SOA ns1.hi.ho. hostmaster.hi.ho. ( - 2009040114 ; serial - 3H ; refresh - 15 ; retry - 1w ; expire - 3h ; minimum - ) - IN NS ns1.hi.ho. - IN A 1.1.1.1 -ns1 IN A 1.2.3.4 -a IN A 2.2.2.2 -aaaa IN AAAA 3FFE:0B80:0444:0004:0000:0000:0000:0004 -caa IN CAA 0 issue "ca.example.net" -caa1 IN CAA 0 iodef "mailto:security at example.com" -caa2 IN CAA 0 iodef "http://iodef.example.com/" -caa6 CAA 0 policy "policy" -caa6 CAA 128 path "path" -caa6 CAA 128 issuewild "issuewild" -caa6 CAA 128 iodef "iodef" -caa6 CAA 128 tbs "tbs" -caa6 CAA 128 auth "auth" -caa6 CAA 128 aut "auth" - diff --git a/Sanity/CAA-support/zone.petr.god b/Sanity/CAA-support/zone.petr.god deleted file mode 100644 index 0351346..0000000 --- a/Sanity/CAA-support/zone.petr.god +++ /dev/null @@ -1,23 +0,0 @@ -$ORIGIN petr.god. -@ 1D IN SOA ns1.petr.god. hostmaster.petr.god. ( - 2002022401 ; serial - 3H ; refresh - 15 ; retry - 1w ; expire - 3h ; minimum - ) - IN NS ns1.petr.god. ; in the domain - -ns1 IN A 192.168.122.178 -www IN A 192.168.122.123 -ftp IN CNAME www.petr.god. - -caa01 3600 IN CAA 0 issue "ca.petr.god\; policy=ev" -caa02 3600 IN CAA 128 tbs "Unknown" -caa03 3600 IN CAA 128 tbs "" -caa6 CAA 0 policy "policy" -caa6 CAA 128 path "path" -caa6 CAA 128 issuewild "issuewild" -caa6 CAA 128 iodef "iodef" -caa6 CAA 128 tbs "tbs" -caa6 CAA 128 auth "auth" diff --git a/Sanity/Include-new-KSK-2017-as-additional-trust-anchor/Makefile b/Sanity/Include-new-KSK-2017-as-additional-trust-anchor/Makefile deleted file mode 100644 index aea9c14..0000000 --- a/Sanity/Include-new-KSK-2017-as-additional-trust-anchor/Makefile +++ /dev/null @@ -1,64 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/bind/Sanity/Include-new-KSK-2017-as-additional-trust-anchor -# Description: Test for BZ#1452635 (Include new KSK-2017 as additional trust anchor) -# Author: Petr Sklenar -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2017 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/bind/Sanity/Include-new-KSK-2017-as-additional-trust-anchor -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: Petr Sklenar " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for BZ#1452635 (Include new KSK-2017 as additional trust anchor)" >> $(METADATA) - @echo "Type: Sanity" >> $(METADATA) - @echo "TestTime: 5m" >> $(METADATA) - @echo "RunFor: bind" >> $(METADATA) - @echo "Requires: bind" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2+" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 1452635 1458233 1458232 1458231 1458230 1458229 1452639 1452647 1478008" >> $(METADATA) - @echo "Releases: -RHEL4" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/Sanity/Include-new-KSK-2017-as-additional-trust-anchor/PURPOSE b/Sanity/Include-new-KSK-2017-as-additional-trust-anchor/PURPOSE deleted file mode 100644 index 1fce0b8..0000000 --- a/Sanity/Include-new-KSK-2017-as-additional-trust-anchor/PURPOSE +++ /dev/null @@ -1,5 +0,0 @@ -PURPOSE of /CoreOS/bind/Sanity/Include-new-KSK-2017-as-additional-trust-anchor -Description: Test for BZ#1452635 (Include new KSK-2017 as additional trust anchor) -Author: Petr Sklenar -Bug summary: Include new KSK-2017 as additional trust anchor -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1452635 diff --git a/Sanity/Include-new-KSK-2017-as-additional-trust-anchor/main.fmf b/Sanity/Include-new-KSK-2017-as-additional-trust-anchor/main.fmf deleted file mode 100644 index e0f8a53..0000000 --- a/Sanity/Include-new-KSK-2017-as-additional-trust-anchor/main.fmf +++ /dev/null @@ -1,23 +0,0 @@ -summary: Test for BZ#1452635 (Include new KSK-2017 as additional trust anchor) -description: | - Bug summary: Include new KSK-2017 as additional trust anchor - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1452635 -contact: Petr Sklenar -component: -- bind97 -- bind -test: ./runtest.sh -require: -- bind -duration: 5m -enabled: true -tag: -- NoRHEL4 -- TIP_fedora_fail -- TIPfail_infra -- TIPpass -relevancy: |4+ - -extra-summary: /CoreOS/bind/Sanity/Include-new-KSK-2017-as-additional-trust-anchor -extra-task: /CoreOS/bind/Sanity/Include-new-KSK-2017-as-additional-trust-anchor -extra-nitrate: TC#0553311 diff --git a/Sanity/Include-new-KSK-2017-as-additional-trust-anchor/runtest.sh b/Sanity/Include-new-KSK-2017-as-additional-trust-anchor/runtest.sh deleted file mode 100755 index df8a354..0000000 --- a/Sanity/Include-new-KSK-2017-as-additional-trust-anchor/runtest.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/bind/Sanity/Include-new-KSK-2017-as-additional-trust-anchor -# Description: Test for BZ#1452635 (Include new KSK-2017 as additional trust anchor) -# Author: Petr Sklenar -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2017 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/bin/rhts-environment.sh || exit 1 -. /usr/share/beakerlib/beakerlib.sh || exit 1 - -PACKAGE="bind" - -rlJournalStart - rlPhaseStartSetup - rlRun 'rpm -q bind || rpm -q bind97' 0 "Checking for presence of bind or bind97 RPM" - rlPhaseEnd - - rlPhaseStartTest - grep 'RUfhHdY6+cn8HFRm+2hM8AnXGXws9555KrUB5qihylGa8subX2Nn6UwN' /etc/named.root.key - rlAssert0 "keys are updated by 2017 rules in /etc/named.root.key" $? - - if rpm -q bind &>/dev/null; then - if rlIsRHEL '<8'; then - grep '. initial-key 257 3 8 "AwEAAaz/tAm8yTn4Mfeh5eyI96WSVexTBAvkMgJzkKTOiW1vkIbzxeF3 - +/4RgWOq7HrxRixHlFlExOLAJr5emLvN7SWXgnLh4+B5xQlNVz8Og8kv - ArMtNROxVQuCaSnIDdD5LKyWbRd2n9WGe2R8PzgCmr3EgVLrjyBxWezF - 0jLHwVN8efS3rCj/EWgvIWgb9tarpVUDK/b58Da+sqqls3eNbuv7pr+e - oZG+SrDK6nWeL3c6H5Apxz7LjVc1uTIdsIXxuOLYA4/ilBmSVIzuDWfd - RUfhHdY6+cn8HFRm+2hM8AnXGXws9555KrUB5qihylGa8subX2Nn6UwN - R1AkUTV74bU=";' /etc/named.iscdlv.key - rlAssert0 "keys are updated by 2017 rules /etc/named.iscdlv.key" $? - fi - - named-checkconf -p| grep 'AwEAAaz/tAm8yTn4Mfeh5eyI96WSVexTBAvkMgJzkKTOiW1vkIbzxeF3' - rlAssert0 "keys are updated by 2017 rules by named-checkconf" $? - fi - rlPhaseEnd - -rlJournalPrintText -rlJournalEnd diff --git a/Sanity/Master-server-chrooted-reverse-lookup/Makefile b/Sanity/Master-server-chrooted-reverse-lookup/Makefile deleted file mode 100644 index 31b21f1..0000000 --- a/Sanity/Master-server-chrooted-reverse-lookup/Makefile +++ /dev/null @@ -1,63 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/bind/Sanity/Master-server-chrooted-reverse-lookup -# Description: Set up master nameserver, test it. -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2009 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -export TEST=/CoreOS/bind/Sanity/Master-server-chrooted-reverse-lookup -export TESTVERSION=1.0 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE named.conf zonefile - -.PHONY: all install download clean - -run: $(FILES) build - ./runtest.sh - -build: $(BUILT_FILES) - chmod a+x runtest.sh - -clean: - rm -f *~ $(BUILT_FILES) - - -$(METADATA): Makefile - @echo "Owner: Martin Cermak " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Set up master nameserver in chrooted env, test it." >> $(METADATA) - @echo "Type: Sanity" >> $(METADATA) - @echo "TestTime: 5m" >> $(METADATA) - @echo "RunFor: bind" >> $(METADATA) - @echo "Requires: bind" >> $(METADATA) - @echo "Requires: bind-chroot" >> $(METADATA) - @echo "Requires: bind-utils" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "RhtsRequires: library(bind/bind-setup)" >> $(METADATA) - diff --git a/Sanity/Master-server-chrooted-reverse-lookup/PURPOSE b/Sanity/Master-server-chrooted-reverse-lookup/PURPOSE deleted file mode 100644 index 93ce33a..0000000 --- a/Sanity/Master-server-chrooted-reverse-lookup/PURPOSE +++ /dev/null @@ -1,6 +0,0 @@ -PURPOSE of /CoreOS/bind/Sanity/Master-server-chrooted-reverse-lookup -Description: Set up master nameserver, run some reverse queries - This is a very basic sanity test for bind9. - The main purpose for me was to learn how - bind works :-) -Author: Martin Cermak diff --git a/Sanity/Master-server-chrooted-reverse-lookup/main.fmf b/Sanity/Master-server-chrooted-reverse-lookup/main.fmf deleted file mode 100644 index 32f09f2..0000000 --- a/Sanity/Master-server-chrooted-reverse-lookup/main.fmf +++ /dev/null @@ -1,28 +0,0 @@ -summary: Set up master nameserver in chrooted env, test it. -description: |4 - This is a very basic sanity test for bind9. - The main purpose for me was to learn how - bind works :-) - Author: Martin Cermak -contact: Petr Sklenar -component: -- bind -test: ./runtest.sh -require: -- bind -- bind-chroot -- bind-utils -- library(bind/bind-setup) -duration: 5m -enabled: true -tag: -- TIPpass -- broken7.1 -- chroot -- bind-setup -- rhel6 -relevancy: | - distro > rhel-6 && product != rhscl: False -extra-summary: /CoreOS/bind/Sanity/Master-server-chrooted-reverse-lookup -extra-task: /CoreOS/bind/Sanity/Master-server-chrooted-reverse-lookup -extra-nitrate: TC#0126579 diff --git a/Sanity/Master-server-chrooted-reverse-lookup/named.conf b/Sanity/Master-server-chrooted-reverse-lookup/named.conf deleted file mode 100644 index 84eea24..0000000 --- a/Sanity/Master-server-chrooted-reverse-lookup/named.conf +++ /dev/null @@ -1,11 +0,0 @@ -options { - directory "/var/named"; - allow-query { any; }; -}; - -zone "1.0.10.in-addr.arpa" IN { - type master; - file ".rr.zone"; - allow-update { none; }; -}; - diff --git a/Sanity/Master-server-chrooted-reverse-lookup/runtest.sh b/Sanity/Master-server-chrooted-reverse-lookup/runtest.sh deleted file mode 100755 index f06285c..0000000 --- a/Sanity/Master-server-chrooted-reverse-lookup/runtest.sh +++ /dev/null @@ -1,98 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/bind/Sanity/Master-server-chrooted-reverse-lookup -# Description: Set up master nameserver, test it. -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2009 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -# Include rhts environment -#set -x -. /usr/lib/beakerlib/beakerlib.sh -. /usr/share/beakerlib/beakerlib.sh || exit 1 - -# Some heplful functions -randomString () { - TEMPSTR=`date +%c%N | md5sum | awk '{print $1}'` - echo ${TEMPSTR:0:8} - unset TEMPSTR -} - -randomNo () { - echo $[ $RANDOM / 256 + 1 ] -} - -randomSerial () { - date +%N -} - -# Variable declarations -SERIAL=`randomSerial` -NO1=`randomNo` -NO2=`randomNo` -NO3=`randomNo` -ORIGPWD=`pwd` - -# The test -rlJournalStart - rlPhaseStartSetup - rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - - rlRun "rlImport bind/bind-setup" - #rlRun "wget --quiet http://nest.test.redhat.com/mnt/qa/scratch/mcermak/bind-setup.tar.gz && tar xvzf bind-setup.tar.gz > /dev/null && . bind-setup/bind-setup.sh" 0 "Imported bind-setup functions." - - bsBindSetupStart "$ORIGPWD/named.conf" "on" - - rlRun "TDOMAIN=`randomString`.cz" - rlRun "TZONEFILE=$ROOTDIR/var/named/$TDOMAIN.rr.zone" - rlRun "sed -i \"s//$TDOMAIN/g\" /etc/named.conf" - - # zonefile - rlRun "cp $ORIGPWD/zonefile $TZONEFILE" - rlRun "chmod a+r $TZONEFILE" - rlRun "sed -i \"s//$TDOMAIN/g\" $TZONEFILE" - rlRun "sed -i \"s//$SERIAL/g\" $TZONEFILE" - rlRun "sed -i \"s//$NO1/g\" $TZONEFILE" - rlRun "sed -i \"s//$NO2/g\" $TZONEFILE" - rlRun "sed -i \"s//$NO3/g\" $TZONEFILE" - if rlIsRHEL 5; then - rlRun "cp /etc/named.conf $ROOTDIR/etc/named.conf" - fi - bsBindSetupDone chroot - rlPhaseEnd - - rlPhaseStartTest - # perform tests - rlRun "dig @localhost -x 10.0.1.$NO1 +short | grep \"^alice.$TDOMAIN.$\"" - rlRun "dig @localhost -x 10.0.1.$NO2 +short | grep \"^betty.$TDOMAIN.$\"" - rlRun "dig @localhost -x 10.0.1.$NO3 +short | grep \"^charlie.$TDOMAIN.$\"" - rlPhaseEnd - - rlPhaseStartCleanup - bsBindSetupCleanup chroot - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlRun "rm -rf $TZONEFILE" - rlPhaseEnd -rlJournalEnd diff --git a/Sanity/Master-server-chrooted-reverse-lookup/zonefile b/Sanity/Master-server-chrooted-reverse-lookup/zonefile deleted file mode 100644 index c2c642f..0000000 --- a/Sanity/Master-server-chrooted-reverse-lookup/zonefile +++ /dev/null @@ -1,16 +0,0 @@ -$ORIGIN 1.0.10.in-addr.arpa. -$TTL 86400 -@ IN SOA dns1.. hostmaster.. ( - ; serial - 21600 ; refresh after 6 hours - 3600 ; retry after 1 hour - 604800 ; expire after 1 week - 86400 ) ; minimum TTL of 1 day - - IN NS dns1.. - IN NS dns2.. - - IN PTR alice.. - IN PTR betty.. - IN PTR charlie.. - diff --git a/Sanity/Master-server-chrooted/Makefile b/Sanity/Master-server-chrooted/Makefile deleted file mode 100644 index 04f36e6..0000000 --- a/Sanity/Master-server-chrooted/Makefile +++ /dev/null @@ -1,60 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/tests/Sanity/Master-server-chrooted -# Description: Run basic empty named service and try to resolve localhost on it -# Author: Petr Mensik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2018 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/tests/Sanity/Master-server-chrooted -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) - - -$(METADATA): Makefile - @echo "Owner: Petr Mensik " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Run basic empty named-chroot service and try to resolve localhost on it" >> $(METADATA) - @echo "Type: Sanity" >> $(METADATA) - @echo "TestTime: 5m" >> $(METADATA) - @echo "RunFor: bind" >> $(METADATA) - @echo "Requires: bind bind-utils bind-chroot bind-sdb-chroot" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2+" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Releases: -RHEL4 -RHELClient5 -RHELServer5 -RHEL6" >> $(METADATA) - diff --git a/Sanity/Master-server-chrooted/PURPOSE b/Sanity/Master-server-chrooted/PURPOSE deleted file mode 100644 index 1d01992..0000000 --- a/Sanity/Master-server-chrooted/PURPOSE +++ /dev/null @@ -1,3 +0,0 @@ -PURPOSE of /CoreOS/tests/Sanity/Master-server-chrooted -Description: Run basic empty named-chroot service and try to resolve localhost on it -Author: Petr Mensik diff --git a/Sanity/Master-server-chrooted/main.fmf b/Sanity/Master-server-chrooted/main.fmf deleted file mode 100644 index a9e5aec..0000000 --- a/Sanity/Master-server-chrooted/main.fmf +++ /dev/null @@ -1,14 +0,0 @@ -summary: Run basic empty named-chroot service and try to resolve localhost on it -description: '' -component: -- bind -test: ./runtest.sh -tag: -- chroot -require: -- bind -- bind-utils -- bind-chroot -- bind-sdb-chroot -duration: 5m -extra-task: /CoreOS/tests/Sanity/Master-server-chrooted diff --git a/Sanity/Master-server-chrooted/named.conf b/Sanity/Master-server-chrooted/named.conf deleted file mode 100644 index e477af9..0000000 --- a/Sanity/Master-server-chrooted/named.conf +++ /dev/null @@ -1,11 +0,0 @@ -options { - directory "/var/named"; - allow-query { any; }; -}; - -zone "" IN { - type master; - file ".zone"; - allow-update { none; }; -}; - diff --git a/Sanity/Master-server-chrooted/runtest.sh b/Sanity/Master-server-chrooted/runtest.sh deleted file mode 100755 index 98867e0..0000000 --- a/Sanity/Master-server-chrooted/runtest.sh +++ /dev/null @@ -1,69 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/tests/Sanity/Master-server-chrooted -# Description: Run basic empty named-chroot service and try to resolve localhost on it -# Author: Petr Mensik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2018 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="bind" - -test_service() -{ - local SERVICE="$1" - rlRun "rlServiceStart $SERVICE" - rlRun "dig @localhost localhost | grep '^localhost'" - rlRun "dig @localhost -x 127.0.0.1 | grep 'PTR[[:space:]]\+localhost.$'" 0 "Reverse address works" - rlRun "rlServiceRestore $SERVICE" -} - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm bind - rlAssertRpm bind-utils - rlAssertRpm bind-chroot - rlPhaseEnd - - rlPhaseStartTest "Testing named" - test_service named - rlPhaseEnd - - rlPhaseStartTest "Testing named-chroot" - test_service named-chroot - rlPhaseEnd - - rlPhaseStartTest "Testing named-sdb-chroot" - if rpm -q bind-sdb-chroot; then - test_service named-sdb-chroot - else - rlLog "bind-sdb-chroot not installed, skipping it" - fi - rlPhaseEnd - - rlPhaseStartCleanup - # noop - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/Sanity/Master-server-chrooted/zonefile b/Sanity/Master-server-chrooted/zonefile deleted file mode 100644 index 198991e..0000000 --- a/Sanity/Master-server-chrooted/zonefile +++ /dev/null @@ -1,27 +0,0 @@ -$ORIGIN . -$TTL 86400 -@ IN SOA dns1.. hostmaster.. ( - ; serial - 21600 ; refresh after 6 hours - 3600 ; retry after 1 hour - 604800 ; expire after 1 week - 86400 ) ; minimum TTL of 1 day - - IN NS dns1.. - IN NS dns2.. - - IN MX 10 mail.. - IN MX 20 mail2.. - - IN A - -server1 IN A -server2 IN A -dns1 IN A -dns2 IN A - -ftp IN CNAME server1 -mail IN CNAME server1 -mail2 IN CNAME server2 -www IN CNAME server2 - diff --git a/Sanity/Master-server-not-chrooted-reverse-lookup/Makefile b/Sanity/Master-server-not-chrooted-reverse-lookup/Makefile deleted file mode 100644 index ccddd20..0000000 --- a/Sanity/Master-server-not-chrooted-reverse-lookup/Makefile +++ /dev/null @@ -1,65 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/bind/Sanity/Master-server-not-chrooted-reverse-lookup -# Description: Set up master nameserver, test it. -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2009 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -export TEST=/CoreOS/bind/Sanity/Master-server-not-chrooted-reverse-lookup -export TESTVERSION=1.0 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE named.conf zonefile - -.PHONY: all install download clean - -run: $(FILES) build - ./runtest.sh - -build: $(BUILT_FILES) - chmod a+x runtest.sh - -clean: - rm -f *~ $(BUILT_FILES) - - -include /usr/share/rhts/lib/rhts-make.include - -$(METADATA): Makefile - @echo "Owner: Martin Cermak " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Set up master nameserver, test it." >> $(METADATA) - @echo "Type: Sanity" >> $(METADATA) - @echo "TestTime: 150m" >> $(METADATA) - @echo "RunFor: bind" >> $(METADATA) - @echo "Requires: bind bind-chroot redhat-lsb" >> $(METADATA) - @echo "Requires: bind-utils" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "RhtsRequires: library(bind/bind-setup)" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/Sanity/Master-server-not-chrooted-reverse-lookup/PURPOSE b/Sanity/Master-server-not-chrooted-reverse-lookup/PURPOSE deleted file mode 100644 index e4d3062..0000000 --- a/Sanity/Master-server-not-chrooted-reverse-lookup/PURPOSE +++ /dev/null @@ -1,6 +0,0 @@ -PURPOSE of /CoreOS/bind/Sanity/Master-server-not-chrooted-reverse-lookup -Description: Set up master nameserver, run some reverse queries - This is a very basic sanity test for bind9. - The main purpose for me was to learn how - bind works :-) -Author: Martin Cermak diff --git a/Sanity/Master-server-not-chrooted-reverse-lookup/main.fmf b/Sanity/Master-server-not-chrooted-reverse-lookup/main.fmf deleted file mode 100644 index 2055277..0000000 --- a/Sanity/Master-server-not-chrooted-reverse-lookup/main.fmf +++ /dev/null @@ -1,28 +0,0 @@ -summary: Set up master nameserver, test it. -description: |4 - This is a very basic sanity test for bind9. - The main purpose for me was to learn how - bind works :-) - Author: Martin Cermak -contact: Petr Sklenar -component: -- bind -test: ./runtest.sh -require: -- bind -- bind-chroot -- redhat-lsb -- bind-utils -- library(bind/bind-setup) -duration: 150m -enabled: true -tag: -- TIPfail_infra -- TIPpass -- Tier1 -- fips -- noExpectedness -tier: '1' -extra-summary: /CoreOS/bind/Sanity/Master-server-not-chrooted-reverse-lookup -extra-task: /CoreOS/bind/Sanity/Master-server-not-chrooted-reverse-lookup -extra-nitrate: TC#0126585 diff --git a/Sanity/Master-server-not-chrooted-reverse-lookup/named.conf b/Sanity/Master-server-not-chrooted-reverse-lookup/named.conf deleted file mode 100644 index 84eea24..0000000 --- a/Sanity/Master-server-not-chrooted-reverse-lookup/named.conf +++ /dev/null @@ -1,11 +0,0 @@ -options { - directory "/var/named"; - allow-query { any; }; -}; - -zone "1.0.10.in-addr.arpa" IN { - type master; - file ".rr.zone"; - allow-update { none; }; -}; - diff --git a/Sanity/Master-server-not-chrooted-reverse-lookup/runtest.sh b/Sanity/Master-server-not-chrooted-reverse-lookup/runtest.sh deleted file mode 100644 index 284f285..0000000 --- a/Sanity/Master-server-not-chrooted-reverse-lookup/runtest.sh +++ /dev/null @@ -1,97 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/bind/Sanity/Master-server-not-chrooted-reverse-lookup -# Description: Set up master nameserver, test it. -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2009 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -# Include rhts environment -#set -x -. /usr/bin/rhts-environment.sh -. /usr/lib/beakerlib/beakerlib.sh -. /usr/share/beakerlib/beakerlib.sh || exit 1 - -# Some heplful functions -randomString () { - TEMPSTR=`date +%c%N | md5sum | awk '{print $1}'` - echo ${TEMPSTR:0:8} - unset TEMPSTR -} - -randomNo () { - echo $[ $RANDOM / 256 + 1 ] -} - -randomSerial () { - date +%N -} - -# Variable declarations -SERIAL=`randomSerial` -NO1=`randomNo` -NO2=`randomNo` -NO3=`randomNo` -ORIGPWD=`pwd` - -# The test -rlJournalStart - rlPhaseStartSetup - rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - - rlRun "rlImport bind/bind-setup" - #rlRun "wget --quiet http://nest.test.redhat.com/mnt/qa/scratch/mcermak/bind-setup.tar.gz && tar xvzf bind-setup.tar.gz > /dev/null && . bind-setup/bind-setup.sh" 0 "Imported bind-setup functions." - - bsBindSetupStart "$ORIGPWD/named.conf" "off" - - rlRun "TDOMAIN=`randomString`.cz" - rlRun "TZONEFILE=$ROOTDIR/var/named/$TDOMAIN.rr.zone" - rlRun "sed -i \"s//$TDOMAIN/g\" /etc/named.conf" - - # zonefile - rlRun "cp $ORIGPWD/zonefile $TZONEFILE" - rlRun "chmod a+r $TZONEFILE" - rlRun "sed -i \"s//$TDOMAIN/g\" $TZONEFILE" - rlRun "sed -i \"s//$SERIAL/g\" $TZONEFILE" - rlRun "sed -i \"s//$NO1/g\" $TZONEFILE" - rlRun "sed -i \"s//$NO2/g\" $TZONEFILE" - rlRun "sed -i \"s//$NO3/g\" $TZONEFILE" - - bsBindSetupDone - rlPhaseEnd - - rlPhaseStartTest - # perform tests - rlRun "dig @localhost -x 10.0.1.$NO1 +short | grep \"^alice.$TDOMAIN.$\"" - rlRun "dig @localhost -x 10.0.1.$NO2 +short | grep \"^betty.$TDOMAIN.$\"" - rlRun "dig @localhost -x 10.0.1.$NO3 +short | grep \"^charlie.$TDOMAIN.$\"" - rlPhaseEnd - - rlPhaseStartCleanup - bsBindSetupCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlRun "rm -rf $TZONEFILE" - rlPhaseEnd -rlJournalEnd diff --git a/Sanity/Master-server-not-chrooted-reverse-lookup/zonefile b/Sanity/Master-server-not-chrooted-reverse-lookup/zonefile deleted file mode 100644 index c2c642f..0000000 --- a/Sanity/Master-server-not-chrooted-reverse-lookup/zonefile +++ /dev/null @@ -1,16 +0,0 @@ -$ORIGIN 1.0.10.in-addr.arpa. -$TTL 86400 -@ IN SOA dns1.. hostmaster.. ( - ; serial - 21600 ; refresh after 6 hours - 3600 ; retry after 1 hour - 604800 ; expire after 1 week - 86400 ) ; minimum TTL of 1 day - - IN NS dns1.. - IN NS dns2.. - - IN PTR alice.. - IN PTR betty.. - IN PTR charlie.. - diff --git a/Sanity/Master-server-not-chrooted/Makefile b/Sanity/Master-server-not-chrooted/Makefile deleted file mode 100644 index 9e9b637..0000000 --- a/Sanity/Master-server-not-chrooted/Makefile +++ /dev/null @@ -1,65 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/bind/Sanity/Master-server-not-chrooted -# Description: Set up master nameserver, test it. -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2009 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -export TEST=/CoreOS/bind/Sanity/Master-server-not-chrooted -export TESTVERSION=1.0 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE named.conf zonefile - -.PHONY: all install download clean - -run: $(FILES) build - ./runtest.sh - -build: $(BUILT_FILES) - chmod a+x runtest.sh - -clean: - rm -f *~ $(BUILT_FILES) - - -include /usr/share/rhts/lib/rhts-make.include - -$(METADATA): Makefile - @echo "Owner: Martin Cermak " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Set up master nameserver in chrooted env, test it." >> $(METADATA) - @echo "Type: Sanity" >> $(METADATA) - @echo "TestTime: 90m" >> $(METADATA) - @echo "RunFor: bind" >> $(METADATA) - @echo "Requires: bind bind-chroot redhat-lsb" >> $(METADATA) - @echo "Requires: bind-utils" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "RhtsRequires: library(bind/bind-setup)" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/Sanity/Master-server-not-chrooted/PURPOSE b/Sanity/Master-server-not-chrooted/PURPOSE deleted file mode 100644 index 92cb7bd..0000000 --- a/Sanity/Master-server-not-chrooted/PURPOSE +++ /dev/null @@ -1,6 +0,0 @@ -PURPOSE of /CoreOS/bind/Sanity/Master-server-not-chrooted -Description: Set up master nameserver in chrooted env, test it. - This is a very basic sanity test for bind9. - The main purpose for me was to learn how - bind works :-) -Author: Martin Cermak diff --git a/Sanity/Master-server-not-chrooted/main.fmf b/Sanity/Master-server-not-chrooted/main.fmf deleted file mode 100644 index 7926e5a..0000000 --- a/Sanity/Master-server-not-chrooted/main.fmf +++ /dev/null @@ -1,29 +0,0 @@ -summary: Set up master nameserver in chrooted env, test it. -description: |4 - This is a very basic sanity test for bind9. - The main purpose for me was to learn how - bind works :-) - Author: Martin Cermak -contact: Petr Sklenar -component: -- bind -test: ./runtest.sh -require: -- bind -- bind-chroot -- redhat-lsb -- bind-utils -- library(bind/bind-setup) -duration: 90m -enabled: true -tag: -- ExpIgnorePass -- TIP_fedora_fail -- TIPfail_infra -- TIPpass -- Tier1 -- fips -tier: '1' -extra-summary: /CoreOS/bind/Sanity/Master-server-not-chrooted -extra-task: /CoreOS/bind/Sanity/Master-server-not-chrooted -extra-nitrate: TC#0126583 diff --git a/Sanity/Master-server-not-chrooted/named.conf b/Sanity/Master-server-not-chrooted/named.conf deleted file mode 100644 index e477af9..0000000 --- a/Sanity/Master-server-not-chrooted/named.conf +++ /dev/null @@ -1,11 +0,0 @@ -options { - directory "/var/named"; - allow-query { any; }; -}; - -zone "" IN { - type master; - file ".zone"; - allow-update { none; }; -}; - diff --git a/Sanity/Master-server-not-chrooted/runtest.sh b/Sanity/Master-server-not-chrooted/runtest.sh deleted file mode 100644 index 3f30750..0000000 --- a/Sanity/Master-server-not-chrooted/runtest.sh +++ /dev/null @@ -1,115 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/bind/Sanity/Master-server-not-chrooted -# Description: Set up master nameserver, test it. -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2009 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -# Include rhts environment -#set -x -. /usr/bin/rhts-environment.sh -. /usr/lib/beakerlib/beakerlib.sh - -# Some heplful functions -randomString () { - TEMPSTR=`date +%c%N | md5sum | awk '{print $1}'` - echo ${TEMPSTR:0:8} - unset TEMPSTR -} - -randomIp () { - echo "192.168.1.`echo $[ $RANDOM / 256 + 1 ]`" -} - -randomSerial () { - date +%N -} - -# Variable declarations -CONF="/etc/named.conf" -IP1=`randomIp` -IP2=`randomIp` -IP3=`randomIp` -IP4=`randomIp` -IP5=`randomIp` -SERIAL=`randomSerial` -ORIGPWD=`pwd` - -# The test -rlJournalStart - rlPhaseStartSetup - rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - - rlRun "rlImport bind/bind-setup" - - bsBindSetupStart "$ORIGPWD/named.conf" "off" - - rlRun "TDOMAIN=`randomString`.cz" - rlRun "TZONEFILE=$ROOTDIR/var/named/$TDOMAIN.zone" - - # set up /etc/named.conf - rlRun "sed -i \"s//$TDOMAIN/g\" $CONF" - - # set up zonefile - rlRun "cp $ORIGPWD/zonefile $TZONEFILE" - rlRun "chmod a+r $TZONEFILE" - rlRun "sed -i \"s//$TDOMAIN/g\" $TZONEFILE" - rlRun "sed -i \"s//$IP1/g\" $TZONEFILE" - rlRun "sed -i \"s//$IP2/g\" $TZONEFILE" - rlRun "sed -i \"s//$IP3/g\" $TZONEFILE" - rlRun "sed -i \"s//$IP4/g\" $TZONEFILE" - rlRun "sed -i \"s//$IP5/g\" $TZONEFILE" - rlRun "sed -i \"s//$SERIAL/g\" $TZONEFILE" - - bsBindSetupDone - rlPhaseEnd - - rlPhaseStartTest - # perform tests - rlRun "dig @localhost $TDOMAIN | grep \"^$TDOMAIN\" | head -n 1 | grep \"$IP1\"" - rlRun "dig @localhost server1.$TDOMAIN | grep \"^server1.$TDOMAIN\" | grep \"$IP2\"" - rlRun "dig @localhost server2.$TDOMAIN | grep \"^server2.$TDOMAIN\" | grep \"$IP3\"" - rlRun "dig @localhost dns1.$TDOMAIN | grep \"^dns1.$TDOMAIN\" | grep \"$IP4\"" - rlRun "dig @localhost dns2.$TDOMAIN | grep \"^dns2.$TDOMAIN\" | grep \"$IP5\"" - rlRun "dig @localhost ftp.$TDOMAIN | grep \"^ftp.$TDOMAIN\" | grep \"server1.$TDOMAIN\"" - rlRun "dig @localhost mail.$TDOMAIN | grep \"^mail.$TDOMAIN\" | grep \"server1.$TDOMAIN\"" - rlRun "dig @localhost mail2.$TDOMAIN | grep \"^mail2.$TDOMAIN\" | grep \"server2.$TDOMAIN\"" - rlRun "dig @localhost www.$TDOMAIN | grep \"^www.$TDOMAIN\" | grep \"server2.$TDOMAIN\"" - - rlPhaseEnd -#for i in `seq 1 8888888888888888`;do echo "ftp$i IN CNAME server1" >> $TZONEFILE ;done -#service named stop -#sleep 1 -#service named start -#####dig @localhost ftp100.f759b6bf.cz -#dig @localhost ftp88888888.$TDOMAIN | grep \"^ftp.$TDOMAIN\" | grep \"server1.$TDOMAIN\"" - - rlPhaseStartCleanup - bsBindSetupCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlRun "rm -rf $TZONEFILE" - rlPhaseEnd -rlJournalEnd diff --git a/Sanity/Master-server-not-chrooted/zonefile b/Sanity/Master-server-not-chrooted/zonefile deleted file mode 100644 index 198991e..0000000 --- a/Sanity/Master-server-not-chrooted/zonefile +++ /dev/null @@ -1,27 +0,0 @@ -$ORIGIN . -$TTL 86400 -@ IN SOA dns1.. hostmaster.. ( - ; serial - 21600 ; refresh after 6 hours - 3600 ; retry after 1 hour - 604800 ; expire after 1 week - 86400 ) ; minimum TTL of 1 day - - IN NS dns1.. - IN NS dns2.. - - IN MX 10 mail.. - IN MX 20 mail2.. - - IN A - -server1 IN A -server2 IN A -dns1 IN A -dns2 IN A - -ftp IN CNAME server1 -mail IN CNAME server1 -mail2 IN CNAME server2 -www IN CNAME server2 - diff --git a/Sanity/bind-dualhost-test-skeleton/Makefile b/Sanity/bind-dualhost-test-skeleton/Makefile deleted file mode 100644 index 00047b1..0000000 --- a/Sanity/bind-dualhost-test-skeleton/Makefile +++ /dev/null @@ -1,66 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/bind/Sanity/bind-dualhost-test-skeleton -# Description: Tests bind -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2010 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -export TEST=/CoreOS/bind/Sanity/bind-dualhost-test-skeleton -export TESTVERSION=1.0 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE named.conf zonefile - -.PHONY: all install download clean - -run: $(FILES) build - ./runtest.sh - -build: $(BUILT_FILES) - chmod a+x runtest.sh - -clean: - rm -f *~ $(BUILT_FILES) - - -include /usr/share/rhts/lib/rhts-make.include - -$(METADATA): Makefile - @echo "Owner: Martin Cermak " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Tests bind" >> $(METADATA) - @echo "Type: Sanity" >> $(METADATA) - @echo "TestTime: 30m" >> $(METADATA) - @echo "RunFor: bind" >> $(METADATA) - @echo "Requires: bind" >> $(METADATA) - @echo "Requires: bind-chroot" >> $(METADATA) - @echo "Requires: bind-utils" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Releases: -RedHatEnterpriseLinux3 -RedHatEnterpriseLinux4 -RedHatEnterpriseLinuxClient5 -RedHatEnterpriseLinuxServer5 -RedHatEnterpriseLinux6" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/Sanity/bind-dualhost-test-skeleton/PURPOSE b/Sanity/bind-dualhost-test-skeleton/PURPOSE deleted file mode 100644 index dbdbdfe..0000000 --- a/Sanity/bind-dualhost-test-skeleton/PURPOSE +++ /dev/null @@ -1,3 +0,0 @@ -PURPOSE of /CoreOS/bind/Sanity/bind-dualhost-test-skeleton -Description: Tests bind -Author: Martin Cermak diff --git a/Sanity/bind-dualhost-test-skeleton/main.fmf b/Sanity/bind-dualhost-test-skeleton/main.fmf deleted file mode 100644 index 0f78963..0000000 --- a/Sanity/bind-dualhost-test-skeleton/main.fmf +++ /dev/null @@ -1,25 +0,0 @@ -summary: Tests bind -description: '' -contact: Petr Sklenar -component: -- bind -test: ./runtest.sh -require: -- bind -- bind-chroot -- bind-utils -duration: 30m -enabled: true -tag: -- NoRHEL3 -- NoRHEL4 -- NoRHEL5 -- NoRHEL6 -- NoTIER -- TIPfail -- notip -relevancy: | - distro = rhel-3, rhel-4, rhel-5, rhel-6, rhel-7: False -extra-summary: /CoreOS/bind/Sanity/bind-dualhost-test-skeleton -extra-task: /CoreOS/bind/Sanity/bind-dualhost-test-skeleton -extra-nitrate: TC#0126581 diff --git a/Sanity/bind-dualhost-test-skeleton/named.conf b/Sanity/bind-dualhost-test-skeleton/named.conf deleted file mode 100644 index e477af9..0000000 --- a/Sanity/bind-dualhost-test-skeleton/named.conf +++ /dev/null @@ -1,11 +0,0 @@ -options { - directory "/var/named"; - allow-query { any; }; -}; - -zone "" IN { - type master; - file ".zone"; - allow-update { none; }; -}; - diff --git a/Sanity/bind-dualhost-test-skeleton/runtest.sh b/Sanity/bind-dualhost-test-skeleton/runtest.sh deleted file mode 100644 index f434a69..0000000 --- a/Sanity/bind-dualhost-test-skeleton/runtest.sh +++ /dev/null @@ -1,135 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/bind/Sanity/bind-dualhost-test-skeleton -# Description: Tests bind -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2010 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -# Include rhts environment -. /usr/bin/rhts-environment.sh -. /usr/lib/beakerlib/beakerlib.sh - -# now the ROOTDIR should get defined -. /etc/sysconfig/named - - echo "ROOTDIR=$ROOTDIR" - - exit - - -ORIGPWD=`pwd` -PACKAGE="bind" -CNF="$ROOTDIR/etc/named.conf" -TDOMAIN="myexdomain.cz" -IP1=192.168.66.1 -IP2=192.168.66.2 -IP3=192.168.66.3 -IP4=192.168.66.4 -IP5=192.168.66.5 - -# set client & server manually if debugging -SERVERS="dell-pe1750-1.rhts.eng.rdu.redhat.com" -CLIENTS="dell-pe1850-02.rhts.eng.bos.redhat.com" - -Server() { - rlPhaseStartTest Server - # server setup goes here - rlLog "ROOTDIR=$ROOTDIR" - - # backup configs - rlFileBackup $CNF - rlFileBackup --clean $CNF `readlink -f $CNF` - rlFileBackup --clean /etc/resolv.conf `readlink -f /etc/resolv.conf` - - # zonefile - rlRun "TZONEFILE=$ROOTDIR/var/named/$TDOMAIN.zone" - - # set up named.conf - rlRun "cp $ORIGPWD/named.conf $CNF" - rlRun "chmod a+r $CNF" - rlRun "sed -i \"s//$TDOMAIN/g\" $CNF" - - # set up zonefile - rlRun "cp zonefile $TZONEFILE" - rlRun "chmod a+r $TZONEFILE" - rlRun "sed -i \"s//$TDOMAIN/g\" $TZONEFILE" - rlRun "sed -i \"s//$IP1/g\" $TZONEFILE" - rlRun "sed -i \"s//$IP2/g\" $TZONEFILE" - rlRun "sed -i \"s//$IP3/g\" $TZONEFILE" - rlRun "sed -i \"s//$IP4/g\" $TZONEFILE" - rlRun "sed -i \"s//$IP5/g\" $TZONEFILE" - rlRun "sed -i \"s//$SERIAL/g\" $TZONEFILE" - - # (re)start the server - rlServiceStart "named" - - rlRun "rhts-sync-set -s READY" 0 "Server ready" - rlRun "rhts-sync-block -s DONE $CLIENTS" 0 "Waiting for the client" - - # clean up - rlFileRestore - rlRun "rm -rf $TZONEFILE" - - # (re)start the server - rlServiceStart "named" - - rlPhaseEnd -} - -Client() { - rlPhaseStartTest Client - rlRun "rhts-sync-block -s READY $SERVERS" 0 "Waiting for the server" - # client action goes here - rlRun "rhts-sync-set -s DONE" 0 "Client done" - rlPhaseEnd -} - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm $PACKAGE - rlLog "Server: $SERVERS" - rlLog "Client: $CLIENTS" - rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - - rlAssertRpm bind - rlAssertRpm bind-chroot - rlAssertRpm bind-utils - - rlPhaseEnd - - if echo $SERVERS | grep -q $HOSTNAME ; then - Server - elif echo $CLIENTS | grep -q $HOSTNAME ; then - Client - else - rlReport "Stray" "FAIL" - fi - - rlPhaseStartCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/Sanity/bind-dualhost-test-skeleton/zonefile b/Sanity/bind-dualhost-test-skeleton/zonefile deleted file mode 100644 index 198991e..0000000 --- a/Sanity/bind-dualhost-test-skeleton/zonefile +++ /dev/null @@ -1,27 +0,0 @@ -$ORIGIN . -$TTL 86400 -@ IN SOA dns1.. hostmaster.. ( - ; serial - 21600 ; refresh after 6 hours - 3600 ; retry after 1 hour - 604800 ; expire after 1 week - 86400 ) ; minimum TTL of 1 day - - IN NS dns1.. - IN NS dns2.. - - IN MX 10 mail.. - IN MX 20 mail2.. - - IN A - -server1 IN A -server2 IN A -dns1 IN A -dns2 IN A - -ftp IN CNAME server1 -mail IN CNAME server1 -mail2 IN CNAME server2 -www IN CNAME server2 - diff --git a/Sanity/bind-sdb-mysql/Makefile b/Sanity/bind-sdb-mysql/Makefile deleted file mode 100644 index 00f33ee..0000000 --- a/Sanity/bind-sdb-mysql/Makefile +++ /dev/null @@ -1,64 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/bind/Regression/bz533229-bind-sdb-postgresql -# Description: bz533229-bind-sdb-postgresql -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2011 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -export TEST=/CoreOS/bind/Sanity/bind-sdb-mysql -export TESTVERSION=1.0 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE dlz.data dlz.schema - -.PHONY: all install download clean - -run: $(FILES) build - ./runtest.sh - -build: $(BUILT_FILES) - chmod a+x runtest.sh - -clean: - rm -f *~ $(BUILT_FILES) - - -include $(realpath /usr/share/rhts/lib/rhts-make.include) - -$(METADATA): Makefile - @echo "Owner: Petr Sklenar " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: bind-sdb-mysql" >> $(METADATA) - @echo "Type: Sanity" >> $(METADATA) - @echo "TestTime: 15m" >> $(METADATA) - @echo "RunFor: bind" >> $(METADATA) - @echo "Requires: bind bind-sdb bind-utils mariadb-server redhat-lsb" >> $(METADATA) - # Only built on Rawhide, Fedora - @echo "Requires: bind-dlz-mysql" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Releases: -RedHatEnterpriseLinux3 -RedHatEnterpriseLinux4" >> $(METADATA) diff --git a/Sanity/bind-sdb-mysql/PURPOSE b/Sanity/bind-sdb-mysql/PURPOSE deleted file mode 100644 index c52432e..0000000 --- a/Sanity/bind-sdb-mysql/PURPOSE +++ /dev/null @@ -1,18 +0,0 @@ -PURPOSE of /CoreOS/bind/Regression/bz533229-bind-sdb-postgresql -Description: bz533229-bind-sdb-postgresql -Author: Martin Cermak -Bug summary: bind-sdb fails startup if db not running -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=533229 - - - -NEW: you can use /CoreOS/bind/Regression/bz533229-bind-sdb-postgresql to set up -the situation. Just the restart stuff was left for manual testing: - -You have to terminate the script before the cleanup phase. chkconfig postgresql -and named services on, restart and perform the testing with dig manually. - -/CoreOS/bind/Regression/bz533229-bind-sdb-postgresql is rather a sanity test -for bind-sdb itself. - - diff --git a/Sanity/bind-sdb-mysql/dlz.data b/Sanity/bind-sdb-mysql/dlz.data deleted file mode 100644 index cef3e13..0000000 --- a/Sanity/bind-sdb-mysql/dlz.data +++ /dev/null @@ -1,12 +0,0 @@ -use BindDB; -INSERT INTO `records` (`id`, `zone`, `ttl`, `type`, `host`, `mx_priority`, `data`, `primary_ns`, `resp_contact`, `serial`, `refresh`, `retry`, `expire`, `minimum`) VALUES -(1, 'example.com', 86400, 'SOA', '@', NULL, NULL, 'ns1.example.com.', 'info.example.com.', 2011043001, 10800, 7200, 604800, 86400), -(2, 'example.com', 86400, 'NS', '@', NULL, 'ns1.example.com.', NULL, NULL, NULL, NULL, NULL, NULL, NULL), -(3, 'example.com', 86400, 'NS', '@', NULL, 'ns2.example.com.', NULL, NULL, NULL, NULL, NULL, NULL, NULL), -(4, 'example.com', 86400, 'MX', '@', 10, 'mail.example.com.', NULL, NULL, NULL, NULL, NULL, NULL, NULL), -(5, 'example.com', 86400, 'A', '@', NULL, '192.168.0.2', NULL, NULL, NULL, NULL, NULL, NULL, NULL), -(6, 'example.com', 86400, 'CNAME', 'www', NULL, '@', NULL, NULL, NULL, NULL, NULL, NULL, NULL), -(7, 'example.com', 86400, 'A', 'ns1', NULL, '192.168.0.111', NULL, NULL, NULL, NULL, NULL, NULL, NULL), -(8, 'example.com', 86400, 'A', 'ns2', NULL, '192.168.0.222', NULL, NULL, NULL, NULL, NULL, NULL, NULL), -(9, 'example.com', 86400, 'A', 'mail', NULL, '192.168.0.3', NULL, NULL, NULL, NULL, NULL, NULL, NULL), -(10, 'example.com', 86400, 'TXT', '@', NULL, 'v=spf1 ip:192.168.0.3 ~all', NULL, NULL, NULL, NULL, NULL, NULL, NULL) diff --git a/Sanity/bind-sdb-mysql/dlz.schema b/Sanity/bind-sdb-mysql/dlz.schema deleted file mode 100644 index f20b59e..0000000 --- a/Sanity/bind-sdb-mysql/dlz.schema +++ /dev/null @@ -1,30 +0,0 @@ -CREATE DATABASE `BindDB` DEFAULT CHARACTER SET latin1; -USE `BindDB`; - -CREATE TABLE IF NOT EXISTS `records` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `zone` varchar(255) NOT NULL, - `ttl` int(11) NOT NULL DEFAULT '86400', - `type` varchar(255) NOT NULL, - `host` varchar(255) NOT NULL DEFAULT '@', - `mx_priority` int(11) DEFAULT NULL, - `data` text, - `primary_ns` varchar(255) DEFAULT NULL, - `resp_contact` varchar(255) DEFAULT NULL, - `serial` bigint(20) DEFAULT NULL, - `refresh` int(11) DEFAULT NULL, - `retry` int(11) DEFAULT NULL, - `expire` int(11) DEFAULT NULL, - `minimum` int(11) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `type` (`type`), - KEY `host` (`host`), - KEY `zone` (`zone`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; - -CREATE TABLE IF NOT EXISTS `xfr` ( - `zone` varchar(255) NOT NULL, - `client` varchar(255) NOT NULL, - KEY `zone` (`zone`), - KEY `client` (`client`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; diff --git a/Sanity/bind-sdb-mysql/main.fmf b/Sanity/bind-sdb-mysql/main.fmf deleted file mode 100644 index 6e48f11..0000000 --- a/Sanity/bind-sdb-mysql/main.fmf +++ /dev/null @@ -1,44 +0,0 @@ -summary: bind-sdb-mysql -description: | - Bug summary: bind-sdb fails startup if db not running - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=533229 - - - - NEW: you can use /CoreOS/bind/Regression/bz533229-bind-sdb-postgresql to set up - the situation. Just the restart stuff was left for manual testing: - - You have to terminate the script before the cleanup phase. chkconfig postgresql - and named services on, restart and perform the testing with dig manually. - - /CoreOS/bind/Regression/bz533229-bind-sdb-postgresql is rather a sanity test - for bind-sdb itself. - - -contact: Petr Sklenar -component: -- bind -test: ./runtest.sh -require: -- bind -- bind-sdb -- bind-utils -- mariadb-server -- redhat-lsb -- bind-dlz-mysql -duration: 15m -enabled: true -tag: -- NoRHEL3 -- NoRHEL4 -- TIP_fedora_pass -- TIPfail_infra -- TIPpass -- Tier1 -tier: '1' -relevancy: | - distro = rhel-3, rhel-4, rhel-5: False - arch = ppc64, ppc64le, i386: False -extra-summary: /CoreOS/bind/Sanity/bind-sdb-mysql -extra-task: /CoreOS/bind/Sanity/bind-sdb-mysql -extra-nitrate: TC#0126578 diff --git a/Sanity/bind-sdb-mysql/runtest.sh b/Sanity/bind-sdb-mysql/runtest.sh deleted file mode 100755 index e783e28..0000000 --- a/Sanity/bind-sdb-mysql/runtest.sh +++ /dev/null @@ -1,153 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/bind/Regression/bz533229-bind-sdb-postgresql -# Description: bz533229-bind-sdb-postgresql -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2011 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -DB_USER="named" -DB_PASSWORD="$DB_USER-secret" -NAMED_SERVICE="named-sdb" - -# Include rhts environment -. /usr/lib/beakerlib/beakerlib.sh - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm 'bind' - rlAssertRpm 'bind-utils' - if rpm -q mariadb-server; then - MYSQL_SERVICE=mariadb - elif rpm -q community-mysql-server; then - MYSQL_SERVICE=mysql - else - MYSQL_SERVICE=mysql - fi - rlRun "rpm -q mariadb{-server,} community-mysql{,-server}" 0-2 "Print mysql versions" - rlRun "systemctl cat $MYSQL_SERVICE | cat" - rlFileBackup --clean "/var/lib/mysql" "/etc/rndc.key" "/etc/named.conf" "/etc/sysconfig/named" - rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory" - rlRun "chmod a+rx $TmpDir" - if rlIsRHEL "<7";then - rlRun "echo 'ENABLE_SDB=yes' > /etc/sysconfig/named" - NAMED_SERVICE=named - BIND_DATABASE="mysql" - elif [ -x /usr/lib64/bind/dlz_mysql_dynamic.so ]; then - NAMED_SERVICE=named - BIND_DATABASE="dlopen /usr/lib64/bind/dlz_mysql_dynamic.so" - # FIXME: this passes only with setenforce 0, does not work with SELinux! - ##============= named_t ============== - #allow named_t mysqld_t:unix_stream_socket connectto; - #allow named_t mysqld_var_run_t:sock_file write; - # - else - rlAssertRpm 'bind-sdb' - NAMED_SERVICE=named-sdb - BIND_DATABASE="mysql" - fi - rlRun "ORIG_ENFORCING=$(getenforce)" - rlRun "setenforce 0" - rlRun "ORIGPWD=`pwd`" - rlRun "rlServiceStart $MYSQL_SERVICE" - rlRun "mysql < dlz.schema" 0,1 - rlRun "echo \"CREATE USER '${DB_USER}'@'localhost' IDENTIFIED BY '${DB_PASSWORD}';\" | mysql" 0,1 "Create DB user" - rlRun "echo \"GRANT ALL PRIVILEGES ON BindDB.* TO '${DB_USER}'@'localhost';\" | mysql" 0,1 "Give DB user access rights" - rlRun "mysql --user=\"$DB_USER\" --password=\"${DB_PASSWORD}\" BindDB < dlz.data" 0 - rlRun "pushd $TmpDir" - rlPhaseEnd - - rlPhaseStartTest - rlRun "rlServiceStart $NAMED_SERVICE" - # some visual checking of the table contents - rlRun "echo 'SELECT * FROM records;' | mysql --user=\"$DB_USER\" --password=\"${DB_PASSWORD}\" BindDB" - - # configure bind - rlRun "rlServiceStop $NAMED_SERVICE" - - -cat >> /etc/named.conf < 'SOA' AND type <> 'NS'} - {SELECT ttl, type, data, primary_ns, resp_contact, serial, refresh, retry, expire, minimum FROM records WHERE zone = '\$zone$' AND (type = 'SOA' OR type='NS')} - {SELECT ttl, type, host, mx_priority, IF(type = 'TXT', CONCAT('\"',data,'\"'), data) AS data, resp_contact, serial, refresh, retry, expire, minimum FROM records WHERE zone = '\$zone$' AND type <> 'SOA' AND type <> 'NS'} - {SELECT zone FROM xfr where zone='\$zone$' AND client = '\$client$'}"; - search no; -}; - -zone "example.com." IN { - type master; - dlz "mytest"; - # database "mysql dbname=BindDB user=${DB_USER} pass=${DB_PASSWORD} socket=/var/lib/mysql/mysql.sock"; - # database "pgsql BindDB localhost test test"; - # ^- DB name ^-Table ^-host ^-user ^-password -}; - -EOFD -# Supported parameters: -# dbname= -# port= -# compress= -# ssl= -# space= -# host= -# user= -# pass= -# socket= -# threads= - -# TODO: -# Needs selinux fixing to allow named connecting to mysql -# type=PROCTITLE msg=audit(05/27/21 17:04:46.894:2036) : proctitle=/usr/sbin/named-sdb -u named -c /etc/named.conf -# type=SYSCALL msg=audit(05/27/21 17:04:46.894:2036) : arch=x86_64 syscall=connect success=yes exit=0 a0=0xc a1=0x7f4657941810 a2=0x6e a3=0x0 items=0 ppid=39368 pid=39370 auid=unset uid=named gid=named euid=named suid=named fsuid=named egid=named sgid=named fsgid=named tty=(none) ses=unset comm=isc-worker0000 exe=/usr/sbin/named-sdb subj=system_u:system_r:named_t:s0 key=(null) -# type=AVC msg=audit(05/27/21 17:04:46.894:2036) : avc: denied { connectto } for pid=39370 comm=isc-worker0000 path=/var/lib/mysql/mysql.sock scontext=system_u:system_r:named_t:s0 tcontext=system_u:system_r:mysqld_t:s0 tclass=unix_stream_socket permissive=1 -# type=AVC msg=audit(05/27/21 17:04:46.894:2036) : avc: denied { write } for pid=39370 comm=isc-worker0000 name=mysql.sock dev="vda1" ino=6820019 scontext=system_u:system_r:named_t:s0 tcontext=system_u:object_r:mysqld_var_run_t:s0 tclass=sock_file permissive=1 - - rlServiceStart $NAMED_SERVICE - - # test it all together - for i in 1 2; do - rlRun "dig @localhost ns$i.example.com +short | grep \"192.168.0.[0-9]\+\"" - done - rlLogInfo "Following record is not defined:" - rlRun "dig @localhost mailer.example.com | grep \"status: NXDOMAIN\"" 0 - - [ "$DEBUG" = y ] && PS1="test-debug $PS1" bash -i - rlPhaseEnd - - rlPhaseStartCleanup - rlRun "echo \"DROP USER '${DB_USER}'@'localhost';\" | mysql" 0,1 "Destroy DB user" - rlServiceRestore $NAMED_SERVICE - rlRun "mysqladmin drop --force BindDB" - rlServiceRestore $MYSQL_SERVICE - [ -n "${ORIG_ENFORCING}" ] && rlRun "setenforce ${ORIG_ENFORCING}" - rlFileRestore - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/Sanity/bz1315821-rndc-addzone-delzone/Makefile b/Sanity/bz1315821-rndc-addzone-delzone/Makefile deleted file mode 100644 index 2bc50a6..0000000 --- a/Sanity/bz1315821-rndc-addzone-delzone/Makefile +++ /dev/null @@ -1,65 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/bind/Sanity/bz1315821-rndc-addzone-delzone -# Description: Test for BZ#1315821 (rndc addzone/delzone unusable due to RPM packaging) -# Author: Petr Sklenar -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2018 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/bind/Sanity/bz1315821-rndc-addzone-delzone -export TESTVERSION=1.1 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE named.conf - -.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: Petr Sklenar " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for BZ#1315821 (rndc addzone/delzone unusable due to RPM packaging)" >> $(METADATA) - @echo "Type: Sanity" >> $(METADATA) - @echo "TestTime: 20m" >> $(METADATA) - @echo "RunFor: bind" >> $(METADATA) - @echo "Requires: bind" >> $(METADATA) - @echo "RhtsRequires: library(distribution/mcase)" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2+" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 1315821" >> $(METADATA) - @echo "Releases: -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/Sanity/bz1315821-rndc-addzone-delzone/PURPOSE b/Sanity/bz1315821-rndc-addzone-delzone/PURPOSE deleted file mode 100644 index 8c0c07b..0000000 --- a/Sanity/bz1315821-rndc-addzone-delzone/PURPOSE +++ /dev/null @@ -1,5 +0,0 @@ -PURPOSE of /CoreOS/bind/Sanity/bz1315821-rndc-addzone-delzone -Description: Test for BZ#1315821 (rndc addzone/delzone unusable due to RPM packaging) -Author: Petr Sklenar -Bug summary: rndc addzone/delzone unusable due to RPM packaging or missing BIND configuration option -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1315821 diff --git a/Sanity/bz1315821-rndc-addzone-delzone/main.fmf b/Sanity/bz1315821-rndc-addzone-delzone/main.fmf deleted file mode 100644 index 5ae68a4..0000000 --- a/Sanity/bz1315821-rndc-addzone-delzone/main.fmf +++ /dev/null @@ -1,24 +0,0 @@ -summary: Test for BZ#1315821 (rndc addzone/delzone unusable due to RPM packaging) -description: | - Bug summary: rndc addzone/delzone unusable due to RPM packaging or missing BIND configuration option - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1315821 -contact: Petr Sklenar -component: -- bind -test: ./runtest.sh -require: -- bind -- library(distribution/mcase) -duration: 20m -enabled: true -tag: -- NoRHEL4 -- NoRHEL5 -- TIP_fedora_fail -- TIPfail_infra -- TIPpass -relevancy: | - distro = rhel-4, rhel-5, rhel-6: False -extra-summary: /CoreOS/bind/Sanity/bz1315821-rndc-addzone-delzone -extra-task: /CoreOS/bind/Sanity/bz1315821-rndc-addzone-delzone -extra-nitrate: TC#0577451 diff --git a/Sanity/bz1315821-rndc-addzone-delzone/named.conf b/Sanity/bz1315821-rndc-addzone-delzone/named.conf deleted file mode 100644 index a063f0b..0000000 --- a/Sanity/bz1315821-rndc-addzone-delzone/named.conf +++ /dev/null @@ -1,62 +0,0 @@ -// -// named.conf -// -// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS -// server as a caching only nameserver (as a localhost DNS resolver only). -// -// See /usr/share/doc/bind*/sample/ for example named configuration files. -// -// See the BIND Administrator's Reference Manual (ARM) for details about the -// configuration located in /usr/share/doc/bind-{version}/Bv9ARM.html - -options { - listen-on port 53 { 127.0.0.1; }; - listen-on-v6 port 53 { ::1; }; - directory "/var/named"; - dump-file "/var/named/data/cache_dump.db"; - statistics-file "/var/named/data/named_stats.txt"; - memstatistics-file "/var/named/data/named_mem_stats.txt"; - recursing-file "/var/named/data/named.recursing"; - secroots-file "/var/named/data/named.secroots"; - allow-query { localhost; }; - allow-new-zones yes; - - /* - - If you are building an AUTHORITATIVE DNS server, do NOT enable recursion. - - If you are building a RECURSIVE (caching) DNS server, you need to enable - recursion. - - If your recursive DNS server has a public IP address, you MUST enable access - control to limit queries to your legitimate users. Failing to do so will - cause your server to become part of large scale DNS amplification - attacks. Implementing BCP38 within your network would greatly - reduce such attack surface - */ - recursion yes; - - dnssec-enable yes; - dnssec-validation yes; - - /* Path to ISC DLV key */ - bindkeys-file "/etc/named.iscdlv.key"; - - managed-keys-directory "/var/named/dynamic"; - - pid-file "/run/named/named.pid"; - session-keyfile "/run/named/session.key"; -}; - -logging { - channel default_debug { - file "data/named.run"; - severity dynamic; - }; -}; - -zone "." IN { - type hint; - file "named.ca"; -}; - -include "/etc/named.rfc1912.zones"; -include "/etc/named.root.key"; - diff --git a/Sanity/bz1315821-rndc-addzone-delzone/runtest.sh b/Sanity/bz1315821-rndc-addzone-delzone/runtest.sh deleted file mode 100755 index a9a1a83..0000000 --- a/Sanity/bz1315821-rndc-addzone-delzone/runtest.sh +++ /dev/null @@ -1,70 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/bind/Sanity/bz1315821-rndc-addzone-delzone -# Description: Test for BZ#1315821 (rndc addzone/delzone unusable due to RPM packaging) -# Author: Petr Sklenar -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2018 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/bin/rhts-environment.sh || exit 1 -. /usr/share/beakerlib/beakerlib.sh || exit 1 - -PACKAGE="bind" - -distribution_mcase__setup() { - local zonefile - zonefile=$(rpm -ql bind | grep empty | tail -n1) - rm -rf /var/named/*nzf - rlFileBackup /etc/named.conf - rlRun "cat named.conf > /etc/named.conf" - rlRun "cp -a $zonefile /var/named/delme.db" - rlServiceStart named - sleep 1 -} - -distribution_mcase__test() { - local string=petr$RANDOM - local db - rndc addzone $string '{ type master; file "delme.db"; };' - rlAssert0 "rndc addzone" $? - db=$(ls /var/named/*nzf ||echo not_found) - rlRun "grep $string $db" - rndc delzone $string - rlAssert0 "rndc delzone" $? - rlRun "grep $string $db" 1 -} - -distribution_mcase__cleanup() { - rm -rf /var/named/delme.db - rlFileRestore - rlServiceRestore named -} - -rlJournalStart - rlPhaseStartSetup init - rlAssertRpm $PACKAGE - rlImport "distribution/mcase" - rlPhaseEnd - distribution_mcase__run -rlJournalPrintText -rlJournalEnd diff --git a/Sanity/bz1452091-RFE-Backport-negative-trust-anchors-IETF-RFC/Makefile b/Sanity/bz1452091-RFE-Backport-negative-trust-anchors-IETF-RFC/Makefile deleted file mode 100644 index c67974b..0000000 --- a/Sanity/bz1452091-RFE-Backport-negative-trust-anchors-IETF-RFC/Makefile +++ /dev/null @@ -1,64 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/bind/Sanity/bz1452091-RFE-Backport-negative-trust-anchors-IETF-RFC -# Description: Test for BZ#1452091 ([RFE] Backport "negative trust anchors" (IETF RFC) -# Author: Petr Sklenar -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2018 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/bind/Sanity/bz1452091-RFE-Backport-negative-trust-anchors-IETF-RFC -export TESTVERSION=1.1 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE dlv.isc.org.named.conf named.conf - -.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: Petr Sklenar " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for BZ#1452091 ([RFE] Backport \"negative trust anchors\" (IETF RFC)" >> $(METADATA) - @echo "Type: Sanity" >> $(METADATA) - @echo "TestTime: 20m" >> $(METADATA) - @echo "RunFor: bind" >> $(METADATA) - @echo "Requires: bind bind-utils" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2+" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 1452091" >> $(METADATA) - @echo "Releases: -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/Sanity/bz1452091-RFE-Backport-negative-trust-anchors-IETF-RFC/PURPOSE b/Sanity/bz1452091-RFE-Backport-negative-trust-anchors-IETF-RFC/PURPOSE deleted file mode 100644 index 4d65795..0000000 --- a/Sanity/bz1452091-RFE-Backport-negative-trust-anchors-IETF-RFC/PURPOSE +++ /dev/null @@ -1,5 +0,0 @@ -PURPOSE of /CoreOS/bind/Sanity/bz1452091-RFE-Backport-negative-trust-anchors-IETF-RFC -Description: Test for BZ#1452091 ([RFE] Backport "negative trust anchors" (IETF RFC) -Author: Petr Sklenar -Bug summary: [RFE] Backport "negative trust anchors" (IETF RFC 7646) from BIND 9.11 -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1452091 diff --git a/Sanity/bz1452091-RFE-Backport-negative-trust-anchors-IETF-RFC/dlv.isc.org.named.conf b/Sanity/bz1452091-RFE-Backport-negative-trust-anchors-IETF-RFC/dlv.isc.org.named.conf deleted file mode 100644 index 617caee..0000000 --- a/Sanity/bz1452091-RFE-Backport-negative-trust-anchors-IETF-RFC/dlv.isc.org.named.conf +++ /dev/null @@ -1,3 +0,0 @@ -trusted-keys { - dlv.isc.org. 257 3 5 "BEAAAAPHMu/5onzrEE7z1egmhg/WPO0+juoZrW3euWEn4MxDCE1+lLy2 brhQv5rN32RKtMzX6Mj70jdzeND4XknW58dnJNPCxn8+jAGl2FZLK8t+ 1uq4W+nnA3qO2+DL+k6BD4mewMLbIYFwe0PG73Te9fZ2kJb56dhgMde5 ymX4BI/oQ+cAK50/xvJv00Frf8kw6ucMTwFlgPe+jnGxPPEmHAte/URk Y62ZfkLoBAADLHQ9IrS2tryAe7mbBZVcOwIeU/Rw/mRx/vwwMCTgNboM QKtUdvNXDrYJDSHZws3xiRXF1Rf+al9UmZfSav/4NWLKjHzpT59k/VSt TDN0YUuWrBNh"; -}; diff --git a/Sanity/bz1452091-RFE-Backport-negative-trust-anchors-IETF-RFC/main.fmf b/Sanity/bz1452091-RFE-Backport-negative-trust-anchors-IETF-RFC/main.fmf deleted file mode 100644 index 1b97efe..0000000 --- a/Sanity/bz1452091-RFE-Backport-negative-trust-anchors-IETF-RFC/main.fmf +++ /dev/null @@ -1,24 +0,0 @@ -summary: Test for BZ#1452091 ([RFE] Backport "negative trust anchors" (IETF RFC) -description: | - Bug summary: [RFE] Backport "negative trust anchors" (IETF RFC 7646) from BIND 9.11 - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1452091 -contact: Petr Sklenar -component: -- bind -test: ./runtest.sh -require: -- bind -- bind-utils -duration: 20m -enabled: true -tag: -- NoRHEL4 -- NoRHEL5 -- TIP_fedora_fail -- TIPfail -- TIPfail_infra -relevancy: | - distro = rhel-4, rhel-5, rhel-6: False -extra-summary: /CoreOS/bind/Sanity/bz1452091-RFE-Backport-negative-trust-anchors-IETF-RFC -extra-task: /CoreOS/bind/Sanity/bz1452091-RFE-Backport-negative-trust-anchors-IETF-RFC -extra-nitrate: TC#0578743 diff --git a/Sanity/bz1452091-RFE-Backport-negative-trust-anchors-IETF-RFC/named.conf b/Sanity/bz1452091-RFE-Backport-negative-trust-anchors-IETF-RFC/named.conf deleted file mode 100644 index 05d4cfb..0000000 --- a/Sanity/bz1452091-RFE-Backport-negative-trust-anchors-IETF-RFC/named.conf +++ /dev/null @@ -1,36 +0,0 @@ -options { - dnssec-enable yes; - dnssec-lookaside . trust-anchor dlv.isc.org.; - listen-on port 53 { 127.0.0.1; }; - listen-on-v6 port 53 { ::1; }; - directory "/var/named"; - dump-file "/var/named/data/cache_dump.db"; - statistics-file "/var/named/data/named_stats.txt"; - memstatistics-file "/var/named/data/named_mem_stats.txt"; - dnssec-validation yes; - forwarders { - 10.64.63.6; - }; - - // Those options should be used carefully because they disable port - // randomization - // query-source port 53; - // query-source-v6 port 53; - - allow-query { localhost; }; -}; -logging { - channel default_debug { - file "data/named.run"; - severity dynamic; - }; -}; -view localhost_resolver { - match-clients { localhost; }; - match-destinations { localhost; }; - recursion yes; - include "/etc/named.rfc1912.zones"; -}; - -include "/etc/dlv.key"; - diff --git a/Sanity/bz1452091-RFE-Backport-negative-trust-anchors-IETF-RFC/runtest.sh b/Sanity/bz1452091-RFE-Backport-negative-trust-anchors-IETF-RFC/runtest.sh deleted file mode 100755 index b6431f7..0000000 --- a/Sanity/bz1452091-RFE-Backport-negative-trust-anchors-IETF-RFC/runtest.sh +++ /dev/null @@ -1,89 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/rhts-library/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Author: Petr Sklenar -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2009 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -. /usr/bin/rhts-environment.sh -. /usr/share/rhts-library/rhtslib.sh - - -rlJournalStart - rlPhaseStartSetup Setup - . /etc/sysconfig/named - rlServiceStop named - rlFileBackup --clean /etc/named.conf /var/named/data/named.run /etc/rndc.key - if [ -e $ROOTDIR/etc/named.conf ]; then - rlFileBackup --clean $ROOTDIR/etc/named.conf - #BACKED=1 - fi - rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory" - rlRun "chmod 777 $TmpDir" 0 "Chmodding Tmp" - rlPhaseEnd - - rlPhaseStartTest Testing - rlAssertExists $TmpDir - touch $ROOTDIR/etc/dlv.key - rlRun "wget -O dlv.isc.org.named.conf http://ftp.isc.org/www/dlv/dlv.isc.org.named.conf" - rlRun "cp -f named.conf $ROOTDIR/etc/named.conf" - rlRun "chown root.named $ROOTDIR/etc/named.conf" - rlRun "service named start" - sleep 1 - rlRun "rndc nta -remove dlv.isc.org" 0,1 - - rlRun "dig @127.0.0.1 gov SOA +dnssec| grep 'ANSWER: [^0]'" 1 - - -# 20 sec it will be unchecked: -rndc nta -dump - rlRun "rndc nta -lifetime 20 dlv.isc.org" 0 "20 second it will be uncheck " -rndc nta -dump - rlRun "dig @127.0.0.1 gov SOA +dnssec | grep 'ANSWER: [^0]'" 0 -rndc nta -dump - rlRun "rndc nta -dump|grep dlv|grep expiry" -rndc nta -dump -# this time it fails as rndc nta --dump is empty - sleep 60 -rndc nta -dump - rlRun "rndc nta -dump|grep dlv|grep expired" -rndc nta -dump - rlRun 'date +"%d-%b-%Y %T.000"' - rlRun "dig @127.0.0.1 gov SOA +dnssec | grep 'ANSWER: [^0]'" 1 -rndc nta -dump - rlRun "rndc nta -remove dlv.isc.org" 0,1 -rndc nta -dump - - rlRun "cp dlv.isc.org.named.conf $ROOTDIR/etc/dlv.key" - rlRun "rlServiceStart named" - sleep 1 - rlRun "dig @127.0.0.1 gov SOA +dnssec | grep 'ANSWER: [^0]'" 0 - - rlPhaseEnd - - rlPhaseStartCleanup Cleanup - rlRun "service named stop" - rlRun "rm -rf $TmpDir $ROOTDIR/etc/named.conf $ROOTDIR/etc/dlv.key" - rlFileRestore - rlServiceRestore named - rlPhaseEnd -rlJournalPrintText diff --git a/Sanity/initscript/Makefile b/Sanity/initscript/Makefile deleted file mode 100644 index 226c5da..0000000 --- a/Sanity/initscript/Makefile +++ /dev/null @@ -1,65 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/bind/Sanity/initscript -# Description: initscript LSB compliance check -# Author: Matej Susta -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2009 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -export TEST=/CoreOS/bind/Sanity/initscript -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) - chmod a+x runtest.sh - -clean: - rm -f *~ $(BUILT_FILES) - - -include /usr/share/rhts/lib/rhts-make.include - -$(METADATA): Makefile - @echo "Owner: Martin Cermak " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: initscript LSB compliance check" >> $(METADATA) - @echo "Type: Sanity" >> $(METADATA) - @echo "TestTime: 15m" >> $(METADATA) - @echo "RunFor: bind" >> $(METADATA) - @echo "Requires: bind bind-chroot bind-utils" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Releases: -RHEL3 -RHEL4 -RHEL5" >> $(METADATA) - @echo "RhtsRequires: library(bind/bind-setup)" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/Sanity/initscript/PURPOSE b/Sanity/initscript/PURPOSE deleted file mode 100644 index ea81fc6..0000000 --- a/Sanity/initscript/PURPOSE +++ /dev/null @@ -1,3 +0,0 @@ -PURPOSE of /CoreOS/bind/Sanity/initscript -Description: initscript LSB compliance check -Author: Matej Susta diff --git a/Sanity/initscript/main.fmf b/Sanity/initscript/main.fmf deleted file mode 100644 index 2672ef5..0000000 --- a/Sanity/initscript/main.fmf +++ /dev/null @@ -1,27 +0,0 @@ -summary: initscript LSB compliance check -description: '' -contact: Petr Sklenar -component: -- bind -test: ./runtest.sh -require: -- bind -- bind-chroot -- bind-utils -- library(bind/bind-setup) -duration: 15m -enabled: true -tag: -- NoRHEL3 -- NoRHEL4 -- NoRHEL5 -- TIPfail_infra -- TIPpass -- Tier1 -- broken6.3 -- broken7.0 -tier: '1' -relevancy: "distro < rhel-8: False\npurpose=gating && distro < rhel-8.2: False \n" -extra-summary: /CoreOS/bind/Sanity/initscript -extra-task: /CoreOS/bind/Sanity/initscript -extra-nitrate: TC#0126584 diff --git a/Sanity/initscript/runtest.sh b/Sanity/initscript/runtest.sh deleted file mode 100644 index e9cb6ae..0000000 --- a/Sanity/initscript/runtest.sh +++ /dev/null @@ -1,105 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/rhts-library/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/bind/Sanity/initscript -# Description: Init script should meet LSB specifications -# Author: Jan Scotka , Yulia Kopkova -# and for el8 && fedora reworked by psklenar@redhat.com Petr Sklenar -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2009 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -# Include rhts environment -. /usr/bin/rhts-environment.sh -. /usr/share/rhts-library/rhtslib.sh -. /usr/share/beakerlib/beakerlib.sh || exit 1 - - -SERVICE='named' -rlJournalStart - rlPhaseStartSetup - rlRun "useradd testuserqa" 0 "Add test user" - - rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - - rlRun "rlImport bind/bind-setup" - - bsBindSetupStart - bsBindSetupDone - - export SYSTEMD_PAGER='' - rlPhaseEnd - - rlPhaseStartTest $SERVICE - rlServiceStop $SERVICE - rlLog ">>>>>>>>> service start" - rlRun "service $SERVICE start" 0 " Service must start without problem" - rlRun "service $SERVICE status" 0 " Then Status command " - rlRun "service $SERVICE start" 0 " Already started service " - rlRun "service $SERVICE status" 0 " Again status command " - - rlLog ">>>>>>>>> service restart" - rlRun "service $SERVICE restart" 0 " Restarting of service" - rlRun "service $SERVICE status" 0 " Status command " - - rlLog ">>>>>>>>> service stop" - rlRun "service $SERVICE stop" 0 " Stopping service " - rlRun "service $SERVICE status" 3 " Status of stopped service " - rlRun "service $SERVICE stop" 0 " Stopping service again " - rlRun "service $SERVICE status" 3 " Status of stopped service " - - rlLog ">>>>>>>>> insufficient rights" - rlRun "service $SERVICE start " 0 " Starting service for restarting under nonpriv user " - rlRun "su testuserqa -c 'service $SERVICE restart'" 1,4 "Insufficient rights, restarting service under nonprivileged user must fail" - - rlLog ">>>>>>>>> operations" - rlRun "service $SERVICE start" 0 " Service have to implement start function " - rlRun "service $SERVICE restart" 0 " Service have to implement restart function " - rlRun "service $SERVICE status" 0 " Service have to implement status function " - rlRun "service $SERVICE condrestart" 0 " Service have to implement condrestart function " - rlRun "service $SERVICE try-restart" 0 " Service have to implement try-restart function " - rlRun "service $SERVICE reload" 0 " Service have to implement reload function " - rlRun "service $SERVICE force-reload" 0 " Service have to implement force-reload function " - - rlLog ">>>>>>>>> nonexist operations" - # systemd returns always 1, just make sure it just fails - rlRun "service $SERVICE noexistop" 1,2 " Testing proper return code when nonexisting function" - rlPhaseEnd - - rlPhaseStartTest -#this is bug for rhel7, rhel8.0, rhel8.2 - - echo 'corrupted' >> /etc/named.conf - rlRun "service $SERVICE reload" 1-255 - rlRun "service $SERVICE status" 0 " Service still runs with previous configuration" - - rlPhaseEnd - - rlPhaseStartCleanup - bsBindSetupCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlRun "userdel -fr testuserqa" 0 "Remove test user" - rlPhaseEnd - -rlJournalPrintText -rlJournalEnd diff --git a/Sanity/install-dependencies/Makefile b/Sanity/install-dependencies/Makefile deleted file mode 100644 index fbf0cc3..0000000 --- a/Sanity/install-dependencies/Makefile +++ /dev/null @@ -1,63 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/bind/Sanity/bind-dyndb-ldap -# Description: Test bind-dyndb-ldap is still installable -# Author: Petr Mensik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2021 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/bind/Sanity/install-dependencies -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 $(realpath /usr/share/rhts/lib/rhts-make.include) - -$(METADATA): Makefile - @echo "Owner: Petr Mensik " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test bind-libs dependencies are still installable" >> $(METADATA) - @echo "Type: Sanity" >> $(METADATA) - @echo "TestTime: 5m" >> $(METADATA) - @echo "RunFor: bind" >> $(METADATA) - @echo "Requires: bind" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2+" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Releases: -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/Sanity/install-dependencies/PURPOSE b/Sanity/install-dependencies/PURPOSE deleted file mode 100644 index a41544c..0000000 --- a/Sanity/install-dependencies/PURPOSE +++ /dev/null @@ -1,3 +0,0 @@ -PURPOSE of /CoreOS/bind/Sanity/install-dependencies -Description: Test bind-libs dependencies are still installable -Author: Petr Mensik diff --git a/Sanity/install-dependencies/main.fmf b/Sanity/install-dependencies/main.fmf deleted file mode 100644 index bd59105..0000000 --- a/Sanity/install-dependencies/main.fmf +++ /dev/null @@ -1,13 +0,0 @@ -summary: Test bind-libs dependencies are still installable -description: '' -contact: -- Petr Mensik -component: -- bind -test: ./runtest.sh -framework: beakerlib -recommend: -- bind -duration: 5m -extra-summary: /CoreOS/bind/Sanity/install-dependencies -extra-task: /CoreOS/bind/Sanity/install-dependencies diff --git a/Sanity/install-dependencies/runtest.sh b/Sanity/install-dependencies/runtest.sh deleted file mode 100755 index c3dbb9a..0000000 --- a/Sanity/install-dependencies/runtest.sh +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/bind/Sanity/install-dependencies -# Description: Test bind-dyndb-ldap is still installable -# Author: Petr Mensik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2021 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="bind" -# dnsperf 2.4.0 no longer depends on bind. -# But should be installable anyway. -DEPENDENCIES="bind-dyndb-ldap dnsperf" # freeipa-server-dns - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm $PACKAGE - rlRun "VERSION=$(rpm -q $PACKAGE)" - rlPhaseEnd - - rlPhaseStartTest - for DEP in $DEPENDENCIES - do - rlRun "rpm -q $DEP" 1-255 "Make sure $DEP is not yet installed" - rlRun "dnf install --best -y $DEP" 0 "Install $DEP" - rlAssertRpm $DEP - done - rlAssertEqual "$PACKAGE version is unchanged" "$VERSION" "$(rpm -q $PACKAGE)" - rlPhaseEnd - - rlPhaseStartCleanup - for DEP in $DEPENDENCIES - do - rlRun "dnf remove -y $DEP" - done - rlPhaseEnd -rlJournalPrintText -rlJournalEnd diff --git a/Sanity/json-support/Makefile b/Sanity/json-support/Makefile deleted file mode 100644 index fcfda66..0000000 --- a/Sanity/json-support/Makefile +++ /dev/null @@ -1,64 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/bind/Sanity/json-support -# Description: Test for BZ#1899257 ([RFE] Request for libjson support to be added to) -# Author: Petr Mensik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2021 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/bind/Sanity/json-support -export TESTVERSION=1.0 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE readstats.py - -.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 $(realpath /usr/share/rhts/lib/rhts-make.include) - -$(METADATA): Makefile - @echo "Owner: Petr Mensik " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Test for BZ#1899257 ([RFE] Request for libjson support to be added to)" >> $(METADATA) - @echo "Type: Sanity" >> $(METADATA) - @echo "TestTime: 5m" >> $(METADATA) - @echo "RunFor: bind" >> $(METADATA) - @echo "Requires: bind bind-utils python3" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2+" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 1899257" >> $(METADATA) - @echo "Releases: -RHEL4 -RHEL6 -RHEL7 -RHELClient5 -RHELServer5" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/Sanity/json-support/PURPOSE b/Sanity/json-support/PURPOSE deleted file mode 100644 index 9518b0e..0000000 --- a/Sanity/json-support/PURPOSE +++ /dev/null @@ -1,5 +0,0 @@ -PURPOSE of /CoreOS/bind/Sanity/json-support -Description: Test for BZ#1899257 ([RFE] Request for libjson support to be added to) -Author: Petr Mensik -Bug summary: [RFE] Request for libjson support to be added to bind compile options for statistics-channel -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1899257 diff --git a/Sanity/json-support/main.fmf b/Sanity/json-support/main.fmf deleted file mode 100644 index 736e6cb..0000000 --- a/Sanity/json-support/main.fmf +++ /dev/null @@ -1,17 +0,0 @@ -summary: Test for BZ#1899257 ([RFE] Request for libjson support to be added to) -description: | - Bug summary: [RFE] Request for libjson support to be added to bind compile options for statistics-channel - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1899257 -contact: -- Petr Mensik -component: -- bind -test: ./runtest.sh -framework: beakerlib -recommend: -- bind -- bind-utils -- python3 -duration: 5m -extra-summary: /CoreOS/bind/Sanity/json-support -extra-task: /CoreOS/bind/Sanity/json-support diff --git a/Sanity/json-support/readstats.py b/Sanity/json-support/readstats.py deleted file mode 100755 index 1a7c3b4..0000000 --- a/Sanity/json-support/readstats.py +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/python3 -# -# Script verifying BIND3 statistics interface work with json - -import urllib.request -import json -import sys - -url = 'http://localhost:80/json' # use first parameter to override -timeout = 10 # connection timeout in seconds - -if len(sys.argv)>1: - url = sys.argv[1] - -print("# Reading statistics from URL: {0}".format(url)) -with urllib.request.urlopen(url, timeout=timeout) as req: - js = json.load(req) - #print(json.dumps(js, indent=4)) - print('BIND version: ', js['version']) - print('Socket stats, IPV4 UDP requests: ', js['sockstats']['UDP4Open']) - print('Name server stats, UDP queries: ', js['nsstats']['QryUDP']) diff --git a/Sanity/json-support/runtest.sh b/Sanity/json-support/runtest.sh deleted file mode 100755 index e874ffe..0000000 --- a/Sanity/json-support/runtest.sh +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/bind/Sanity/json-support -# Description: Test for BZ#1899257 ([RFE] Request for libjson support to be added to) -# Author: Petr Mensik -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2021 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="bind" - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm $PACKAGE - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - TESTDIR="`pwd`" - rlRun "pushd $TmpDir" - rlFileBackup /etc/named.conf - STATSURL='http://localhost:853/json' - cat >> /etc/named.conf < -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2014 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/bind/Sanity/max-recursion-queries -export TESTVERSION=1.0 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE named1.conf named2.conf - -.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: Petr Sklenar " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: max-recursion-queries" >> $(METADATA) - @echo "Type: Sanity" >> $(METADATA) - @echo "TestTime: 5m" >> $(METADATA) - @echo "RunFor: bind" >> $(METADATA) - @echo "Requires: bind bind-utils" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2+" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/Sanity/max-recursion-queries/PURPOSE b/Sanity/max-recursion-queries/PURPOSE deleted file mode 100644 index 0851988..0000000 --- a/Sanity/max-recursion-queries/PURPOSE +++ /dev/null @@ -1,3 +0,0 @@ -PURPOSE of /CoreOS/bind/Sanity/max-recursion-queries -Description: max-recursion-queries -Author: Petr Sklenar diff --git a/Sanity/max-recursion-queries/TC#0444468.fmf b/Sanity/max-recursion-queries/TC#0444468.fmf deleted file mode 100644 index d5b4173..0000000 --- a/Sanity/max-recursion-queries/TC#0444468.fmf +++ /dev/null @@ -1,6 +0,0 @@ -tag: -- TIPpass -- notip -relevancy: | - distro = rhel-5 : False -extra-nitrate: TC#0444468 diff --git a/Sanity/max-recursion-queries/TC#0551922.fmf b/Sanity/max-recursion-queries/TC#0551922.fmf deleted file mode 100644 index af8ba05..0000000 --- a/Sanity/max-recursion-queries/TC#0551922.fmf +++ /dev/null @@ -1,9 +0,0 @@ -tag: -- TIPfail -- TIPfail_fedora -- TIPfail_infra -relevancy: | - distro = rhel-5.9: False - distro = rhel-5.9.aus: False - distro < rhel-5.10: False -extra-nitrate: TC#0551922 diff --git a/Sanity/max-recursion-queries/main.fmf b/Sanity/max-recursion-queries/main.fmf deleted file mode 100644 index a30045b..0000000 --- a/Sanity/max-recursion-queries/main.fmf +++ /dev/null @@ -1,14 +0,0 @@ -summary: max-recursion-queries -description: '' -contact: Petr Sklenar -component: -- bind -test: ./runtest.sh -path: /Sanity/max-recursion-queries -require: -- bind -- bind-utils -duration: 5m -enabled: true -extra-summary: /CoreOS/bind/Sanity/max-recursion-queries -extra-task: /CoreOS/bind/Sanity/max-recursion-queries diff --git a/Sanity/max-recursion-queries/named1.conf b/Sanity/max-recursion-queries/named1.conf deleted file mode 100644 index 9e5ebfd..0000000 --- a/Sanity/max-recursion-queries/named1.conf +++ /dev/null @@ -1,46 +0,0 @@ -// -// named.conf -// -// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS -// server as a caching only nameserver (as a localhost DNS resolver only). -// -// See /usr/share/doc/bind*/sample/ for example named configuration files. -// - -options { - listen-on port 53 { 127.0.0.1; }; - listen-on-v6 port 53 { ::1; }; - directory "/var/named"; - dump-file "/var/named/data/cache_dump.db"; - statistics-file "/var/named/data/named_stats.txt"; - memstatistics-file "/var/named/data/named_mem_stats.txt"; - forwarders { 10.64.63.6;10.97.120.27; }; - allow-query { any; }; - recursion yes; - - dnssec-enable yes; - dnssec-validation yes; - dnssec-lookaside auto; - - /* Path to ISC DLV key */ - bindkeys-file "/etc/named.iscdlv.key"; - - managed-keys-directory "/var/named/dynamic"; - max-recursion-queries 100; -}; - -logging { - channel default_debug { - file "data/named.run"; - severity dynamic; - }; -}; - -zone "." IN { - type hint; - file "named.ca"; -}; - -include "/etc/named.rfc1912.zones"; -include "/etc/named.root.key"; - diff --git a/Sanity/max-recursion-queries/named2.conf b/Sanity/max-recursion-queries/named2.conf deleted file mode 100644 index 31d0666..0000000 --- a/Sanity/max-recursion-queries/named2.conf +++ /dev/null @@ -1,46 +0,0 @@ -// -// named.conf -// -// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS -// server as a caching only nameserver (as a localhost DNS resolver only). -// -// See /usr/share/doc/bind*/sample/ for example named configuration files. -// - -options { - listen-on port 53 { 127.0.0.1; }; - listen-on-v6 port 53 { ::1; }; - directory "/var/named"; - dump-file "/var/named/data/cache_dump.db"; - statistics-file "/var/named/data/named_stats.txt"; - memstatistics-file "/var/named/data/named_mem_stats.txt"; - allow-query { any; }; - forwarders { 10.64.63.6;10.97.120.27; }; - recursion no; - - dnssec-enable yes; - dnssec-validation yes; - dnssec-lookaside auto; - - /* Path to ISC DLV key */ - bindkeys-file "/etc/named.iscdlv.key"; - - managed-keys-directory "/var/named/dynamic"; - max-recursion-queries 1; -}; - -logging { - channel default_debug { - file "data/named.run"; - severity dynamic; - }; -}; - -zone "." IN { - type hint; - file "named.ca"; -}; - -include "/etc/named.rfc1912.zones"; -include "/etc/named.root.key"; - diff --git a/Sanity/max-recursion-queries/runtest.sh b/Sanity/max-recursion-queries/runtest.sh deleted file mode 100755 index 4141c7d..0000000 --- a/Sanity/max-recursion-queries/runtest.sh +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/bind/Sanity/max-recursion-queries -# Description: max-recursion-queries -# Author: Petr Sklenar -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2014 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/bin/rhts-environment.sh || exit 1 -. /usr/share/beakerlib/beakerlib.sh || exit 1 - -PACKAGE="bind" - -rlJournalStart - rlPhaseStartSetup - rlRun 'rpm -q bind || rpm -q bind97' 0 "Checking for presence of bind or bind97 RPM" - rlFileBackup /etc/named.conf - rlPhaseEnd - - rlPhaseStartTest "this should be OK" - rlRun "cp named1.conf /etc/named.conf" - rlServiceStart named - rlRun "dig @localhost www.ibm.com|grep akamaiedge" - rlPhaseEnd - - rlPhaseStartTest "there should be no ANSWER" - rlRun "cp named2.conf /etc/named.conf" - rlServiceStart named - rlRun "dig @localhost www.ibm.com" >0 - rlRun "dig @localhost www.ibm.com|grep akamaiedge" 1 - rlPhaseEnd - - rlPhaseStartCleanup - rlFileRestore - rlServiceRestore named - rlPhaseEnd -rlJournalPrintText -rlJournalEnd - diff --git a/Sanity/named-checkzone/Makefile b/Sanity/named-checkzone/Makefile deleted file mode 100644 index 65fac7e..0000000 --- a/Sanity/named-checkzone/Makefile +++ /dev/null @@ -1,63 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/bind/Sanity/named-checkzone -# Description: Sanity/named-checkzone -# Author: Petr Sklenar -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2015 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/bind/Sanity/named-checkzone -export TESTVERSION=1.0 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE cptest2.tld.db - -.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: Petr Sklenar " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: Sanity/named-checkzone" >> $(METADATA) - @echo "Type: Sanity" >> $(METADATA) - @echo "TestTime: 5m" >> $(METADATA) - @echo "RunFor: bind" >> $(METADATA) - @echo "Requires: bind bind-utils" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2+" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Releases: -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/Sanity/named-checkzone/PURPOSE b/Sanity/named-checkzone/PURPOSE deleted file mode 100644 index e434329..0000000 --- a/Sanity/named-checkzone/PURPOSE +++ /dev/null @@ -1,3 +0,0 @@ -PURPOSE of /CoreOS/bind/Sanity/named-checkzone -Description: Sanity/named-checkzone -Author: Petr Sklenar diff --git a/Sanity/named-checkzone/cptest2.tld.db b/Sanity/named-checkzone/cptest2.tld.db deleted file mode 100644 index 504021d..0000000 --- a/Sanity/named-checkzone/cptest2.tld.db +++ /dev/null @@ -1,30 +0,0 @@ -; cPanel first:11.49.9999.115 (update_time):1429809767 11.49.9999.115: Cpanel::ZoneFile::VERSION:1.3 hostname:i-00002f3f.cpanel.nova latest:11.49.9999.115 -; Zone file for cptest2.tld -$TTL 14400 -@ 86400 IN SOA ns1.cpanel.nova. julian.brown.cpanel.net. ( - 2015042303 ; serial, todays date+todays - 86400 ; refresh, seconds - 7200 ; retry, seconds - 3600000 ; expire, seconds - 86400 ) ; minimum, seconds - -cptest2.tld. 86400 IN NS ns1.cpanel.nova. -cptest2.tld. 86400 IN NS ns2.cpanel.nova. - - -cptest2.tld. IN A 10.6.27.120 - -cptest2.tld. IN MX 0 cptest2.tld. - -mail IN CNAME cptest2.tld. -www IN CNAME cptest2.tld. -ftp IN A 10.6.27.120 - -cptest2.tld. IN TXT "v=spf1 +a +mx +ip4:10.6.27.120 ~all" -cpanel IN A 10.6.27.120 -webdisk IN A 10.6.27.120 -cpcalendars IN A 10.6.27.120 -cpcontacts IN A 10.6.27.120 -whm IN A 10.6.27.120 -webmail IN A 10.6.27.120 -default._domainkey IN TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAna8Du0cGijhRQWLN1Eb0jqJZbggaSqmyyM2EEua3U8J9YWJ9nNMS08lSHGyQSpVPh8g/uJaHa1cMkXla5ZGGra5GhY+WbAd9m6W45ztcMnXMTBbmMtMu24LgdXWNj0Lkotl4ewCEn9UioQFxpIbNnn6qrhKMajsfygb5/Zzq1rF2NT+FjZRbXtkKGd6tgB03I" bnMlMrmuccNX8U3oVbAk0+hI+Y5eOErYK54iUPvysF9MJJWMV40H7woumNvx73jswA2iK+ZKPOGH9CNXbToqgTbJmRRoMpY0nwjCVsIhaCN9bZxrpF/LaoE/3qeccUAT1tIwEZJIj6ruC8Rx3ydwQIDAQAB\; diff --git a/Sanity/named-checkzone/main.fmf b/Sanity/named-checkzone/main.fmf deleted file mode 100644 index bc0bee4..0000000 --- a/Sanity/named-checkzone/main.fmf +++ /dev/null @@ -1,22 +0,0 @@ -summary: Sanity/named-checkzone -description: '' -contact: Petr Sklenar -component: -- bind -test: ./runtest.sh -require: -- bind -- bind-utils -duration: 5m -enabled: true -tag: -- NoRHEL4 -- NoRHEL5 -- TIP_fedora_pass -- TIPfail_infra -- TIPpass -relevancy: | - distro = rhel-4, rhel-5: False -extra-summary: /CoreOS/bind/Sanity/named-checkzone -extra-task: /CoreOS/bind/Sanity/named-checkzone -extra-nitrate: TC#0500008 diff --git a/Sanity/named-checkzone/runtest.sh b/Sanity/named-checkzone/runtest.sh deleted file mode 100755 index 665f360..0000000 --- a/Sanity/named-checkzone/runtest.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/bind/Sanity/named-checkzone -# Description: Sanity/named-checkzone -# Author: Petr Sklenar -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2015 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/bin/rhts-environment.sh || exit 1 -. /usr/share/beakerlib/beakerlib.sh || exit 1 - -PACKAGE="bind" - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm $PACKAGE - rlRun "ls cptest2.tld.db" - rlPhaseEnd - - rlPhaseStartTest "check zone file from bug 1215164" - rlRun "named-checkzone cptest2.tld cptest2.tld.db" - rlRun "named-checkzone cptest2.tld cptest2.tld.db | grep 'add matching type SPF record'" 1 - rlPhaseEnd - -rlJournalPrintText -rlJournalEnd diff --git a/Sanity/rndc-and-pkcs11/Makefile b/Sanity/rndc-and-pkcs11/Makefile deleted file mode 100644 index 2fd5e6a..0000000 --- a/Sanity/rndc-and-pkcs11/Makefile +++ /dev/null @@ -1,64 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/bind/Sanity/rndc-and-pkcs11 -# Description: rndc-and-pkcs11 -# Author: Petr Sklenar -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2018 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/bind/Sanity/rndc-and-pkcs11 -export TESTVERSION=1.1 - -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: Petr Sklenar " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: rndc-and-pkcs11" >> $(METADATA) - @echo "Type: Sanity" >> $(METADATA) - @echo "TestTime: 20m" >> $(METADATA) - @echo "RunFor: bind" >> $(METADATA) - @echo "Requires: bind softhsm bind-pkcs11 bind-pkcs11-utils dracut-fips" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2+" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 1501531" >> $(METADATA) - @echo "Releases: -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/Sanity/rndc-and-pkcs11/PURPOSE b/Sanity/rndc-and-pkcs11/PURPOSE deleted file mode 100644 index dcc6340..0000000 --- a/Sanity/rndc-and-pkcs11/PURPOSE +++ /dev/null @@ -1,5 +0,0 @@ -PURPOSE of /CoreOS/bind/Sanity/rndc-and-pkcs11 -Description: rndc-and-pkcs11 -Author: Petr Sklenar -Bug summary: rndc does not support other algorithms than HMAC-MD5, which makes is to crash in FIPS mode -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1501531 diff --git a/Sanity/rndc-and-pkcs11/main.fmf b/Sanity/rndc-and-pkcs11/main.fmf deleted file mode 100644 index d1ad4f2..0000000 --- a/Sanity/rndc-and-pkcs11/main.fmf +++ /dev/null @@ -1,30 +0,0 @@ -summary: rndc-and-pkcs11 -description: | - Bug summary: rndc does not support other algorithms than HMAC-MD5, which makes is to crash in FIPS mode - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1501531 -contact: Petr Sklenar -component: -- bind -test: ./runtest.sh -require: -- bind -- softhsm -- bind-pkcs11 -- bind-pkcs11-utils -- dracut-fips -duration: 20m -enabled: true -tag: -- NoRHEL4 -- NoRHEL5 -- TIP_fedora_fail -- TIPpass -- TIPpass_infra -- fips -- tip_destructive_el8 -- pkcs11 -relevancy: | - distro = rhel-4, rhel-5, rhel-6: False -extra-summary: /CoreOS/bind/Sanity/rndc-and-pkcs11 -extra-task: /CoreOS/bind/Sanity/rndc-and-pkcs11 -extra-nitrate: TC#0563916 diff --git a/Sanity/rndc-and-pkcs11/runtest.sh b/Sanity/rndc-and-pkcs11/runtest.sh deleted file mode 100644 index b4e5095..0000000 --- a/Sanity/rndc-and-pkcs11/runtest.sh +++ /dev/null @@ -1,112 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/bind/Sanity/rndc-and-pkcs11 -# Description: rndc-and-pkcs11 -# Author: Petr Sklenar -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2018 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/bin/rhts-environment.sh || exit 1 -. /usr/share/beakerlib/beakerlib.sh || exit 1 - -PACKAGE="bind" - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm $PACKAGE - rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - rm -rf /var/lib/softhsm/tokens/* - rm -rf /etc/rndc.key - rlPhaseEnd - - rlPhaseStartSetup -### SETUP - PIN='petr' - rlFileBackup /etc/sysconfig/named - rlFileBackup /etc/softhsm2.conf - rlFileBackup /var/lib/softhsm/tokens - export SOFTHSM2_CONF="/etc/softhsm2.conf" - export OPENSSL_FORCE_FIPS_MODE=1 - echo 'OPENSSL_FORCE_FIPS_MODE=1' >> /etc/sysconfig/named - rlRun "softhsm2-util --init-token --free --label rpm --pin $PIN --so-pin $PIN" - -### PERMISSIONS - TOKEN=$(ls /var/lib/softhsm/tokens) - echo $TOKEN - chgrp named -R /var/lib/softhsm/tokens/$TOKEN - chmod g+rX /var/lib/softhsm/tokens/$TOKEN - chgrp named -R /var/lib/softhsm/tokens - chmod g+rX -R /var/lib/softhsm/tokens - usermod -aG ods named - - -### START - rlRun "rlServiceStart named-pkcs11" - rlRun "service named-pkcs11 status" - -###DEBUG - rlLog "SOFTHSM2_CONF=`echo $SOFTHSM2_CONF`" - rlLog "pkcs11-tokens: `pkcs11-tokens`" - rlLog "/var/lib/softhsm/tokens `ls -lad /var/lib/softhsm/tokens;ls -la /var/lib/softhsm/tokens`" - rlPhaseEnd - - rlPhaseStartTest - rm -rf /etc/rndc.key - rlRun "service named-pkcs11 restart" - rlRun "rndc reload" - rlRun "pkcs11-tokens" - - for i in `seq 1 10`;do rndc reload;done - rlLog "/etc/rndc.key `cat /etc/rndc.key`" - rlRun "rndc reload" 0 - rlRun "rndc scan" 0 - rlRun "rndc sync" 0 - rlRun "rndc thaw" 0 - rlRun "service named-pkcs11 status" - rlPhaseEnd - - rlPhaseStartTest - rlRun "rndc-confgen -a" 0 - RETURN=0 # it depends on fips mode status - rlRun "service named-pkcs11 restart" 0 - for i in `seq 1 10`;do rndc reload;done - rlLog "/etc/rndc.key `cat /etc/rndc.key`" - rlRun "rndc reload" $RETURN - rlRun "rndc scan" $RETURN - rlRun "rndc sync" $RETURN - rlRun "rndc thaw" $RETURN - rlRun "service named-pkcs11 status" 0 "named-pkcs11 should survive" - rlRun "pgrep named-pkcs11" - rlPhaseEnd - - rlPhaseStartCleanup - unset OPENSSL_FORCE_FIPS_MODE - rlRun "service named-pkcs11 restart" 0 - rlServiceRestore named-pkcs11 - rm -rf /etc/softhsm2.conf /var/lib/softhsm/tokens - rlFileRestore - rlPhaseEnd - -rlJournalPrintText -rlJournalEnd diff --git a/ansible/packages.yml b/ansible/packages.yml deleted file mode 100644 index 0607154..0000000 --- a/ansible/packages.yml +++ /dev/null @@ -1,10 +0,0 @@ -- name: Install required packages - hosts: localhost - tasks: - - name: install beakerlib - become: yes - yum: - state: present - name: - - beakerlib - - make diff --git a/bz209839/Makefile b/bz209839/Makefile deleted file mode 100644 index 75f31a8..0000000 --- a/bz209839/Makefile +++ /dev/null @@ -1,75 +0,0 @@ -# Copyright (c) 2006 Red Hat, Inc. All rights reserved. This copyrighted material -# is made available to anyone wishing to use, modify, copy, or -# redistribute it subject to the terms and conditions of the GNU General -# Public License v.2. -# -# 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, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# -# Author: Jan Hutar - -# The toplevel namespace within which the test lives. -TOPLEVEL_NAMESPACE=CoreOS - -# The name of the package under test: -PACKAGE_NAME=bind - -# The path of the test below the package: -RELATIVE_PATH=bz209839 - -# Version of the Test. Used with make tag. -export TESTVERSION=1.1 - -# The combined namespace of the test. -export TEST=/$(TOPLEVEL_NAMESPACE)/$(PACKAGE_NAME)/$(RELATIVE_PATH) - - -# A phony target is one that is not really the name of a file. -# It is just a name for some commands to be executed when you -# make an explicit request. There are two reasons to use a -# phony target: to avoid a conflict with a file of the same -# name, and to improve performance. -.PHONY: all install download clean - -# executables to be built should be added here, they will be generated on the system under test. -BUILT_FILES= - -# data files, .c files, scripts anything needed to either compile the test and/or run it. -FILES=$(METADATA) runtest.sh Makefile PURPOSE - -run: $(FILES) build - ./runtest.sh - -build: $(BUILT_FILES) - chmod a+x ./runtest.sh - -clean: - rm -f *~ *.rpm $(BUILT_FILES) - -# You may need to add other targets e.g. to build executables from source code -# Add them here: - - -# Include Common Makefile -include /usr/share/rhts/lib/rhts-make.include - -# Generate the testinfo.desc here: -$(METADATA): Makefile - @touch $(METADATA) - @echo "Owner: Martin Cermak " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "License: GPL" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Description: Check if bind's initscript umounts /proc" >> $(METADATA) - @echo "TestTime: 5m" >> $(METADATA) - @echo "Releases: -RHEL2.1 -RHEL3 -RHEL4">> $(METADATA) - @echo "RunFor: $(PACKAGE_NAME)" >> $(METADATA) - @echo "Requires: $(PACKAGE_NAME)" >> $(METADATA) - @echo "Requires: bind-chroot" >> $(METADATA) - rhts-lint $(METADATA) diff --git a/bz209839/PURPOSE b/bz209839/PURPOSE deleted file mode 100644 index 48f208b..0000000 --- a/bz209839/PURPOSE +++ /dev/null @@ -1 +0,0 @@ -Checks that BIND unmounts the /proc file system after it is stopped. diff --git a/bz209839/main.fmf b/bz209839/main.fmf deleted file mode 100644 index 41a8ebf..0000000 --- a/bz209839/main.fmf +++ /dev/null @@ -1,24 +0,0 @@ -summary: Check if bind's initscript umounts /proc -description: | - Checks that BIND unmounts the /proc file system after it is stopped. -contact: Petr Sklenar -component: -- bind -test: ./runtest.sh -require: -- bind -- bind-chroot -duration: 5m -enabled: true -tag: -- NoRHEL3 -- NoRHEL4 -- TIPfail_infra -- TIPpass -- Tier1 -- notier -tier: '1' -extra-summary: /CoreOS/bind/bz209839 -extra-task: /CoreOS/bind/bz209839 -extra-nitrate: TC#0126542 -framework: beakerlib diff --git a/bz209839/runtest.sh b/bz209839/runtest.sh deleted file mode 100755 index e840fab..0000000 --- a/bz209839/runtest.sh +++ /dev/null @@ -1,91 +0,0 @@ -#!/bin/sh - -# Copyright (c) 2006 Red Hat, Inc. All rights reserved. This copyrighted material -# is made available to anyone wishing to use, modify, copy, or -# redistribute it subject to the terms and conditions of the GNU General -# Public License v.2. -# -# 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, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# -# Author: Jan Hutar - -# source the test script helpers -. /usr/bin/rhts-environment.sh - -set -o pipefail - -exec 5>&1 6>&2 -exec >> ${OUTPUTFILE} 2>&1 - -RESULT=FAIL -SCORE=0 - - - - -# Just to ensure named is stopped -service named stop &>/dev/null -umount /var/named/chroot/proc &> /dev/null - -# Create our own simple configuration -rhts-backup /var/named/chroot/etc/named.conf -ips=$( grep "^nameserver" /etc/resolv.conf | sed "s/^nameserver[ \t]\+\([0-9.]\+\)/\1;/" ) -cat > /var/named/chroot/etc/named.conf << EOC -options { - forwarders { $ips }; - recursion yes; -}; -EOC - -echo "# Checking mounted /proc (should be mounted once)" -grep "/proc" /proc/mounts | tee proc_before -[ $? -ne 0 ] && SCORE=$( expr $SCORE + 1 ) - -echo "# Starting named" -service named start &> /dev/null && echo "# service named start ... OK" - -echo "# Checking if bind works" -dig www.google.com +short @localhost -[ $? -ne 0 ] && SCORE=$( expr $SCORE + 1 ) - -echo "# Just listing mounted /proc" -grep "/proc" /proc/mounts | tee proc_while -# We do not want to check to carefully - new bind proc-mount are hidden -#[ $? -ne 0 ] && SCORE=$( expr $SCORE + 1 ) - -echo "# Stopping named" -service named stop &> /dev/null && echo "# service named stop ... OK" - -echo "# Checking mounted /proc (again should be mounted only once)" -grep "/proc" /proc/mounts | tee proc_after -[ $? -ne 0 ] && SCORE=$( expr $SCORE + 1 ) - -echo "# Comparing 'before' and 'after' state" -diff -u proc_before proc_after -if cmp proc_before proc_after; then - echo "# ... OK" -else - echo "# ... NO (they differs!)" - SCORE=$( expr $SCORE + 1 ) -fi - -[ $SCORE -eq 0 ] && RESULT=PASS -echo "===== $RESULT ($SCORE) =====" - -exec 1>&5 2>&6 - - - - - -rm -rf /etc/rndc.key -rm -rf /var/named/chroot/etc/named.conf -rm -rf /var/named/data/named.run - -report_result $TEST $RESULT $SCORE diff --git a/sanity/cache-server/Makefile b/sanity/cache-server/Makefile deleted file mode 100755 index 04290f8..0000000 --- a/sanity/cache-server/Makefile +++ /dev/null @@ -1,62 +0,0 @@ -# Makefile - /CoreOS/bind/sanity/cache-server -# Author: Petr Sklenar -# Location: /CoreOS/bind/sanity/cache-server - -# Copyright (c) 2008 Red Hat, Inc. All rights reserved. This copyrighted material -# is made available to anyone wishing to use, modify, copy, or -# redistribute it subject to the terms and conditions of the GNU General -# Public License v.2. -# -# 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, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - - -TOPLEVEL_NAMESPACE=/CoreOS -PACKAGE_NAME=bind -RELATIVE_PATH=sanity/cache-server - -export TEST=$(TOPLEVEL_NAMESPACE)/$(PACKAGE_NAME)/$(RELATIVE_PATH) -export TESTVERSION=2.0 - -BUILT_FILES= - -FILES=$(METADATA) runtest.sh Makefile PURPOSE - -.PHONY: all install download clean - -run: $(FILES) build - ./runtest.sh - -build: $(BUILT_FILES) - chmod a+x ./runtest.sh - -clean: - rm -f *~ $(BUILT_FILES) - - -include /usr/share/rhts/lib/rhts-make.include - - -$(METADATA): Makefile - @touch $(METADATA) - @echo "Owner: Martin Cermak " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Description: Creating and using cache server for a while" >> $(METADATA) - @echo "Type: Sanity" >> $(METADATA) - @echo "TestTime: 30m" >> $(METADATA) - @echo "RunFor: $(PACKAGE_NAME)" >> $(METADATA) - @echo "Requires: $(PACKAGE_NAME)" >> $(METADATA) - @echo "Requires: bind bind-chroot caching-nameserver bind-utils" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "RhtsRequires: library(bind/bind-setup)" >> $(METADATA) - #@echo "Releases: just rhels... " >> $(METADATA) - - rhts-lint $(METADATA) diff --git a/sanity/cache-server/PURPOSE b/sanity/cache-server/PURPOSE deleted file mode 100755 index 5e3ba63..0000000 --- a/sanity/cache-server/PURPOSE +++ /dev/null @@ -1,11 +0,0 @@ -Test Name: /CoreOS/bind/sanity/cache-server -Author: Petr Sklenar -Location: /CoreOS/bind/sanity/cache-server - - -Description of problem: -1. create cache server -2. resolve same DN via my CACHE-SERVER -3. test: Is cache server used ? Is it working ? - ---------------------- diff --git a/sanity/cache-server/main.fmf b/sanity/cache-server/main.fmf deleted file mode 100644 index 4daa5e9..0000000 --- a/sanity/cache-server/main.fmf +++ /dev/null @@ -1,31 +0,0 @@ -summary: Creating and using cache server for a while -description: "Test Name: /CoreOS/bind/sanity/cache-server\nAuthor: Petr Sklenar \n\ - Location: /CoreOS/bind/sanity/cache-server\n\n\nDescription of problem:\n1. create\ - \ cache server\n2. resolve same DN via my CACHE-SERVER\n3. test: Is cache server\ - \ used ? Is it working ? \n\n---------------------\n" -contact: Petr Sklenar -component: -- bind -test: ./runtest.sh -require: -- bind -- bind -- bind-chroot -- caching-nameserver -- bind-utils -- library(bind/bind-setup) -duration: 30m -enabled: true -tag: -- TIPfail_infra -- TIPpass -- Tier1 -- broken6.3 -- fips -- noExpectedness -- broken -relevancy: | - distro = rhel-3, rhel-4, rhel-5: False -extra-summary: /CoreOS/bind/sanity/cache-server -extra-task: /CoreOS/bind/sanity/cache-server -extra-nitrate: TC#0126539 diff --git a/sanity/cache-server/runtest.sh b/sanity/cache-server/runtest.sh deleted file mode 100755 index d77ba91..0000000 --- a/sanity/cache-server/runtest.sh +++ /dev/null @@ -1,108 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/rhts-library/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# runtest.sh of /CoreOS/bind/sanity/cache-server -# Author: Matej Susta -# Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2009 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# 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, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -#Include rhts environment -. /usr/bin/rhts-environment.sh 1 -. /usr/share/rhts-library/rhtslib.sh -. /usr/share/beakerlib/beakerlib.sh || exit 1 - - -PACKAGE="bind" -LH="127.0.0.1" -SCORE=0 - -DOMAIN1="ns1.redhat.com" -DOMAIN2="ns2.redhat.com" -DOMAIN3="ns3.redhat.com" - -LOOPS_COUNT=300 - -rlJournalStart - rlPhaseStartSetup Setup - rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory" - rlRun "pushd $TmpDir" - rlRun "rlImport bind/bind-setup" - # rlRun "wget --quiet http://nest.test.redhat.com/mnt/qa/scratch/mcermak/bind-setup.tar.gz && tar xvzf bind-setup.tar.gz > /dev/null && . bind-setup/bind-setup.sh" 0 "Imported bind-setup functions." - - bsBindSetupStart - bsDnssecDisable - bsSetUserOptions "forwarders { `bsGetDefaultNameServer`; };" - bsSetUserOptions "forward only;" - bsBindSetupDone - rlPhaseEnd - - rlPhaseStartTest Test - if ! test -e /etc/rndc.key; then - rlRun "touch /etc/rndc.key" - rlRun "chmod a+w /etc/rndc.key" - rlRun "rndc-confgen -a" - rlRun "service named restart" - fi - #rlRun "test -e /etc/rndc.key || rndc-confgen -a" - rlRun "/usr/sbin/rndc flush" 0 "Flushing caches" - rlRun "SERVER_RESPONDS=TRUE" - rlRun "/usr/bin/dig @$LH $DOMAIN1 +short || SERVER_RESPONDS=FALSE" - rlRun "/usr/bin/dig @$LH $DOMAIN2 +short || SERVER_RESPONDS=FALSE" - rlRun "/usr/bin/dig @$LH $DOMAIN3 +short || SERVER_RESPONDS=FALSE" - - if [ "$SERVER_RESPONDS" == 'FALSE' ]; then - rlRun "false" 0 "Our domains did not get resolved." - fi - - rlRun "/usr/sbin/rndc dumpdb -cache &>/dev/null" 0 "Dupming cache" - rlRun "/usr/sbin/rndc flush &>/dev/null" 0 "Flushing caches" - - if [ "$SERVER_RESPONDS" == 'TRUE' ]; then - for i in `seq 1 $LOOPS_COUNT`;do - /usr/bin/dig @localhost $DOMAIN1 &>/dev/null || let "SCORE += 1" - #echo "1.domain1" - /usr/bin/dig @localhost $DOMAIN2 &>/dev/null || let "SCORE += 1" - #echo "1.domain2" - /usr/bin/dig @localhost $DOMAIN3 &>/dev/null || let "SCORE += 1" - #echo "1.domain3" - /usr/bin/dig @localhost $DOMAIN1 &>/dev/null || let "SCORE += 1" - #echo "2.domain1" - /usr/bin/dig @localhost $DOMAIN2 &>/dev/null || let "SCORE += 1" - #echo "2.domain2" - /usr/bin/dig @localhost $DOMAIN3 &>/dev/null || let "SCORE += 1" - #echo "2.domain3" - - /usr/sbin/rndc flush &>/dev/null - done - fi - - rlAssert0 "Checking return value after loops" "$SCORE" - - rlPhaseEnd - - - rlPhaseStartCleanup Cleanup - bsBindSetupCleanup - rlRun "popd" - rlRun "rm -r $TmpDir" 0 "Removing tmp directory" - rlPhaseEnd -rlJournalEnd diff --git a/sanity/main.fmf b/sanity/main.fmf deleted file mode 100644 index 46c0471..0000000 --- a/sanity/main.fmf +++ /dev/null @@ -1 +0,0 @@ -framework: beakerlib