removing old and not functional tests

This commit is contained in:
Petr Sklenar 2022-01-04 12:22:08 +01:00
commit aaa71be5b8
179 changed files with 0 additions and 7504 deletions

View file

@ -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 <adzilsky@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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 <adzilsky@redhat.com>" > $(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)

View file

@ -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 <adzilsky@redhat.com>
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

View file

@ -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 <psklenar@redhat.com>
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

View file

@ -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 <adzilsky@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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

View file

@ -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 <mcermak@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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 <mcermak@redhat.com>" > $(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)

View file

@ -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 <mcermak@redhat.com>
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+

View file

@ -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 <psklenar@redhat.com>
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

View file

@ -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 <mcermak@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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

View file

@ -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 <omejzlik@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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 <omejzlik@redhat.com>" > $(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)

View file

@ -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 <omejzlik@redhat.com>
Bug summary: bind: disable GeoIP support
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1609856

View file

@ -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 <psklenar@redhat.com>
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

View file

@ -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";

View file

@ -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 <omejzlik@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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

View file

@ -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 <mcermak@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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 <mcermak@redhat.com>" > $(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)

View file

@ -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 <mcermak@redhat.com>
Bug summary: bind_chroot update overwrites user supplied ROOTDIR setting
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=451450

View file

@ -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 <psklenar@redhat.com>
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

View file

@ -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 <mcermak@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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

View file

@ -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 <mcermak@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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 <mcermak@redhat.com>" > $(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)

View file

@ -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 <mcermak@redhat.com>
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.

View file

@ -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 <psklenar@redhat.com>
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

View file

@ -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 <mcermak@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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

View file

@ -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 <msusta@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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 <mcermak@redhat.com>" > $(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)

View file

@ -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 <msusta@redhat.com>
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.

View file

@ -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 <psklenar@redhat.com>
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

View file

@ -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 <msusta@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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

View file

@ -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 <msusta@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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 <mcermak@redhat.com>" > $(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)

View file

@ -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 <msusta@redhat.com>
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:
<no output>
Additional info:

View file

@ -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:
<no output>
Additional info:
contact: Petr Sklenar <psklenar@redhat.com>
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

View file

@ -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 <msusta@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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

View file

@ -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 <msusta@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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 <mcermak@redhat.com>" > $(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)

View file

@ -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 <msusta@redhat.com>
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

View file

@ -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 <psklenar@redhat.com>
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

View file

@ -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";

View file

@ -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 <msusta@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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

View file

@ -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 <mcermak@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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 <mcermak@redhat.com>" > $(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)

View file

@ -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 <mcermak@redhat.com>
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.

View file

@ -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 <psklenar@redhat.com>
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

View file

@ -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 <mcermak@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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

View file

@ -1,65 +0,0 @@
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Makefile of /CoreOS/bind/Regression/bz523052-named-segfault
# Description: Test for bz523052 (named segfault)
# Author: Martin Cermak <mcermak@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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 <mcermak@redhat.com>" > $(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)

View file

@ -1,14 +0,0 @@
PURPOSE of /CoreOS/bind/Regression/bz523052-named-segfault
Description: Test for bz523052 (named segfault)
Author: Martin Cermak <mcermak@redhat.com>
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+

View file

@ -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 <psklenar@redhat.com>
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

View file

@ -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 <mcermak@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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

View file

@ -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 <dollson@localhost.localdomain>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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 <mcermak@redhat.com>" > $(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)

View file

@ -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 <dollson@localhost.localdomain>
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.

View file

@ -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 <psklenar@redhat.com>
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

View file

@ -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 <dollson@localhost.localdomain>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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

View file

@ -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 <mcermak@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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 <psklenar@redhat.com>" > $(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)

View file

@ -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 <mcermak@redhat.com>
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
<some-existing-fqdn> <some-unexisting-dns-server> then we get correct IP
address of the <some-existing-fqdn> which is wrong. With the patched version we
get "no servers could be reached", which is OK.
Fixed in RHEL5.6+

View file

@ -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
<some-existing-fqdn> <some-unexisting-dns-server> then we get correct IP
address of the <some-existing-fqdn> which is wrong. With the patched version we
get "no servers could be reached", which is OK.
Fixed in RHEL5.6+
contact: Petr Sklenar <psklenar@redhat.com>
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

View file

@ -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 <mcermak@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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

View file

@ -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 <asersen@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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 <mcermak@redhat.com>" > $(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)

View file

@ -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 <asersen@redhat.com>
Bug summary: host command ignores resolv.conf options
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=570851
Fixed in RHEL5.6+

View file

@ -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 <psklenar@redhat.com>
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

View file

@ -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 <asersen@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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

View file

@ -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 <mcermak@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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 <mcermak@redhat.com>" > $(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)

View file

@ -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 <mcermak@redhat.com>
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.
-----------------------------------------------------------------------------------------

View file

@ -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 <psklenar@redhat.com>
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

View file

@ -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 <mcermak@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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

View file

@ -1,65 +0,0 @@
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Makefile of /CoreOS/bind/Regression/max-open-files-1024-WARNING
# Description: max-open-files-1024-WARNING
# Author: Martin Cermak <mcermak@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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 <mcermak@redhat.com>" > $(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)

View file

@ -1,5 +0,0 @@
PURPOSE of /CoreOS/bind/Regression/max-open-files-1024-WARNING
Description: max-open-files-1024-WARNING
Author: Martin Cermak <mcermak@redhat.com>
Bug summary: max open files (1024) WARNING
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=663112

View file

@ -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 <psklenar@redhat.com>
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

View file

@ -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 <mcermak@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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"
# <test>
rlRun "grep 'max open files.*is smaller than max sockets' diff.txt" 1
# </test>
rlPhaseEnd
rlPhaseStartCleanup
bsBindSetupCleanup
rlRun "popd"
rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
rlPhaseEnd
rlJournalPrintText
rlJournalEnd

View file

@ -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 <rhack@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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 <rhack@redhat.com>" > $(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)

View file

@ -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 <rhack@redhat.com>
Bug summary: named allocates new memory on each reload
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1790879

View file

@ -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 <rhack@redhat.com>
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

View file

@ -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 <rhack@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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

View file

@ -1,65 +0,0 @@
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Makefile of /CoreOS/bind/Regression/nslookup-fails-against-authoritative-dns
# Description: nslookup-fails-against-authoritative-dns
# Author: Martin Cermak <mcermak@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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 <mcermak@redhat.com>" > $(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)

View file

@ -1,5 +0,0 @@
PURPOSE of /CoreOS/bind/Regression/nslookup-fails-against-authoritative-dns
Description: nslookup-fails-against-authoritative-dns
Author: Martin Cermak <mcermak@redhat.com>
Bug summary: nslookup fails against authoritative dns configured with recursion off
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=726120

View file

@ -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";
};

View file

@ -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";

View file

@ -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 <psklenar@redhat.com>
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

View file

@ -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 <mcermak@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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

View file

@ -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 <mcermak@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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 <mcermak@redhat.com>" > $(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)

View file

@ -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 <mcermak@redhat.com>
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

View file

@ -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 <psklenar@redhat.com>
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

View file

@ -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 <mcermak@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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"
# <test>
rlRun "grep 'the working directory is not writable' diff.txt" 1
# </test>
rlPhaseEnd
rlPhaseStartCleanup
bsBindSetupCleanup
rlRun "popd"
rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
rlPhaseEnd
rlJournalPrintText
rlJournalEnd

View file

@ -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 <mcermak@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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 <mcermak@redhat.com>" > $(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)

View file

@ -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 <mcermak@redhat.com>
Bug summary: Zone transfers fail with particular zone setups
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=758873

View file

@ -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 <psklenar@redhat.com>
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

View file

@ -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";
};

View file

@ -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 <mcermak@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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

View file

@ -1,64 +0,0 @@
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Makefile of /CoreOS/bind/Sanity/CAA-support
# Description: sanity testing of CAA support
# Author: Petr Sklenar <psklenar@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Copyright (c) 2016 Red Hat, Inc.
#
# This program is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation, either version 2 of
# the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see http://www.gnu.org/licenses/.
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export TEST=/CoreOS/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 <psklenar@redhat.com>" > $(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)

View file

@ -1,3 +0,0 @@
PURPOSE of /CoreOS/bind/Sanity/CAA-support
Description: sanity testing of CAA support
Author: Petr Sklenar <psklenar@redhat.com>

View file

@ -1,25 +0,0 @@
summary: sanity testing of CAA support
description: ''
contact: Petr Sklenar <psklenar@redhat.com>
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

View file

@ -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 <psklenar@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Copyright (c) 2016 Red Hat, Inc.
#
# This program is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation, either version 2 of
# the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see http://www.gnu.org/licenses/.
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Include Beaker environment
#. /usr/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 <<EOT >> /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

View file

@ -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"

View file

@ -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"

View file

@ -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 <psklenar@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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 <psklenar@redhat.com>" > $(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)

View file

@ -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 <psklenar@redhat.com>
Bug summary: Include new KSK-2017 as additional trust anchor
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1452635

View file

@ -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 <psklenar@redhat.com>
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

View file

@ -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 <psklenar@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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

View file

@ -1,63 +0,0 @@
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Makefile of /CoreOS/bind/Sanity/Master-server-chrooted-reverse-lookup
# Description: Set up master nameserver, test it.
# Author: Martin Cermak <mcermak@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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 <mcermak@redhat.com>" > $(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)

View file

@ -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 <mcermak@redhat.com>

View file

@ -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 <mcermak@redhat.com>
contact: Petr Sklenar <psklenar@redhat.com>
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

View file

@ -1,11 +0,0 @@
options {
directory "/var/named";
allow-query { any; };
};
zone "1.0.10.in-addr.arpa" IN {
type master;
file "<DOMAIN>.rr.zone";
allow-update { none; };
};

View file

@ -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 <mcermak@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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/<DOMAIN>/$TDOMAIN/g\" /etc/named.conf"
# zonefile
rlRun "cp $ORIGPWD/zonefile $TZONEFILE"
rlRun "chmod a+r $TZONEFILE"
rlRun "sed -i \"s/<DOMAIN>/$TDOMAIN/g\" $TZONEFILE"
rlRun "sed -i \"s/<SERIAL>/$SERIAL/g\" $TZONEFILE"
rlRun "sed -i \"s/<NO1>/$NO1/g\" $TZONEFILE"
rlRun "sed -i \"s/<NO2>/$NO2/g\" $TZONEFILE"
rlRun "sed -i \"s/<NO3>/$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

View file

@ -1,16 +0,0 @@
$ORIGIN 1.0.10.in-addr.arpa.
$TTL 86400
@ IN SOA dns1.<DOMAIN>. hostmaster.<DOMAIN>. (
<SERIAL> ; 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.<DOMAIN>.
IN NS dns2.<DOMAIN>.
<NO1> IN PTR alice.<DOMAIN>.
<NO2> IN PTR betty.<DOMAIN>.
<NO3> IN PTR charlie.<DOMAIN>.

View file

@ -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 <pemensik@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# 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 <pemensik@redhat.com>" > $(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)

View file

@ -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 <pemensik@redhat.com>

Some files were not shown because too many files have changed in this diff Show more