removing old and not functional tests
This commit is contained in:
parent
45a1f718bf
commit
c0e56fd799
147 changed files with 0 additions and 339693 deletions
|
|
@ -1,64 +0,0 @@
|
|||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Makefile of /CoreOS/bind/Regression/Regression-BIND-9-11-listens-on-53-even-it
|
||||
# Description: Test for BZ#1753259 (Regression BIND 9.11 listens on []53 even it isn't)
|
||||
# Author: Petr Sklenar <psklenar@redhat.com>
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Copyright (c) 2019 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/Regression-BIND-9-11-listens-on-53-even-it
|
||||
export TESTVERSION=1.0
|
||||
|
||||
BUILT_FILES=
|
||||
|
||||
FILES=$(METADATA) runtest.sh Makefile PURPOSE
|
||||
|
||||
.PHONY: all install download clean
|
||||
|
||||
run: $(FILES) build
|
||||
./runtest.sh
|
||||
|
||||
build: $(BUILT_FILES)
|
||||
test -x runtest.sh || chmod a+x runtest.sh
|
||||
|
||||
clean:
|
||||
rm -f *~ $(BUILT_FILES)
|
||||
|
||||
|
||||
include $(realpath /usr/share/rhts/lib/rhts-make.include)
|
||||
|
||||
$(METADATA): Makefile
|
||||
@echo "Owner: Petr Sklenar <psklenar@redhat.com>" > $(METADATA)
|
||||
@echo "Name: $(TEST)" >> $(METADATA)
|
||||
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
||||
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
||||
@echo "Description: Test for BZ#1753259 (Regression BIND 9.11 listens on []53 even it isn't)" >> $(METADATA)
|
||||
@echo "Type: Regression" >> $(METADATA)
|
||||
@echo "TestTime: 15m" >> $(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: 1753259" >> $(METADATA)
|
||||
@echo "Releases: -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA)
|
||||
|
||||
[ -x /usr/bin/rhts-lint ] && rhts-lint $(METADATA)
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
PURPOSE of /CoreOS/bind/Regression/Regression-BIND-9-11-listens-on-53-even-it
|
||||
Description: Test for BZ#1753259 (Regression BIND 9.11 listens on []53 even it isn't)
|
||||
Author: Petr Sklenar <psklenar@redhat.com>
|
||||
Bug summary: Regression: BIND 9.11 listens on [::]:53 even it isn't configured to do so
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1753259
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
summary: Test for BZ#1753259 (Regression BIND 9.11 listens on []53 even it isn't)
|
||||
description: |
|
||||
Bug summary: Regression: BIND 9.11 listens on [::]:53 even it isn't configured to do so
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1753259
|
||||
contact: Petr Sklenar <psklenar@redhat.com>
|
||||
component:
|
||||
- bind
|
||||
test: ./runtest.sh
|
||||
require:
|
||||
- bind
|
||||
duration: 15m
|
||||
enabled: true
|
||||
tag:
|
||||
- NoRHEL4
|
||||
- NoRHEL5
|
||||
- TIPpass
|
||||
- TIPpass_infra
|
||||
relevancy: |
|
||||
distro = rhel-4, rhel-5: False
|
||||
extra-summary: /CoreOS/bind/Regression/Regression-BIND-9-11-listens-on-53-even-it
|
||||
extra-task: /CoreOS/bind/Regression/Regression-BIND-9-11-listens-on-53-even-it
|
||||
extra-nitrate: TC#0605275
|
||||
|
|
@ -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/Regression/Regression-BIND-9-11-listens-on-53-even-it
|
||||
# Description: Test for BZ#1753259 (Regression BIND 9.11 listens on []53 even it isn't)
|
||||
# Author: Petr Sklenar <psklenar@redhat.com>
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Copyright (c) 2019 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
|
||||
cat << EOF > /etc/named.my
|
||||
options {
|
||||
listen-on port 53 { 127.0.0.1; };
|
||||
};
|
||||
|
||||
EOF
|
||||
rlRun "named -u named -d10 -c /etc/named.my"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest
|
||||
rlRun "pgrep named"
|
||||
rlRun "ss -lnp | grep named | grep :53"
|
||||
if rpm -q rpm | grep el7;then
|
||||
rlRun "ss -lnp -f inet6 | grep named | grep :53" 1 "EL7 ONLY : NO LISTENING ON IPv6"
|
||||
else
|
||||
rlRun "ss -lnp -f inet6 | grep named | grep :53" 0 "LISTENING ON IPv6 by default"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup
|
||||
rm -rf /etc/named.my
|
||||
rlRun "pkill named"
|
||||
rlPhaseEnd
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
|
|
@ -1,64 +0,0 @@
|
|||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Makefile of /CoreOS/bind/Regression/bind-Incorrect-documentation-of-krb5-subdomain
|
||||
# Description: Test for BZ#1631371 (bind Incorrect documentation of krb5-subdomain and)
|
||||
# Author: Robin Hack <rhack@redhat.com>
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Copyright (c) 2019 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/bind-Incorrect-documentation-of-krb5-subdomain
|
||||
export TESTVERSION=1.0
|
||||
|
||||
BUILT_FILES=
|
||||
|
||||
FILES=$(METADATA) runtest.sh Makefile PURPOSE
|
||||
|
||||
.PHONY: all install download clean
|
||||
|
||||
run: $(FILES) build
|
||||
./runtest.sh
|
||||
|
||||
build: $(BUILT_FILES)
|
||||
test -x runtest.sh || chmod a+x runtest.sh
|
||||
|
||||
clean:
|
||||
rm -f *~ $(BUILT_FILES)
|
||||
|
||||
|
||||
include $(realpath /usr/share/rhts/lib/rhts-make.include)
|
||||
|
||||
$(METADATA): Makefile
|
||||
@echo "Owner: Robin Hack <rhack@redhat.com>" > $(METADATA)
|
||||
@echo "Name: $(TEST)" >> $(METADATA)
|
||||
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
||||
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
||||
@echo "Description: Test for BZ#1631371 (bind Incorrect documentation of krb5-subdomain and)" >> $(METADATA)
|
||||
@echo "Type: Regression" >> $(METADATA)
|
||||
@echo "TestTime: 20m" >> $(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: 1631371" >> $(METADATA)
|
||||
@echo "Releases: -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA)
|
||||
|
||||
[ -x /usr/bin/rhts-lint ] && rhts-lint $(METADATA)
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
PURPOSE of /CoreOS/bind/Regression/bind-Incorrect-documentation-of-krb5-subdomain
|
||||
Description: Test for BZ#1631371 (bind Incorrect documentation of krb5-subdomain and)
|
||||
Author: Robin Hack <rhack@redhat.com>
|
||||
Bug summary: bind: Incorrect documentation of krb5-subdomain and ms-subdomain update policies [rhel-7]
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1631371
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
summary: Test for BZ#1631371 (bind Incorrect documentation of krb5-subdomain and)
|
||||
description: |
|
||||
Bug summary: bind: Incorrect documentation of krb5-subdomain and ms-subdomain update policies [rhel-7]
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1631371
|
||||
contact: None <rhack@redhat.com>
|
||||
component:
|
||||
- bind
|
||||
test: ./runtest.sh
|
||||
require:
|
||||
- bind
|
||||
duration: 20m
|
||||
enabled: true
|
||||
tag:
|
||||
- NoRHEL4
|
||||
- NoRHEL5
|
||||
- TIPfail_infra
|
||||
- TIPpass
|
||||
relevancy: |
|
||||
distro = rhel-4, rhel-5: False
|
||||
extra-summary: /CoreOS/bind/Regression/bind-Incorrect-documentation-of-krb5-subdomain
|
||||
extra-task: /CoreOS/bind/Regression/bind-Incorrect-documentation-of-krb5-subdomain
|
||||
extra-nitrate: TC#0602232
|
||||
|
|
@ -1,50 +0,0 @@
|
|||
#!/bin/bash
|
||||
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# runtest.sh of /CoreOS/bind/Regression/bind-Incorrect-documentation-of-krb5-subdomain
|
||||
# Description: Test for BZ#1631371 (bind Incorrect documentation of krb5-subdomain and)
|
||||
# Author: Robin Hack <rhack@redhat.com>
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Copyright (c) 2019 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
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest
|
||||
if rlIsRHEL '>=8'; then
|
||||
rlRun "grep 'grant EXAMPLE.COM ms-self . A AAAA' /usr/share/doc/bind/Bv9ARM*"
|
||||
else
|
||||
rlRun "grep 'grant EXAMPLE.COM ms-self . A AAAA' /usr/share/doc/bind-*/Bv9ARM*"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup
|
||||
rlPhaseEnd
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
|
|
@ -1,63 +0,0 @@
|
|||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Makefile of /CoreOS/bind/Regression/bz1064045-bindutils-nsupdate-r-SEGVs
|
||||
# Description: Test for BZ#1064045 (bindutils nsupdate -r SEGVs)
|
||||
# Author: Juraj Marko <jmarko@redhat.com>
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Copyright (c) 2014 Red Hat, Inc.
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License as
|
||||
# published by the Free Software Foundation, either version 2 of
|
||||
# the License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be
|
||||
# useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
# PURPOSE. See the GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see http://www.gnu.org/licenses/.
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
export TEST=/CoreOS/bind/Regression/bz1064045-bindutils-nsupdate-r-SEGVs
|
||||
export TESTVERSION=1.0
|
||||
|
||||
BUILT_FILES=
|
||||
|
||||
FILES=$(METADATA) runtest.sh Makefile PURPOSE
|
||||
|
||||
.PHONY: all install download clean
|
||||
|
||||
run: $(FILES) build
|
||||
./runtest.sh
|
||||
|
||||
build: $(BUILT_FILES)
|
||||
test -x runtest.sh || chmod a+x runtest.sh
|
||||
|
||||
clean:
|
||||
rm -f *~ $(BUILT_FILES)
|
||||
|
||||
|
||||
include $(realpath /usr/share/rhts/lib/rhts-make.include)
|
||||
|
||||
$(METADATA): Makefile
|
||||
@echo "Owner: Juraj Marko <jmarko@redhat.com>" > $(METADATA)
|
||||
@echo "Name: $(TEST)" >> $(METADATA)
|
||||
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
||||
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
||||
@echo "Description: Test for BZ#1064045 (bindutils nsupdate -r SEGVs)" >> $(METADATA)
|
||||
@echo "Type: Regression" >> $(METADATA)
|
||||
@echo "TestTime: 5m" >> $(METADATA)
|
||||
@echo "RunFor: bind" >> $(METADATA)
|
||||
@echo "Requires: bind bind-utils" >> $(METADATA)
|
||||
@echo "Priority: Normal" >> $(METADATA)
|
||||
@echo "License: GPLv2+" >> $(METADATA)
|
||||
@echo "Confidential: no" >> $(METADATA)
|
||||
@echo "Destructive: no" >> $(METADATA)
|
||||
@echo "Bug: 1064045" >> $(METADATA)
|
||||
|
||||
[ -x /usr/bin/rhts-lint ] && rhts-lint $(METADATA)
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
PURPOSE of /CoreOS/bind/Regression/bz1064045-bindutils-nsupdate-r-SEGVs
|
||||
Description: Test for BZ#1064045 (bindutils nsupdate -r SEGVs)
|
||||
Author: Juraj Marko <jmarko@redhat.com>
|
||||
Bug summary: bindutils nsupdate -r SEGVs
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1064045
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
summary: Test for BZ#1064045 (bindutils nsupdate -r SEGVs)
|
||||
description: |
|
||||
Bug summary: bindutils nsupdate -r SEGVs
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1064045
|
||||
contact: Petr Sklenar <psklenar@redhat.com>
|
||||
component:
|
||||
- bind
|
||||
test: ./runtest.sh
|
||||
require:
|
||||
- bind
|
||||
- bind-utils
|
||||
duration: 5m
|
||||
enabled: true
|
||||
tag:
|
||||
- TIPfail_infra
|
||||
- TIPpass
|
||||
relevancy: |
|
||||
distro = rhel-5 : False
|
||||
extra-summary: /CoreOS/bind/Regression/bz1064045-bindutils-nsupdate-r-SEGVs
|
||||
extra-task: /CoreOS/bind/Regression/bz1064045-bindutils-nsupdate-r-SEGVs
|
||||
extra-nitrate: TC#0399715
|
||||
|
|
@ -1,50 +0,0 @@
|
|||
#!/bin/bash
|
||||
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# runtest.sh of /CoreOS/bind/Regression/bz1064045-bindutils-nsupdate-r-SEGVs
|
||||
# Description: Test for BZ#1064045 (bindutils nsupdate -r SEGVs)
|
||||
# Author: Juraj Marko <jmarko@redhat.com>
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Copyright (c) 2014 Red Hat, Inc.
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License as
|
||||
# published by the Free Software Foundation, either version 2 of
|
||||
# the License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be
|
||||
# useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
# PURPOSE. See the GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see http://www.gnu.org/licenses/.
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
# Include Beaker environment
|
||||
. /usr/bin/rhts-environment.sh || exit 1
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PACKAGE="bind"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup
|
||||
rlAssertRpm $PACKAGE
|
||||
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
||||
rlRun "pushd $TmpDir"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest
|
||||
rlRun "timeout 5 nsupdate -r 5 &>/dev/null" 124,0 "This will wait 5 sec, if and end with 124 if it segfault it return 139"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup
|
||||
rlRun "popd"
|
||||
rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
|
||||
rlPhaseEnd
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
|
|
@ -1,64 +0,0 @@
|
|||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Makefile of /CoreOS/bind/Regression/bz1112356-RRL-slip-behavior-is-incorrect-when-set-to-1
|
||||
# Description: Test for BZ#1112356 (RRL slip behavior is incorrect when set to 1)
|
||||
# Author: Tereza Cerna <tcerna@redhat.com>
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Copyright (c) 2015 Red Hat, Inc.
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License as
|
||||
# published by the Free Software Foundation, either version 2 of
|
||||
# the License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be
|
||||
# useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
# PURPOSE. See the GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see http://www.gnu.org/licenses/.
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
export TEST=/CoreOS/bind/Regression/bz1112356-RRL-slip-behavior-is-incorrect-when-set-to-1
|
||||
export TESTVERSION=1.1
|
||||
|
||||
BUILT_FILES=
|
||||
|
||||
FILES=$(METADATA) runtest.sh Makefile PURPOSE named.conf
|
||||
|
||||
.PHONY: all install download clean
|
||||
|
||||
run: $(FILES) build
|
||||
./runtest.sh
|
||||
|
||||
build: $(BUILT_FILES)
|
||||
test -x runtest.sh || chmod a+x runtest.sh
|
||||
|
||||
clean:
|
||||
rm -f *~ $(BUILT_FILES)
|
||||
|
||||
|
||||
include $(realpath /usr/share/rhts/lib/rhts-make.include)
|
||||
|
||||
$(METADATA): Makefile
|
||||
@echo "Owner: Tereza Cerna <tcerna@redhat.com>" > $(METADATA)
|
||||
@echo "Name: $(TEST)" >> $(METADATA)
|
||||
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
||||
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
||||
@echo "Description: Test for BZ#1112356 (RRL slip behavior is incorrect when set to 1)" >> $(METADATA)
|
||||
@echo "Type: Regression" >> $(METADATA)
|
||||
@echo "TestTime: 10m" >> $(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: 1112356" >> $(METADATA)
|
||||
@echo "Releases: -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA)
|
||||
|
||||
[ -x /usr/bin/rhts-lint ] && rhts-lint $(METADATA)
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
PURPOSE of /CoreOS/bind/Regression/bz1112356-RRL-slip-behavior-is-incorrect-when-set-to-1
|
||||
Description: Test for BZ#1112356 (RRL slip behavior is incorrect when set to 1)
|
||||
Author: Tereza Cerna <tcerna@redhat.com>
|
||||
Bug summary: RRL slip behavior is incorrect when set to 1
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1112356
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
summary: Test for BZ#1112356 (RRL slip behavior is incorrect when set to 1)
|
||||
description: |
|
||||
Bug summary: RRL slip behavior is incorrect when set to 1
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1112356
|
||||
contact: Petr Sklenar <psklenar@redhat.com>
|
||||
component:
|
||||
- bind
|
||||
test: ./runtest.sh
|
||||
require:
|
||||
- bind
|
||||
duration: 10m
|
||||
enabled: true
|
||||
tag:
|
||||
- NoRHEL4
|
||||
- NoRHEL5
|
||||
- TIPfail
|
||||
- destructive
|
||||
- notip
|
||||
relevancy: |
|
||||
distro = rhel-4, rhel-5: False
|
||||
distro < rhel-6.7: False
|
||||
extra-summary: /CoreOS/bind/Regression/bz1112356-RRL-slip-behavior-is-incorrect-when-set-to-1
|
||||
extra-task: /CoreOS/bind/Regression/bz1112356-RRL-slip-behavior-is-incorrect-when-set-to-1
|
||||
extra-nitrate: TC#0465593
|
||||
|
|
@ -1,71 +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 yes;
|
||||
|
||||
dnssec-enable yes;
|
||||
dnssec-validation yes;
|
||||
dnssec-lookaside auto;
|
||||
|
||||
/* Path to ISC DLV key */
|
||||
bindkeys-file "/etc/named.iscdlv.key";
|
||||
|
||||
managed-keys-directory "/var/named/dynamic";
|
||||
|
||||
rate-limit {
|
||||
responses-per-second 5;
|
||||
all-per-second 0;
|
||||
window 5;
|
||||
log-only no;
|
||||
ipv4-prefix-length 24;
|
||||
ipv6-prefix-length 56;
|
||||
slip 1;
|
||||
max-table-size 10000;
|
||||
min-table-size 1000;
|
||||
};
|
||||
};
|
||||
|
||||
logging {
|
||||
channel default_debug {
|
||||
file "data/named.run";
|
||||
severity dynamic;
|
||||
print-time yes;
|
||||
print-severity yes;
|
||||
print-category yes;
|
||||
};
|
||||
category default { default_debug; };
|
||||
category general { default_debug; };
|
||||
category database { default_debug; };
|
||||
category security { default_debug; };
|
||||
category config { default_debug; };
|
||||
category resolver { default_debug; };
|
||||
category client { default_debug; };
|
||||
category unmatched { default_debug; };
|
||||
category network { default_debug; };
|
||||
category queries { default_debug; };
|
||||
category query-errors { default_debug; };
|
||||
category dispatch { default_debug; };
|
||||
category rate-limit { default_debug; };
|
||||
};
|
||||
|
||||
zone "." IN {
|
||||
type hint;
|
||||
file "named.ca";
|
||||
};
|
||||
|
||||
include "/etc/named.rfc1912.zones";
|
||||
include "/etc/named.root.key";
|
||||
|
|
@ -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/bz1112356-RRL-slip-behavior-is-incorrect-when-set-to-1
|
||||
# Description: Test for BZ#1112356 (RRL slip behavior is incorrect when set to 1)
|
||||
# Author: Tereza Cerna <tcerna@redhat.com>
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Copyright (c) 2015 Red Hat, Inc.
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License as
|
||||
# published by the Free Software Foundation, either version 2 of
|
||||
# the License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be
|
||||
# useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
# PURPOSE. See the GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see http://www.gnu.org/licenses/.
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
# Include Beaker environment
|
||||
. /usr/bin/rhts-environment.sh || exit 1
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PACKAGE="bind"
|
||||
|
||||
rlJournalStart
|
||||
|
||||
rlPhaseStartSetup
|
||||
rlAssertRpm $PACKAGE
|
||||
rlFileBackup /etc/named.conf
|
||||
rlFileBackup /etc/sysconfig/named
|
||||
rlFileBackup /var/named/data/named.run
|
||||
rlRun "cat named.conf > /etc/named.conf" 0 "Set /etc/named.conf"
|
||||
rlRun "echo \" \" > /etc/sysconfig/named" 0 "Stop writing in chroot"
|
||||
rlRun "echo \" \" > /var/named/data/named.run" 0 "Clear log file /var/named/data/named.run"
|
||||
rlRun "chown named:named /var/named/data/named.run" 0 "Setting the rights to named service"
|
||||
rlServiceStart named
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest
|
||||
for i in `seq 1 100`; do (dig @127.0.0.1 seznam.cz +ignore +retry=0 +time=5&); done
|
||||
sleep 15
|
||||
for i in `seq 1 100`; do (dig @127.0.0.1 seznam.cz +ignore +retry=0 +time=5&); done
|
||||
sleep 15
|
||||
rlAssertNotEquals "Slip response exists" `grep slip /var/named/data/named.run | wc -l` 0
|
||||
rlAssertEquals "Drop response exists" `grep drop /var/named/data/named.run | wc -l` 0
|
||||
cat /var/named/data/named.run
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup
|
||||
sleep 5m
|
||||
rlFileRestore
|
||||
rlServiceRestore named
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
|
|
@ -1,65 +0,0 @@
|
|||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Makefile of /CoreOS/bind/Regression/bz1306504-lwresd-segfault-at-start-lookup
|
||||
# Description: Test for BZ#1306504 (lwresd segfault at start_lookup)
|
||||
# Author: Petr Sklenar <psklenar@redhat.com>
|
||||
# Based on pavlix's https://bugzilla.redhat.com/show_bug.cgi?id=1306504#c21
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# 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/Regression/bz1306504-lwresd-segfault-at-start-lookup
|
||||
export TESTVERSION=1.0
|
||||
|
||||
BUILT_FILES=
|
||||
|
||||
FILES=$(METADATA) runtest.sh Makefile PURPOSE client.py server.sh
|
||||
|
||||
.PHONY: all install download clean
|
||||
|
||||
run: $(FILES) build
|
||||
./runtest.sh
|
||||
|
||||
build: $(BUILT_FILES)
|
||||
test -x runtest.sh || chmod a+x runtest.sh
|
||||
|
||||
clean:
|
||||
rm -f *~ $(BUILT_FILES)
|
||||
|
||||
|
||||
include $(realpath /usr/share/rhts/lib/rhts-make.include)
|
||||
|
||||
$(METADATA): Makefile
|
||||
@echo "Owner: Petr Sklenar <psklenar@redhat.com>" > $(METADATA)
|
||||
@echo "Name: $(TEST)" >> $(METADATA)
|
||||
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
||||
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
||||
@echo "Description: Test for BZ#1306504 (lwresd segfault at start_lookup)" >> $(METADATA)
|
||||
@echo "Type: Regression" >> $(METADATA)
|
||||
@echo "TestTime: 50m" >> $(METADATA)
|
||||
@echo "RunFor: bind" >> $(METADATA)
|
||||
@echo "Requires: bind bind-libs python36 python3" >> $(METADATA)
|
||||
@echo "Priority: Normal" >> $(METADATA)
|
||||
@echo "License: GPLv2+" >> $(METADATA)
|
||||
@echo "Confidential: no" >> $(METADATA)
|
||||
@echo "Destructive: no" >> $(METADATA)
|
||||
@echo "Bug: 1306504" >> $(METADATA)
|
||||
@echo "Releases: -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA)
|
||||
|
||||
[ -x /usr/bin/rhts-lint ] && rhts-lint $(METADATA)
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
PURPOSE of /CoreOS/bind/Regression/bz1306504-lwresd-segfault-at-start-lookup
|
||||
Description: Test for BZ#1306504 (lwresd segfault at start_lookup)
|
||||
Author: Petr Sklenar <psklenar@redhat.com>
|
||||
Bug summary: lwresd: segfault at start_lookup
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1306504
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
# Needed by python2, but won't hurt python3
|
||||
from __future__ import print_function
|
||||
|
||||
import sys
|
||||
from ctypes import *
|
||||
|
||||
libname = "liblwres.so"
|
||||
if len(sys.argv)>1:
|
||||
libname = sys.argv[1]
|
||||
|
||||
lwres = CDLL(libname)
|
||||
lwres.lwres_getrrsetbyname.argtypes = (c_char_p, c_int, c_int, c_int, c_void_p)
|
||||
|
||||
name = 3 * ("a" * 63 + ".") + "a" * 61
|
||||
print("{0} ({1})".format(name, len(name)))
|
||||
if sys.version_info[0] > 2:
|
||||
name = str.encode(name)
|
||||
result = lwres.lwres_getrrsetbyname(name, 1, 1, 0, None)
|
||||
print(result)
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
summary: Test for BZ#1306504 (lwresd segfault at start_lookup)
|
||||
description: |
|
||||
Bug summary: lwresd: segfault at start_lookup
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1306504
|
||||
contact: Petr Sklenar <psklenar@redhat.com>
|
||||
component:
|
||||
- bind
|
||||
test: ./runtest.sh
|
||||
require:
|
||||
- bind
|
||||
- bind-libs
|
||||
- python36
|
||||
- python3
|
||||
duration: 50m
|
||||
enabled: false
|
||||
tag:
|
||||
- NoRHEL4
|
||||
- NoRHEL5
|
||||
- TIP_fedora_fail
|
||||
- TIPfail_infra
|
||||
- TIPpass
|
||||
- Tier1
|
||||
tier: '1'
|
||||
adjust:
|
||||
enabled: true
|
||||
when: distro ~<= fedora-33
|
||||
because: needs BIND 9.11 lwres
|
||||
extra-summary: /CoreOS/bind/Regression/bz1306504-lwresd-segfault-at-start-lookup
|
||||
extra-task: /CoreOS/bind/Regression/bz1306504-lwresd-segfault-at-start-lookup
|
||||
extra-nitrate: TC#0529313
|
||||
|
|
@ -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/bz1306504-lwresd-segfault-at-start-lookup
|
||||
# Description: Test for BZ#1306504 (lwresd segfault at start_lookup)
|
||||
# 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"
|
||||
|
||||
SERVERLOG=$(mktemp ServerLogXXXXXXXXXX)
|
||||
DNS1=$(cat /etc/resolv.conf | grep -v '^#' | grep nameserver | awk '{print $2}' | head -n1)
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup
|
||||
rlAssertRpm $PACKAGE
|
||||
rlAssertExists "$(which lwresd)"
|
||||
#stop testing if DSN1 is wrong:
|
||||
rlRun "ping $DNS1 -w2" || rlDie
|
||||
#rhel6 uses liblwres.so.80 ; rhel7 liblwres.so.90; F24beta uses liblwres.so.141;
|
||||
# bind-devel provides liblwres.so, but not needed
|
||||
rlRun "LIBLWRES=$(rpm -ql bind-libs | grep liblwres.so|head -n1)"
|
||||
#it shouldn't traceback
|
||||
PYTHON=python
|
||||
python3 --version 2>/dev/null && PYTHON=python3
|
||||
rlRun "$PYTHON client.py $LIBLWRES" || rlDie
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartSetup "start server"
|
||||
bash server.sh $DNS1 &> $SERVERLOG &
|
||||
PIDSERVER=$!
|
||||
sleep 5
|
||||
rlRun "grep -i 'starting BIND' $SERVERLOG"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "client part"
|
||||
#only run, if there is segfault client.py hangs and test fails
|
||||
rlRun "timeout 1m $PYTHON client.py $LIBLWRES"
|
||||
sleep 5
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "check the server, PID = $PIDSERVER"
|
||||
#if there is bug, pid is not here
|
||||
rlRun "ps -p $PIDSERVER"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup
|
||||
kill -9 $PIDSERVER
|
||||
sleep 5
|
||||
rlFileSubmit $SERVERLOG
|
||||
rlRun "rm -r $SERVERLOG" 0 "Removing tmp directory"
|
||||
rlPhaseEnd
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
lwresd -g -d 100 -c <(echo 'options { forwarders { '$1'; }; }; lwres { search { a; }; };')
|
||||
|
|
@ -1,64 +0,0 @@
|
|||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Makefile of /CoreOS/bind/Regression/bz1313286-nsupdate-killed-by
|
||||
# Description: Test for BZ#1313286 ([abrt] [faf] bind unknown function())
|
||||
# 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/Regression/bz1313286-nsupdate-killed-by
|
||||
export TESTVERSION=1.0
|
||||
|
||||
BUILT_FILES=
|
||||
|
||||
FILES=$(METADATA) runtest.sh Makefile PURPOSE reproducer
|
||||
|
||||
.PHONY: all install download clean
|
||||
|
||||
run: $(FILES) build
|
||||
./runtest.sh
|
||||
|
||||
build: $(BUILT_FILES)
|
||||
test -x runtest.sh || chmod a+x runtest.sh
|
||||
|
||||
clean:
|
||||
rm -f *~ $(BUILT_FILES)
|
||||
|
||||
|
||||
include $(realpath /usr/share/rhts/lib/rhts-make.include)
|
||||
|
||||
$(METADATA): Makefile
|
||||
@echo "Owner: Petr Sklenar <psklenar@redhat.com>" > $(METADATA)
|
||||
@echo "Name: $(TEST)" >> $(METADATA)
|
||||
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
||||
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
||||
@echo "Description: Test for BZ#1313286 ([abrt] [faf] bind unknown function())" >> $(METADATA)
|
||||
@echo "Type: Regression" >> $(METADATA)
|
||||
@echo "TestTime: 5m" >> $(METADATA)
|
||||
@echo "RunFor: bind" >> $(METADATA)
|
||||
@echo "Requires: bind bind-utils" >> $(METADATA)
|
||||
@echo "Priority: Normal" >> $(METADATA)
|
||||
@echo "License: GPLv2+" >> $(METADATA)
|
||||
@echo "Confidential: no" >> $(METADATA)
|
||||
@echo "Destructive: no" >> $(METADATA)
|
||||
@echo "Bug: 1313286" >> $(METADATA)
|
||||
@echo "Releases: -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA)
|
||||
|
||||
[ -x /usr/bin/rhts-lint ] && rhts-lint $(METADATA)
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
PURPOSE of /CoreOS/bind/Regression/bz1313286-nsupdate-killed-by
|
||||
Description: Test for BZ#1313286 ([abrt] [faf] bind unknown function())
|
||||
Author: Petr Sklenar <psklenar@redhat.com>
|
||||
Bug summary: [abrt] [faf] bind: unknown function(): /usr/bin/nsupdate killed by 6
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1313286
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
summary: Test for BZ#1313286 ([abrt] [faf] bind unknown function())
|
||||
description: |
|
||||
Bug summary: [abrt] [faf] bind: unknown function(): /usr/bin/nsupdate killed by 6
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1313286
|
||||
contact: Petr Sklenar <psklenar@redhat.com>
|
||||
component:
|
||||
- bind
|
||||
test: ./runtest.sh
|
||||
require:
|
||||
- bind
|
||||
- bind-utils
|
||||
duration: 5m
|
||||
enabled: true
|
||||
tag:
|
||||
- NoRHEL4
|
||||
- NoRHEL5
|
||||
- TIPfail_infra
|
||||
- TIPpass
|
||||
relevancy: |
|
||||
distro = rhel-4, rhel-5: False
|
||||
distro < rhel-6.9: False
|
||||
extra-summary: /CoreOS/bind/Regression/bz1313286-nsupdate-killed-by
|
||||
extra-task: /CoreOS/bind/Regression/bz1313286-nsupdate-killed-by
|
||||
extra-nitrate: TC#0539538
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
realm EXAMPLE.COM
|
||||
realm EXAMPLE.COM
|
||||
quit
|
||||
|
|
@ -1,40 +0,0 @@
|
|||
#!/bin/bash
|
||||
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# runtest.sh of /CoreOS/bind/Regression/bz1313286-nsupdate-killed-by
|
||||
# Description: Test for BZ#1313286 ([abrt] [faf] bind unknown function())
|
||||
# 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"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup
|
||||
rlAssertRpm $PACKAGE
|
||||
rlRun "nsupdate < reproducer"
|
||||
rlPhaseEnd
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
|
|
@ -1,64 +0,0 @@
|
|||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Makefile of /CoreOS/bind/Regression/bz1321239-The-bind-and-bind-chroot-packages-specs-define-and
|
||||
# Description: Test for BZ#1321239 (The bind and bind-chroot packages specs define and)
|
||||
# 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/Regression/bz1321239-The-bind-and-bind-chroot-packages-specs-define-and
|
||||
export TESTVERSION=1.1
|
||||
|
||||
BUILT_FILES=
|
||||
|
||||
FILES=$(METADATA) runtest.sh Makefile PURPOSE
|
||||
|
||||
.PHONY: all install download clean
|
||||
|
||||
run: $(FILES) build
|
||||
./runtest.sh
|
||||
|
||||
build: $(BUILT_FILES)
|
||||
test -x runtest.sh || chmod a+x runtest.sh
|
||||
|
||||
clean:
|
||||
rm -f *~ $(BUILT_FILES)
|
||||
|
||||
|
||||
include $(realpath /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#1321239 (The bind and bind-chroot packages specs define and)" >> $(METADATA)
|
||||
@echo "Type: Regression" >> $(METADATA)
|
||||
@echo "TestTime: 15m" >> $(METADATA)
|
||||
@echo "RunFor: bind" >> $(METADATA)
|
||||
@echo "Requires: bind bind-chroot" >> $(METADATA)
|
||||
@echo "Priority: Normal" >> $(METADATA)
|
||||
@echo "License: GPLv2+" >> $(METADATA)
|
||||
@echo "Confidential: no" >> $(METADATA)
|
||||
@echo "Destructive: no" >> $(METADATA)
|
||||
@echo "Bug: 1321239 1392531" >> $(METADATA)
|
||||
@echo "Releases: -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA)
|
||||
|
||||
[ -x /usr/bin/rhts-lint ] && rhts-lint $(METADATA)
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
PURPOSE of /CoreOS/bind/Regression/bz1321239-The-bind-and-bind-chroot-packages-specs-define-and
|
||||
Description: Test for BZ#1321239 (The bind and bind-chroot packages specs define and)
|
||||
Author: Petr Sklenar <psklenar@redhat.com>
|
||||
Bug summary: The bind and bind-chroot packages specs define and apply group ownership and permissions differently for the /usr/lib64/bind (chroot'd as /var/named/chroot/usr/lib64/bind) directory
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1321239
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
summary: Test for BZ#1321239 (The bind and bind-chroot packages specs define and)
|
||||
description: |
|
||||
Bug summary: The bind and bind-chroot packages specs define and apply group ownership and permissions differently for the /usr/lib64/bind (chroot'd as /var/named/chroot/usr/lib64/bind) directory
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1321239
|
||||
contact: Petr Sklenar <psklenar@redhat.com>
|
||||
component:
|
||||
- bind
|
||||
test: ./runtest.sh
|
||||
require:
|
||||
- bind
|
||||
- bind-chroot
|
||||
duration: 15m
|
||||
enabled: true
|
||||
tag:
|
||||
- NoRHEL4
|
||||
- NoRHEL5
|
||||
- TIP_fedora_fail
|
||||
- TIPfail_infra
|
||||
- TIPpass
|
||||
relevancy: |
|
||||
distro < rhel-8: False
|
||||
extra-summary: /CoreOS/bind/Regression/bz1321239-The-bind-and-bind-chroot-packages-specs-define-and
|
||||
extra-task: /CoreOS/bind/Regression/bz1321239-The-bind-and-bind-chroot-packages-specs-define-and
|
||||
extra-nitrate: TC#0540244
|
||||
|
|
@ -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/Regression/bz1321239-The-bind-and-bind-chroot-packages-specs-define-and
|
||||
# Description: Test for BZ#1321239 (The bind and bind-chroot packages specs define and)
|
||||
# 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"
|
||||
|
||||
rlJournalStart
|
||||
|
||||
if rlIsRHEL 6;then
|
||||
SERVICENAME="named"
|
||||
else
|
||||
SERVICENAME="named named-chroot"
|
||||
fi
|
||||
|
||||
|
||||
|
||||
for i in $SERVICENAME;do
|
||||
rlPhaseStartSetup "service $i"
|
||||
rlRun "rlServiceStart $i"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "service $i"
|
||||
rlRun "rlServiceStop $i"
|
||||
rlRun "rpm -V bind bind-chroot"
|
||||
rlRun "rlServiceStart $i"
|
||||
rlRun "rpm -V bind bind-chroot"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup "service $i"
|
||||
rlServiceRestore $i
|
||||
rlPhaseEnd
|
||||
done
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
|
|
@ -1,64 +0,0 @@
|
|||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Makefile of /CoreOS/bind/Regression/bz1435883-rndc-recursing-rndc-recursing-failed
|
||||
# Description: Test for BZ#1435883 (rndc recursing, rndc 'recursing' failed)
|
||||
# Author: Petr Sklenar <psklenar@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/bz1435883-rndc-recursing-rndc-recursing-failed
|
||||
export TESTVERSION=1.0
|
||||
|
||||
BUILT_FILES=
|
||||
|
||||
FILES=$(METADATA) runtest.sh Makefile PURPOSE
|
||||
|
||||
.PHONY: all install download clean
|
||||
|
||||
run: $(FILES) build
|
||||
./runtest.sh
|
||||
|
||||
build: $(BUILT_FILES)
|
||||
test -x runtest.sh || chmod a+x runtest.sh
|
||||
|
||||
clean:
|
||||
rm -f *~ $(BUILT_FILES)
|
||||
|
||||
|
||||
include $(realpath /usr/share/rhts/lib/rhts-make.include)
|
||||
|
||||
$(METADATA): Makefile
|
||||
@echo "Owner: Petr Sklenar <psklenar@redhat.com>" > $(METADATA)
|
||||
@echo "Name: $(TEST)" >> $(METADATA)
|
||||
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
||||
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
||||
@echo "Description: Test for BZ#1435883 (rndc recursing, rndc 'recursing' failed)" >> $(METADATA)
|
||||
@echo "Type: Regression" >> $(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: 1435883" >> $(METADATA)
|
||||
@echo "Releases: -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA)
|
||||
|
||||
[ -x /usr/bin/rhts-lint ] && rhts-lint $(METADATA)
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
PURPOSE of /CoreOS/bind/Regression/bz1435883-rndc-recursing-rndc-recursing-failed
|
||||
Description: Test for BZ#1435883 (rndc recursing, rndc 'recursing' failed)
|
||||
Author: Petr Sklenar <psklenar@redhat.com>
|
||||
Bug summary: rndc recursing, rndc: 'recursing' failed: permission denied
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1435883
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
summary: Test for BZ#1435883 (rndc recursing, rndc 'recursing' failed)
|
||||
description: |
|
||||
Bug summary: rndc recursing, rndc: 'recursing' failed: permission denied
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1435883
|
||||
contact: Petr Sklenar <psklenar@redhat.com>
|
||||
component:
|
||||
- bind
|
||||
test: ./runtest.sh
|
||||
require:
|
||||
- bind
|
||||
duration: 5m
|
||||
enabled: true
|
||||
tag:
|
||||
- ExpIgnorePass
|
||||
- NoRHEL4
|
||||
- NoRHEL5
|
||||
- TIP_fedora_fail
|
||||
- TIPfail_infra
|
||||
- TIPpass
|
||||
relevancy: |
|
||||
distro = rhel-4, rhel-5, rhel-6: False
|
||||
extra-summary: /CoreOS/bind/Regression/bz1435883-rndc-recursing-rndc-recursing-failed
|
||||
extra-task: /CoreOS/bind/Regression/bz1435883-rndc-recursing-rndc-recursing-failed
|
||||
extra-nitrate: TC#0577440
|
||||
|
|
@ -1,48 +0,0 @@
|
|||
#!/bin/bash
|
||||
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# runtest.sh of /CoreOS/bind/Regression/bz1435883-rndc-recursing-rndc-recursing-failed
|
||||
# Description: Test for BZ#1435883 (rndc recursing, rndc 'recursing' failed)
|
||||
# Author: Petr Sklenar <psklenar@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
|
||||
rlAssertRpm $PACKAGE
|
||||
rlServiceStart named
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest
|
||||
rlRun "rndc recursing"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup
|
||||
rlServiceStop named
|
||||
rlPhaseEnd
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
|
|
@ -1,64 +0,0 @@
|
|||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Makefile of /CoreOS/bind/Regression/bz1503646-Change-in-RHBZ-1392362-is-causing-bind-to-fill-up
|
||||
# Description: Test for BZ#1503646 (Change in RHBZ #1392362 is causing bind to fill up)
|
||||
# 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/Regression/bz1503646-Change-in-RHBZ-1392362-is-causing-bind-to-fill-up
|
||||
export TESTVERSION=1.0
|
||||
|
||||
BUILT_FILES=
|
||||
|
||||
FILES=$(METADATA) runtest.sh Makefile PURPOSE test.sh
|
||||
|
||||
.PHONY: all install download clean
|
||||
|
||||
run: $(FILES) build
|
||||
./runtest.sh
|
||||
|
||||
build: $(BUILT_FILES)
|
||||
test -x runtest.sh || chmod a+x runtest.sh
|
||||
|
||||
clean:
|
||||
rm -f *~ $(BUILT_FILES)
|
||||
|
||||
|
||||
include $(realpath /usr/share/rhts/lib/rhts-make.include)
|
||||
|
||||
$(METADATA): Makefile
|
||||
@echo "Owner: Petr Sklenar <psklenar@redhat.com>" > $(METADATA)
|
||||
@echo "Name: $(TEST)" >> $(METADATA)
|
||||
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
||||
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
||||
@echo "Description: Test for BZ#1503646 (Change in RHBZ #1392362 is causing bind to fill up)" >> $(METADATA)
|
||||
@echo "Type: Regression" >> $(METADATA)
|
||||
@echo "TestTime: 2h" >> $(METADATA)
|
||||
@echo "RunFor: bind" >> $(METADATA)
|
||||
@echo "Requires: bind bind-chroot" >> $(METADATA)
|
||||
@echo "Priority: Normal" >> $(METADATA)
|
||||
@echo "License: GPLv2+" >> $(METADATA)
|
||||
@echo "Confidential: no" >> $(METADATA)
|
||||
@echo "Destructive: no" >> $(METADATA)
|
||||
@echo "Bug: 1503646" >> $(METADATA)
|
||||
@echo "Releases: -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA)
|
||||
|
||||
[ -x /usr/bin/rhts-lint ] && rhts-lint $(METADATA)
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
PURPOSE of /CoreOS/bind/Regression/bz1503646-Change-in-RHBZ-1392362-is-causing-bind-to-fill-up
|
||||
Description: Test for BZ#1503646 (Change in RHBZ #1392362 is causing bind to fill up)
|
||||
Author: Petr Sklenar <psklenar@redhat.com>
|
||||
Bug summary: Change in RHBZ #1392362 is causing bind to fill up mnt_cache when frequently restarted which can lead to system panic
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1503646
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
summary: 'Test for BZ#1503646 (Change in RHBZ #1392362 is causing bind to fill up)'
|
||||
description: |
|
||||
Bug summary: Change in RHBZ #1392362 is causing bind to fill up mnt_cache when frequently restarted which can lead to system panic
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1503646
|
||||
contact: Petr Sklenar <psklenar@redhat.com>
|
||||
component:
|
||||
- bind
|
||||
test: ./runtest.sh
|
||||
require:
|
||||
- bind
|
||||
- bind-chroot
|
||||
duration: 2h
|
||||
enabled: true
|
||||
tag:
|
||||
- NoRHEL4
|
||||
- NoRHEL5
|
||||
- TIPfail_infra
|
||||
- TIPpass
|
||||
relevancy: |
|
||||
distro = rhel-4, rhel-5: False
|
||||
extra-summary: /CoreOS/bind/Regression/bz1503646-Change-in-RHBZ-1392362-is-causing-bind-to-fill-up
|
||||
extra-task: /CoreOS/bind/Regression/bz1503646-Change-in-RHBZ-1392362-is-causing-bind-to-fill-up
|
||||
extra-nitrate: TC#0562551
|
||||
|
|
@ -1,49 +0,0 @@
|
|||
#!/bin/bash
|
||||
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# runtest.sh of /CoreOS/bind/Regression/bz1503646-Change-in-RHBZ-1392362-is-causing-bind-to-fill-up
|
||||
# Description: Test for BZ#1503646 (Change in RHBZ #1392362 is causing bind to fill up)
|
||||
# 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<F7>
|
||||
. /usr/bin/rhts-environment.sh || exit 1
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PACKAGE="bind"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup
|
||||
rlAssertRpm $PACKAGE
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "check slabs"
|
||||
rlRun "bash test.sh"
|
||||
rlRun "bash test.sh"
|
||||
rlRun "bash test.sh"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup
|
||||
pkill -9 named
|
||||
rlPhaseEnd
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
|
|
@ -1,52 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Reproduce bug #1503646
|
||||
# Note: this analyses mounts in all system processes
|
||||
# It might report false positives
|
||||
|
||||
count_total_mounts()
|
||||
{
|
||||
wc -l /proc/[0-9]*/mounts | sort -nr | head -n 1 | cut -d' ' -f1
|
||||
}
|
||||
|
||||
count_top_mounts()
|
||||
{
|
||||
|
||||
wc -l /proc/[0-9]*/mounts | sort -nr | head -n 5 | while read COUNT MOUNT; do
|
||||
local PID=`echo $MOUNT | cut -s -d/ -f3`
|
||||
if [ -n "$PID" ]; then
|
||||
echo "Mounts: $COUNT"
|
||||
ps hu $PID
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
if [ `whoami` != "root" ]
|
||||
then
|
||||
echo "Run me as root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
MOUNTS_BEFORE=`count_total_mounts`
|
||||
|
||||
echo "Top mounts processes before"
|
||||
count_top_mounts
|
||||
|
||||
for I in `seq 16`; do
|
||||
echo "Restarting named-chroot ($I)..."
|
||||
systemctl restart named-chroot
|
||||
MOUNTS=`count_total_mounts`
|
||||
if [ "$MOUNTS" -gt "$((2*MOUNTS_BEFORE))" ]
|
||||
then
|
||||
echo "ERROR: Total process mounts doubled from $MOUNTS_BEFORE to $MOUNTS"
|
||||
count_top_mounts
|
||||
exit 1
|
||||
fi
|
||||
sleep 5
|
||||
done
|
||||
|
||||
echo "Top mounts processes after"
|
||||
count_top_mounts
|
||||
|
||||
MOUNTS=`count_total_mounts`
|
||||
echo "Total process mounts before $MOUNTS_BEFORE ~= $MOUNTS after "
|
||||
|
|
@ -1,64 +0,0 @@
|
|||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Makefile of /CoreOS/bind/Regression/bz1581658-man-named-man-dig-strange-old-man-pages
|
||||
# Description: Test for BZ#1581658 (man named, man dig, strange old man pages)
|
||||
# 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/bz1581658-man-named-man-dig-strange-old-man-pages
|
||||
export TESTVERSION=1.0
|
||||
|
||||
BUILT_FILES=
|
||||
|
||||
FILES=$(METADATA) runtest.sh Makefile PURPOSE
|
||||
|
||||
.PHONY: all install download clean
|
||||
|
||||
run: $(FILES) build
|
||||
./runtest.sh
|
||||
|
||||
build: $(BUILT_FILES)
|
||||
test -x runtest.sh || chmod a+x runtest.sh
|
||||
|
||||
clean:
|
||||
rm -f *~ $(BUILT_FILES)
|
||||
|
||||
|
||||
include $(realpath /usr/share/rhts/lib/rhts-make.include)
|
||||
|
||||
$(METADATA): Makefile
|
||||
@echo "Owner: Ondrej Mejzlik <omejzlik@redhat.com>" > $(METADATA)
|
||||
@echo "Name: $(TEST)" >> $(METADATA)
|
||||
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
||||
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
||||
@echo "Description: Test for BZ#1581658 (man named, man dig, strange old man pages)" >> $(METADATA)
|
||||
@echo "Type: Regression" >> $(METADATA)
|
||||
@echo "TestTime: 5m" >> $(METADATA)
|
||||
@echo "RunFor: bind" >> $(METADATA)
|
||||
@echo "Requires: bind bind-utils" >> $(METADATA)
|
||||
@echo "Priority: Normal" >> $(METADATA)
|
||||
@echo "License: GPLv2+" >> $(METADATA)
|
||||
@echo "Confidential: no" >> $(METADATA)
|
||||
@echo "Destructive: no" >> $(METADATA)
|
||||
@echo "Bug: 1581658" >> $(METADATA)
|
||||
@echo "Releases: -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA)
|
||||
|
||||
[ -x /usr/bin/rhts-lint ] && rhts-lint $(METADATA)
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
PURPOSE of /CoreOS/bind/Regression/bz1581658-man-named-man-dig-strange-old-man-pages
|
||||
Description: Test for BZ#1581658 (man named, man dig, strange old man pages)
|
||||
Author: Ondrej Mejzlik <omejzlik@redhat.com>
|
||||
Bug summary: man named, man dig, strange old man pages
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1581658
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
summary: Test for BZ#1581658 (man named, man dig, strange old man pages)
|
||||
description: |
|
||||
Bug summary: man named, man dig, strange old man pages
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1581658
|
||||
contact: Petr Sklenar <psklenar@redhat.com>
|
||||
component:
|
||||
- bind
|
||||
test: ./runtest.sh
|
||||
require:
|
||||
- bind
|
||||
- bind-utils
|
||||
duration: 5m
|
||||
enabled: true
|
||||
tag:
|
||||
- NoRHEL4
|
||||
- NoRHEL5
|
||||
- TIPfail_infra
|
||||
- TIPfail_samba
|
||||
- TIPfail_systemd
|
||||
- TIPpass
|
||||
relevancy: |
|
||||
distro = rhel-4, rhel-5: False
|
||||
extra-summary: /CoreOS/bind/Regression/bz1581658-man-named-man-dig-strange-old-man-pages
|
||||
extra-task: /CoreOS/bind/Regression/bz1581658-man-named-man-dig-strange-old-man-pages
|
||||
extra-nitrate: TC#0576232
|
||||
|
|
@ -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/Regression/bz1581658-man-named-man-dig-strange-old-man-pages
|
||||
# Description: Test for BZ#1581658 (man named, man dig, strange old man pages)
|
||||
# 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
|
||||
rlLog "PC name: $(hostname)"
|
||||
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
||||
rlRun "pushd $TmpDir"
|
||||
rlPhaseEnd
|
||||
|
||||
rlGetTestState && {
|
||||
rlPhaseStartTest manNamed
|
||||
rlRun "man named | grep system-config-bind" 1 "system-config-bind is not in named man pages"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest manDig
|
||||
rlRun "man dig | col -b | grep \"^RETURN CODES\"" 0 "RETURN CODES are in dig man pages"
|
||||
rlRun "man dig | col -b | grep '0: Everything went well'" 0 "At least return code 0 is present"
|
||||
rlPhaseEnd
|
||||
}
|
||||
|
||||
rlPhaseStartCleanup
|
||||
rlRun "popd"
|
||||
rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
|
||||
rlPhaseEnd
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
|
|
@ -1,64 +0,0 @@
|
|||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Makefile of /CoreOS/bind/Regression/bz1592872-rpm-V-bind-bind-chroot-shows-some-file
|
||||
# Description: Test for BZ#1592872 (rpm -V bind bind-chroot shows some file)
|
||||
# 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/bz1592872-rpm-V-bind-bind-chroot-shows-some-file
|
||||
export TESTVERSION=1.0
|
||||
|
||||
BUILT_FILES=
|
||||
|
||||
FILES=$(METADATA) runtest.sh Makefile PURPOSE
|
||||
|
||||
.PHONY: all install download clean
|
||||
|
||||
run: $(FILES) build
|
||||
./runtest.sh
|
||||
|
||||
build: $(BUILT_FILES)
|
||||
test -x runtest.sh || chmod a+x runtest.sh
|
||||
|
||||
clean:
|
||||
rm -f *~ $(BUILT_FILES)
|
||||
|
||||
|
||||
include $(realpath /usr/share/rhts/lib/rhts-make.include)
|
||||
|
||||
$(METADATA): Makefile
|
||||
@echo "Owner: Ondrej Mejzlik <omejzlik@redhat.com>" > $(METADATA)
|
||||
@echo "Name: $(TEST)" >> $(METADATA)
|
||||
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
||||
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
||||
@echo "Description: Test for BZ#1592872 (rpm -V bind bind-chroot shows some file)" >> $(METADATA)
|
||||
@echo "Type: Regression" >> $(METADATA)
|
||||
@echo "TestTime: 5m" >> $(METADATA)
|
||||
@echo "RunFor: bind" >> $(METADATA)
|
||||
@echo "Requires: bind bind-chroot" >> $(METADATA)
|
||||
@echo "Priority: Normal" >> $(METADATA)
|
||||
@echo "License: GPLv2+" >> $(METADATA)
|
||||
@echo "Confidential: no" >> $(METADATA)
|
||||
@echo "Destructive: no" >> $(METADATA)
|
||||
@echo "Bug: 1592872" >> $(METADATA)
|
||||
@echo "Releases: -RHEL4 -RHEL6 -RHEL7 -RHELClient5 -RHELServer5" >> $(METADATA)
|
||||
|
||||
[ -x /usr/bin/rhts-lint ] && rhts-lint $(METADATA)
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
PURPOSE of /CoreOS/bind/Regression/bz1592872-rpm-V-bind-bind-chroot-shows-some-file
|
||||
Description: Test for BZ#1592872 (rpm -V bind bind-chroot shows some file)
|
||||
Author: Ondrej Mejzlik <omejzlik@redhat.com>
|
||||
Bug summary: rpm -V bind bind-chroot shows some file
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1592872
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
summary: Test for BZ#1592872 (rpm -V bind bind-chroot shows some file)
|
||||
description: |
|
||||
Bug summary: rpm -V bind bind-chroot shows some file
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1592872
|
||||
contact: Petr Sklenar <psklenar@redhat.com>
|
||||
component:
|
||||
- bind
|
||||
test: ./runtest.sh
|
||||
require:
|
||||
- bind
|
||||
- bind-chroot
|
||||
duration: 5m
|
||||
enabled: true
|
||||
tag:
|
||||
- NoRHEL4
|
||||
- NoRHEL5
|
||||
- NoRHEL6
|
||||
- NoRHEL7
|
||||
- TIPfail_infra
|
||||
- TIPfail_samba
|
||||
- TIPfail_systemd
|
||||
- TIPpass
|
||||
relevancy: |
|
||||
distro = rhel-4, rhel-5, rhel-6, rhel-7: False
|
||||
extra-summary: /CoreOS/bind/Regression/bz1592872-rpm-V-bind-bind-chroot-shows-some-file
|
||||
extra-task: /CoreOS/bind/Regression/bz1592872-rpm-V-bind-bind-chroot-shows-some-file
|
||||
extra-nitrate: TC#0575655
|
||||
|
|
@ -1,80 +0,0 @@
|
|||
#!/bin/bash
|
||||
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# runtest.sh of /CoreOS/bind/Regression/bz1592872-rpm-V-bind-bind-chroot-shows-some-file
|
||||
# Description: Test for BZ#1592872 (rpm -V bind bind-chroot shows some file)
|
||||
# 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}
|
||||
CHROOTPKG="$PACKAGE-chroot"
|
||||
SERVICE="named${CHROOTPKG#bind}"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup
|
||||
rlAssertRpm $PACKAGE
|
||||
if [ $? -ne 0 ]; then
|
||||
rlDie "Package $PACKAGE not installed"
|
||||
fi
|
||||
rlAssertRpm $CHROOTPKG
|
||||
if [ $? -ne 0 ]; then
|
||||
rlDie "Package $CHROOTPKG not installed"
|
||||
fi
|
||||
rlLog "PC name: $(hostname)"
|
||||
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
||||
rlRun "pushd $TmpDir"
|
||||
rlPhaseEnd
|
||||
|
||||
rlGetTestState && {
|
||||
rlPhaseStartTest
|
||||
# RHEL8 changes creation of devices to on demand when service is started. It needs to be
|
||||
# checked with service started and stopped.
|
||||
# rpm -V returns 0 if the output is empty.
|
||||
rlRun "rpm -V $CHROOTPKG >& output-clean.txt" 0 "Getting rpm -V bind-chroot output"
|
||||
rlServiceStart $SERVICE
|
||||
sleep 1
|
||||
rlRun "rpm -V $CHROOTPKG >& output-running.txt" 0
|
||||
rlServiceStop $SERVICE
|
||||
sleep 1
|
||||
rlRun "rpm -V $CHROOTPKG >& output-stopped.txt" 0
|
||||
|
||||
for OUTPUT in output-clean.txt output-running.txt output-stopped.txt; do
|
||||
rlRun "test -s $OUTPUT" 1 "There should be nothing in the $OUTPUT"
|
||||
ls -l $OUTPUT
|
||||
cat $OUTPUT
|
||||
done
|
||||
|
||||
rlPhaseEnd
|
||||
}
|
||||
|
||||
rlPhaseStartCleanup
|
||||
rlServiceRestore $SERVICE
|
||||
#rlBundleLogs $PACKAGE output-clean.txt output-running.txt output-stopped.txt
|
||||
rlRun "popd"
|
||||
rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
|
||||
rlPhaseEnd
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
|
|
@ -1,64 +0,0 @@
|
|||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Makefile of /CoreOS/bind/Regression/bz1595824-Revoke-named-iscdlv-key
|
||||
# Description: Test for BZ#1595824 (Revoke named.iscdlv.key)
|
||||
# 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/bz1595824-Revoke-named-iscdlv-key
|
||||
export TESTVERSION=1.0
|
||||
|
||||
BUILT_FILES=
|
||||
|
||||
FILES=$(METADATA) runtest.sh Makefile PURPOSE
|
||||
|
||||
.PHONY: all install download clean
|
||||
|
||||
run: $(FILES) build
|
||||
./runtest.sh
|
||||
|
||||
build: $(BUILT_FILES)
|
||||
test -x runtest.sh || chmod a+x runtest.sh
|
||||
|
||||
clean:
|
||||
rm -f *~ $(BUILT_FILES)
|
||||
|
||||
|
||||
include $(realpath /usr/share/rhts/lib/rhts-make.include)
|
||||
|
||||
$(METADATA): Makefile
|
||||
@echo "Owner: Ondrej Mejzlik <omejzlik@redhat.com>" > $(METADATA)
|
||||
@echo "Name: $(TEST)" >> $(METADATA)
|
||||
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
||||
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
||||
@echo "Description: Test for BZ#1595824 (Revoke named.iscdlv.key)" >> $(METADATA)
|
||||
@echo "Type: Regression" >> $(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: 1595824" >> $(METADATA)
|
||||
@echo "Releases: -RHEL4 -RHEL6 -RHELClient5 -RHELServer5 -RHEL7" >> $(METADATA)
|
||||
|
||||
[ -x /usr/bin/rhts-lint ] && rhts-lint $(METADATA)
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
PURPOSE of /CoreOS/bind/Regression/bz1595824-Revoke-named-iscdlv-key
|
||||
Description: Test for BZ#1595824 (Revoke named.iscdlv.key)
|
||||
Author: Ondrej Mejzlik <omejzlik@redhat.com>
|
||||
Bug summary: Revoke named.iscdlv.key
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1595824
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
summary: Test for BZ#1595824 (Revoke named.iscdlv.key)
|
||||
description: |
|
||||
Bug summary: Revoke named.iscdlv.key
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1595824
|
||||
contact: Petr Sklenar <psklenar@redhat.com>
|
||||
component:
|
||||
- bind
|
||||
test: ./runtest.sh
|
||||
require:
|
||||
- bind
|
||||
duration: 5m
|
||||
enabled: true
|
||||
tag:
|
||||
- NoRHEL4
|
||||
- NoRHEL5
|
||||
- NoRHEL6
|
||||
- NoRHEL7
|
||||
- TIPfail_infra
|
||||
- TIPfail_samba
|
||||
- TIPfail_systemd
|
||||
- TIPpass
|
||||
relevancy: |
|
||||
distro = rhel-4, rhel-5, rhel-6, rhel-7: False
|
||||
extra-summary: /CoreOS/bind/Regression/bz1595824-Revoke-named-iscdlv-key
|
||||
extra-task: /CoreOS/bind/Regression/bz1595824-Revoke-named-iscdlv-key
|
||||
extra-nitrate: TC#0575711
|
||||
|
|
@ -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/bz1595824-Revoke-named-iscdlv-key
|
||||
# Description: Test for BZ#1595824 (Revoke named.iscdlv.key)
|
||||
# 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
|
||||
rlLog "PC name: $(hostname)"
|
||||
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
||||
rlRun "pushd $TmpDir"
|
||||
rlPhaseEnd
|
||||
|
||||
rlGetTestState && {
|
||||
rlPhaseStartTest
|
||||
rlAssertExists "/etc/named.conf"
|
||||
rlAssertExists "/etc/named.root.key"
|
||||
# /etc/named.iscdlv.key has been revoked and removed from the package
|
||||
rlAssertNotExists "/etc/named.iscdlv.key"
|
||||
rlRun "grep 'iscdlv' /etc/named.conf" 1 "iscdlv is not present in working configuration"
|
||||
rlRun "grep 'named.root.key' /etc/named.conf" 0 "named.root.key is mentioned in configuration"
|
||||
rlRun "grep 'iscdlv' /usr/share/doc/bind/sample/etc/named.conf" 1 "iscdlv is not present in sample configuration"
|
||||
rlRun "man named | grep 'iscdlv'" 1 "iscdlv is not mentioned in manpages"
|
||||
rlPhaseEnd
|
||||
}
|
||||
|
||||
rlPhaseStartCleanup
|
||||
rlRun "popd"
|
||||
rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
|
||||
rlPhaseEnd
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
|
|
@ -1,64 +0,0 @@
|
|||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Makefile of /CoreOS/bind/Regression/bz1647539-bind-crashes-with-assertion-error-if-log-message
|
||||
# Description: Test for BZ#1647539 (bind crashes with assertion error if log message)
|
||||
# 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/bind/Regression/bz1647539-bind-crashes-with-assertion-error-if-log-message
|
||||
export TESTVERSION=1.0
|
||||
|
||||
BUILT_FILES=
|
||||
|
||||
FILES=$(METADATA) runtest.sh Makefile PURPOSE named.hints named.conf named-recursive.conf root.db edu-servers.net.db dsset-edu. find-offsets.py
|
||||
|
||||
.PHONY: all install download clean
|
||||
|
||||
run: $(FILES) build
|
||||
./runtest.sh
|
||||
|
||||
build: $(BUILT_FILES)
|
||||
test -x runtest.sh || chmod a+x runtest.sh
|
||||
|
||||
clean:
|
||||
rm -f *~ $(BUILT_FILES)
|
||||
|
||||
|
||||
include $(realpath /usr/share/rhts/lib/rhts-make.include)
|
||||
|
||||
$(METADATA): Makefile
|
||||
@echo "Owner: Petr Mensik <pemensik@redhat.com>" > $(METADATA)
|
||||
@echo "Name: $(TEST)" >> $(METADATA)
|
||||
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
||||
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
||||
@echo "Description: Test for BZ#1647539 (bind crashes with assertion error if log message)" >> $(METADATA)
|
||||
@echo "Type: Regression" >> $(METADATA)
|
||||
@echo "TestTime: 5m" >> $(METADATA)
|
||||
@echo "RunFor: bind" >> $(METADATA)
|
||||
@echo "Requires: bind bind-utils rng-tools procps-ng" >> $(METADATA)
|
||||
@echo "Priority: Normal" >> $(METADATA)
|
||||
@echo "License: GPLv2+" >> $(METADATA)
|
||||
@echo "Confidential: no" >> $(METADATA)
|
||||
@echo "Destructive: no" >> $(METADATA)
|
||||
@echo "Bug: 1647539" >> $(METADATA)
|
||||
@echo "Releases: RHEL7 RHEL8" >> $(METADATA)
|
||||
|
||||
[ -x /usr/bin/rhts-lint ] && rhts-lint $(METADATA)
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
PURPOSE of /CoreOS/bind/Regression/bz1647539-bind-crashes-with-assertion-error-if-log-message
|
||||
Description: Test for BZ#1647539 (bind crashes with assertion error if log message)
|
||||
Author: Petr Mensik <pemensik@redhat.com>
|
||||
Bug summary: bind crashes with assertion error if log message requires comment ';' at buffer+1024
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1647539
|
||||
|
|
@ -1 +0,0 @@
|
|||
edu. IN DS 28065 8 2 4172496CDE85534E51129040355BD04B1FCFEBAE996DFDDE652006F6F8B2CE76
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
$TTL 172800
|
||||
@ IN SOA @ rname.invalid. (
|
||||
0 ; serial
|
||||
1D ; refresh
|
||||
1H ; retry
|
||||
1W ; expire
|
||||
3H ) ; minimum
|
||||
IN NS ns.
|
||||
|
||||
a.edu-servers.net. 172800 IN A 192.5.6.30
|
||||
a.edu-servers.net. 172800 IN AAAA 2001:503:a83e::2:30
|
||||
b.edu-servers.net. 172800 IN A 192.33.14.30
|
||||
b.edu-servers.net. 172800 IN AAAA 2001:503:231d::2:30
|
||||
c.edu-servers.net. 172800 IN A 192.26.92.30
|
||||
c.edu-servers.net. 172800 IN AAAA 2001:503:83eb::30
|
||||
d.edu-servers.net. 172800 IN A 192.31.80.30
|
||||
d.edu-servers.net. 172800 IN AAAA 2001:500:856e::30
|
||||
e.edu-servers.net. 172800 IN A 192.12.94.30
|
||||
e.edu-servers.net. 172800 IN AAAA 2001:502:1ca1::30
|
||||
f.edu-servers.net. 172800 IN A 192.35.51.30
|
||||
f.edu-servers.net. 172800 IN AAAA 2001:503:d414::30
|
||||
g.edu-servers.net. 172800 IN A 192.42.93.30
|
||||
g.edu-servers.net. 172800 IN AAAA 2001:503:eea3::30
|
||||
h.edu-servers.net. 172800 IN A 192.54.112.30
|
||||
h.edu-servers.net. 172800 IN AAAA 2001:502:8cc::30
|
||||
i.edu-servers.net. 172800 IN A 192.43.172.30
|
||||
i.edu-servers.net. 172800 IN AAAA 2001:503:39c1::30
|
||||
j.edu-servers.net. 172800 IN A 192.48.79.30
|
||||
j.edu-servers.net. 172800 IN AAAA 2001:502:7094::30
|
||||
k.edu-servers.net. 172800 IN A 192.52.178.30
|
||||
k.edu-servers.net. 172800 IN AAAA 2001:503:d2d::30
|
||||
l.edu-servers.net. 172800 IN A 192.41.162.30
|
||||
l.edu-servers.net. 172800 IN AAAA 2001:500:d937::30
|
||||
m.edu-servers.net. 172800 IN A 192.55.83.30
|
||||
m.edu-servers.net. 172800 IN AAAA 2001:501:b1f9::30
|
||||
|
||||
|
|
@ -1,70 +0,0 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
import re
|
||||
import sys
|
||||
|
||||
path = "test.run"
|
||||
verbose = False
|
||||
|
||||
class OffsetCounter:
|
||||
def __init__(self):
|
||||
self.offset = 0
|
||||
self.re_record = re.compile("^;[^; \t]")
|
||||
self.emptyline = False
|
||||
self.found = {}
|
||||
|
||||
def addLine(self, line):
|
||||
if self.emptyline and line.rstrip() == '':
|
||||
return False
|
||||
else:
|
||||
if line.rstrip() == '':
|
||||
self.emptyline = True
|
||||
elif self.re_record.match(line):
|
||||
if verbose:
|
||||
print('{0:6}: {1}'.format(self.offset, line),)
|
||||
self.found[self.offset] = line
|
||||
self.offset = self.offset + len(line)
|
||||
return True
|
||||
|
||||
if len(sys.argv)>1:
|
||||
path = sys.argv[1]
|
||||
|
||||
lines = {}
|
||||
|
||||
with open(path, "r") as f:
|
||||
counter = None
|
||||
for line in f:
|
||||
if line.startswith('received packet:'):
|
||||
if verbose:
|
||||
print("New Message")
|
||||
counter = OffsetCounter()
|
||||
elif counter != None:
|
||||
if not counter.addLine(line):
|
||||
lines.update(counter.found)
|
||||
counter = None
|
||||
if verbose:
|
||||
print("End message")
|
||||
|
||||
|
||||
def printLine(k, data=lines, prefix=''):
|
||||
print('{0}{1:6} {2}'.format(prefix, k, lines[k]),)
|
||||
|
||||
|
||||
print("Found offsets")
|
||||
prev = None
|
||||
start = None
|
||||
for k in sorted(lines.keys()):
|
||||
if prev==None or prev != k-1:
|
||||
if start != None and False:
|
||||
if True:
|
||||
print('Range: {0}-{1}'.format(start, k))
|
||||
else:
|
||||
printLine(start, lines, 'started at ')
|
||||
printLine(k, lines, 'ended at ')
|
||||
start = k
|
||||
if verbose:
|
||||
printLine(k, lines)
|
||||
else:
|
||||
prev = k
|
||||
print('{0:5d}'.format(k))
|
||||
prev = k
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
summary: Test for BZ#1647539 (bind crashes with assertion error if log message)
|
||||
description: |
|
||||
Bug summary: bind crashes with assertion error if log message requires comment ';' at buffer+1024
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1647539
|
||||
contact: Petr Sklenar <psklenar@redhat.com>
|
||||
component:
|
||||
- bind
|
||||
test: ./runtest.sh
|
||||
require:
|
||||
- bind
|
||||
- bind-utils
|
||||
- rng-tools
|
||||
- procps-ng
|
||||
duration: 5m
|
||||
enabled: true
|
||||
tag:
|
||||
- RHEL7
|
||||
- TIPfail
|
||||
- TIPfail_infra
|
||||
- noExpectedness
|
||||
relevancy: |
|
||||
distro != rhel-7, rhel-8: False
|
||||
extra-summary: /CoreOS/bind/Regression/bz1647539-bind-crashes-with-assertion-error-if-log-message
|
||||
extra-task: /CoreOS/bind/Regression/bz1647539-bind-crashes-with-assertion-error-if-log-message
|
||||
extra-nitrate: TC#0590331
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
options {
|
||||
listen-on port 53333 { 127.0.0.1; };
|
||||
listen-on-v6 port 53333 { none; };
|
||||
allow-query { any; };
|
||||
recursion yes;
|
||||
dnssec-enable yes;
|
||||
dnssec-validation yes;
|
||||
pid-file "named-recursive.pid";
|
||||
};
|
||||
|
||||
logging {
|
||||
channel default_debug {
|
||||
file "named-recursive.run";
|
||||
severity dynamic;
|
||||
};
|
||||
};
|
||||
|
||||
zone "." IN {
|
||||
type hint;
|
||||
file "named.hints";
|
||||
};
|
||||
|
||||
include "root.conf";
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
options {
|
||||
listen-on port 53 { 127.0.0.1; };
|
||||
listen-on-v6 { none; };
|
||||
pid-file "named.pid";
|
||||
dnssec-enable yes;
|
||||
dnssec-validation no;
|
||||
|
||||
recursion no;
|
||||
|
||||
edns-udp-size 1450;
|
||||
};
|
||||
|
||||
logging {
|
||||
channel default_debug {
|
||||
file "named-authoritative.run";
|
||||
severity dynamic;
|
||||
};
|
||||
};
|
||||
|
||||
zone "." IN {
|
||||
type master;
|
||||
file "root.db.signed";
|
||||
};
|
||||
|
||||
zone "edu-servers.net" IN {
|
||||
type master;
|
||||
file "edu-servers.net.db";
|
||||
};
|
||||
|
||||
include "root.conf";
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
. 518400 IN NS localhost
|
||||
localhost 518400 IN A 127.0.0.1
|
||||
|
|
@ -1,71 +0,0 @@
|
|||
$TTL 3H
|
||||
@ IN SOA @ nobody.invalid. (
|
||||
0 ; serial
|
||||
1D ; refresh
|
||||
1H ; retry
|
||||
1W ; expire
|
||||
3H ) ; minimum
|
||||
NS ns
|
||||
|
||||
ns A 127.0.0.1
|
||||
|
||||
very-long-01234567890123456789012345678901234567.test NS ns
|
||||
|
||||
edu. 172800 IN NS b.edu-servers.net.
|
||||
edu. 172800 IN NS h.edu-servers.net.
|
||||
edu. 172800 IN NS m.edu-servers.net.
|
||||
edu. 172800 IN NS d.edu-servers.net.
|
||||
edu. 172800 IN NS i.edu-servers.net.
|
||||
edu. 172800 IN NS a.edu-servers.net.
|
||||
edu. 172800 IN NS f.edu-servers.net.
|
||||
edu. 172800 IN NS j.edu-servers.net.
|
||||
edu. 172800 IN NS g.edu-servers.net.
|
||||
edu. 172800 IN NS c.edu-servers.net.
|
||||
edu. 172800 IN NS k.edu-servers.net.
|
||||
edu. 172800 IN NS l.edu-servers.net.
|
||||
edu. 172800 IN NS e.edu-servers.net.
|
||||
edu. 86400 IN DS 28065 8 2 (
|
||||
4172496CDE85534E51129040355BD04B1FCFEBAE996D
|
||||
FDDE652006F6F8B2CE76 )
|
||||
edu. 86400 IN RRSIG DS 8 1 86400 (
|
||||
20181226050000 20181213040000 2134 .
|
||||
ID4PDAwKlKweBtFfSdWr/Nh908QIZSjxobThVGII+FPd
|
||||
rGZlOyMeas/e3fkWhvzDNRySdosPAFG8yKMUhXM25FEf
|
||||
BweGvHAWJqN7Ky++oNUtDsmKSIVOytY/EnoH2gU+qqpa
|
||||
k8G7B8YW8MDhynfEY9ISh/pWbSvs+PvHBz0G+08LbTES
|
||||
xfxMZnRDgjrSLsiRo+cRGpHuv/byE9PX/+nAgomqoY1E
|
||||
QQGy8DJvNEmC7O8Z3lOhhkaFst54k4fjtf7422P6kh1o
|
||||
rPOt15mSkkwA2Zs8+2gzT5ku15D6oLo+O4EXS71QXaI6
|
||||
O8tBW+3qrNLBBC6KDzViky46wzto7IdmdQ== )
|
||||
|
||||
;; ADDITIONAL SECTION:
|
||||
|
||||
; These need to be unsigned, leave in separate unsigned zone
|
||||
edu-servers.net. 172800 IN NS ns
|
||||
; a.edu-servers.net. 172800 IN A 192.5.6.30
|
||||
; b.edu-servers.net. 172800 IN A 192.33.14.30
|
||||
; c.edu-servers.net. 172800 IN A 192.26.92.30
|
||||
; d.edu-servers.net. 172800 IN A 192.31.80.30
|
||||
; e.edu-servers.net. 172800 IN A 192.12.94.30
|
||||
; f.edu-servers.net. 172800 IN A 192.35.51.30
|
||||
; g.edu-servers.net. 172800 IN A 192.42.93.30
|
||||
; h.edu-servers.net. 172800 IN A 192.54.112.30
|
||||
; i.edu-servers.net. 172800 IN A 192.43.172.30
|
||||
; j.edu-servers.net. 172800 IN A 192.48.79.30
|
||||
; k.edu-servers.net. 172800 IN A 192.52.178.30
|
||||
; l.edu-servers.net. 172800 IN A 192.41.162.30
|
||||
; m.edu-servers.net. 172800 IN A 192.55.83.30
|
||||
; a.edu-servers.net. 172800 IN AAAA 2001:503:a83e::2:30
|
||||
; b.edu-servers.net. 172800 IN AAAA 2001:503:231d::2:30
|
||||
; c.edu-servers.net. 172800 IN AAAA 2001:503:83eb::30
|
||||
; d.edu-servers.net. 172800 IN AAAA 2001:500:856e::30
|
||||
; e.edu-servers.net. 172800 IN AAAA 2001:502:1ca1::30
|
||||
; f.edu-servers.net. 172800 IN AAAA 2001:503:d414::30
|
||||
; g.edu-servers.net. 172800 IN AAAA 2001:503:eea3::30
|
||||
; h.edu-servers.net. 172800 IN AAAA 2001:502:8cc::30
|
||||
; i.edu-servers.net. 172800 IN AAAA 2001:503:39c1::30
|
||||
; j.edu-servers.net. 172800 IN AAAA 2001:502:7094::30
|
||||
; k.edu-servers.net. 172800 IN AAAA 2001:503:d2d::30
|
||||
; l.edu-servers.net. 172800 IN AAAA 2001:500:d937::30
|
||||
; m.edu-servers.net. 172800 IN AAAA 2001:501:b1f9::30
|
||||
|
||||
|
|
@ -1,159 +0,0 @@
|
|||
#!/bin/bash
|
||||
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# runtest.sh of /CoreOS/bind/Regression/bz1647539-bind-crashes-with-assertion-error-if-log-message
|
||||
# Description: Test for BZ#1647539 (bind crashes with assertion error if log message)
|
||||
# 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/.
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
# Include Beaker environment
|
||||
. /usr/bin/rhts-environment.sh || exit 1
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PACKAGE="bind"
|
||||
|
||||
true <<'=cut'
|
||||
=head2 bsDnssecManagedKeys
|
||||
=over
|
||||
|
||||
=item path Path to public key
|
||||
Generated managed keys config snipped. Can be included as trusted anchor
|
||||
from named.conf.
|
||||
=cut
|
||||
bsDnssecManagedKeys()
|
||||
{
|
||||
echo "managed-keys {"
|
||||
grep -v '^;' "$@" | while read ZONE CLASS TYPE FLAGS PROTO ALG KEYDATA; do
|
||||
echo "$ZONE initial-key $FLAGS $PROTO $ALG \"$KEYDATA\";"
|
||||
done
|
||||
echo "};"
|
||||
}
|
||||
|
||||
true <<'=cut'
|
||||
=head2 bsDnssecGenerateSign
|
||||
=item zone Domain origin
|
||||
=item file Zone file with zone data
|
||||
=item [anchor] Anchor basename, where trusted root would be generated
|
||||
=item [key algorithm] Key algorithm
|
||||
=item [key bitsize] Key bit size
|
||||
=over
|
||||
|
||||
Generate new zone Key Signing Key and Zone Signing Key, then use it to sign
|
||||
the zone. If anchor is also non-empty, generate trusted anchor from KSK.
|
||||
=cut
|
||||
bsDnssecGenerateSign()
|
||||
{
|
||||
local ZONE="$1"
|
||||
local FILE="${2:-$ZONE.db}"
|
||||
local ANCHOR="$3"
|
||||
local ALGORITHM="${4:-RSASHA256}"
|
||||
local KEY_SIZE="${5:-2048}"
|
||||
|
||||
rlRun "KSK=`dnssec-keygen -a $ALGORITHM -b $KEY_SIZE -f KSK $ZONE`"
|
||||
rlRun "ZSK=`dnssec-keygen -a $ALGORITHM -b $KEY_SIZE $ZONE`"
|
||||
rlRun "dnssec-signzone -S -g -o $ZONE $FILE $KSK $ZSK"
|
||||
if [ -n "$ANCHOR" ]; then
|
||||
rlRun "bsDnssecManagedKeys $KSK.key > $ANCHOR.conf"
|
||||
rlRun "grep -v '^;' $KSK.key > $ANCHOR.key"
|
||||
fi
|
||||
}
|
||||
|
||||
true <<'=cut'
|
||||
=head2 bsDigStatus
|
||||
=over
|
||||
=item status Required dig status
|
||||
=item dig_params Remaining dig parameters
|
||||
=cut
|
||||
bsDigStatus()
|
||||
{
|
||||
STATUS="$1"
|
||||
shift
|
||||
local DIG_PARAMS="$@"
|
||||
rlRun -s "${DIG:-dig} ${DIG_PARAMS}"
|
||||
RET=$?
|
||||
rlAssertEquals "Checking ${DIG:-dig} status matches" \
|
||||
"$STATUS" \
|
||||
"`sed -e 's/;; ->>HEADER<<- opcode: QUERY, status: \([A-Z0-9]\+\),.*/\1/' -e 't' -e 'd' \"$rlRun_LOG\"`"
|
||||
rlRun "rm -f \"$rlRun_LOG\""
|
||||
return $RET
|
||||
}
|
||||
|
||||
|
||||
test_iteration()
|
||||
{
|
||||
T="x123456789.123456789.123456789.123456789.abcdefghijklmnopqrstuvwxyz"
|
||||
SUFFIX=$1
|
||||
RRTYPE=${2:-TXT}
|
||||
if rlRun "$DIG_REC -t NS $SUFFIX" 0 "Testing recursive server with suffix $SUFFIX"
|
||||
then
|
||||
for ((I=1; I<${#T}; I++))
|
||||
do
|
||||
rlRun "$DIG_REC +dnssec +bufsize=2048 -t $RRTYPE ${T:0:I}.$SUFFIX"
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup
|
||||
rlAssertRpm $PACKAGE
|
||||
rlAssertRpm bind
|
||||
rlAssertRpm bind-utils
|
||||
rlAssertRpm procps-ng
|
||||
rlAssertRpm rng-tools
|
||||
ZONEFILES="root.db very-long-01234567890123456789012345678901234567.test.db"
|
||||
ZONEFILES="root.db edu-servers.net.db"
|
||||
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
||||
rlRun "cp named.conf named-recursive.conf named.hints $ZONEFILES $TmpDir"
|
||||
rlRun "cp $ZONEFILES $TmpDir"
|
||||
rlRun "cp dsset-* $TmpDir"
|
||||
rlRun "pushd $TmpDir"
|
||||
rlServiceStart rngd
|
||||
rlRun "bsDnssecGenerateSign . root.db root"
|
||||
rlRun "named -c named.conf -d 12" 0 "Starting authoritative server"
|
||||
rlRun "named -c named-recursive.conf -d 12" 0 "Starting recursive server"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest
|
||||
DIG="dig @localhost"
|
||||
REC_PORT="-p 53333"
|
||||
DIG_REC="$DIG $REC_PORT"
|
||||
rlRun "bsDigStatus NOERROR +norec" 0 "Testing authoritative server"
|
||||
rlRun "bsDigStatus NOERROR $REC_PORT" 0 "Testing recursive server"
|
||||
rlAssertExists "named.pid"
|
||||
rlAssertExists "named-recursive.pid"
|
||||
rlAssertExists "named-recursive.run"
|
||||
rlRun "$DIG_REC" 0 "Testing recursive server"
|
||||
# FIXME: this assumes query id is 5 characters long. May not work reliably if shorter is used.
|
||||
rlRun "$DIG_REC -t AAAA +dnssec udel.edu." 0 "Checking crashing request"
|
||||
rlRun "$DIG_REC" 0 "Testing recursive server"
|
||||
#rlRun "PS1='in-test ' bash -i"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup
|
||||
rlRun "pkill -F named-recursive.pid"
|
||||
rlRun "pkill -F named.pid"
|
||||
rlRun "popd"
|
||||
rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
|
||||
rlServiceRestore rngd
|
||||
rlPhaseEnd
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
|
|
@ -1,64 +0,0 @@
|
|||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Makefile of /CoreOS/bind/Regression/bz1720703-Latest-bind-9-9-update-now-causes-zone-transfer
|
||||
# Description: Test for BZ#1720703 (Latest bind (9.9) update now causes zone transfer)
|
||||
# Author: Petr Mensik <pemensik@redhat.com>
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Copyright (c) 2019 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/bz1720703-Latest-bind-9-9-update-now-causes-zone-transfer
|
||||
export TESTVERSION=1.0
|
||||
|
||||
BUILT_FILES=
|
||||
|
||||
FILES=$(METADATA) runtest.sh Makefile PURPOSE named.conf bigzone.zone root.zone
|
||||
|
||||
.PHONY: all install download clean
|
||||
|
||||
run: $(FILES) build
|
||||
./runtest.sh
|
||||
|
||||
build: $(BUILT_FILES)
|
||||
test -x runtest.sh || chmod a+x runtest.sh
|
||||
|
||||
clean:
|
||||
rm -f *~ $(BUILT_FILES)
|
||||
|
||||
|
||||
include $(realpath /usr/share/rhts/lib/rhts-make.include)
|
||||
|
||||
$(METADATA): Makefile
|
||||
@echo "Owner: Petr Mensik <pemensik@redhat.com>" > $(METADATA)
|
||||
@echo "Name: $(TEST)" >> $(METADATA)
|
||||
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
||||
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
||||
@echo "Description: Test for BZ#1720703 (Latest bind (9.9) update now causes zone transfer)" >> $(METADATA)
|
||||
@echo "Type: Regression" >> $(METADATA)
|
||||
@echo "TestTime: 5m" >> $(METADATA)
|
||||
@echo "RunFor: bind" >> $(METADATA)
|
||||
@echo "Requires: bind bind-utils" >> $(METADATA)
|
||||
@echo "Priority: Normal" >> $(METADATA)
|
||||
@echo "License: GPLv2+" >> $(METADATA)
|
||||
@echo "Confidential: no" >> $(METADATA)
|
||||
@echo "Destructive: no" >> $(METADATA)
|
||||
@echo "Bug: 1720703" >> $(METADATA)
|
||||
@echo "Releases: -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA)
|
||||
|
||||
[ -x /usr/bin/rhts-lint ] && rhts-lint $(METADATA)
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
PURPOSE of /CoreOS/bind/Regression/bz1720703-Latest-bind-9-9-update-now-causes-zone-transfer
|
||||
Description: Test for BZ#1720703 (Latest bind (9.9) update now causes zone transfer)
|
||||
Author: Petr Mensik <pemensik@redhat.com>
|
||||
Bug summary: Latest bind (9.9) update now causes zone transfer to always fail.
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1720703
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,23 +0,0 @@
|
|||
summary: Test for BZ#1720703 (Latest bind (9.9) update now causes zone transfer)
|
||||
description: |
|
||||
Bug summary: Latest bind (9.9) update now causes zone transfer to always fail.
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1720703
|
||||
contact: Petr Sklenar <psklenar@redhat.com>
|
||||
component:
|
||||
- bind
|
||||
test: ./runtest.sh
|
||||
require:
|
||||
- bind
|
||||
- bind-utils
|
||||
duration: 5m
|
||||
enabled: true
|
||||
tag:
|
||||
- NoRHEL4
|
||||
- NoRHEL5
|
||||
- TIPfail_infra
|
||||
- TIPpass
|
||||
relevancy: |
|
||||
distro = rhel-4, rhel-5: False
|
||||
extra-summary: /CoreOS/bind/Regression/bz1720703-Latest-bind-9-9-update-now-causes-zone-transfer
|
||||
extra-task: /CoreOS/bind/Regression/bz1720703-Latest-bind-9-9-update-now-causes-zone-transfer
|
||||
extra-nitrate: TC#0602014
|
||||
|
|
@ -1,86 +0,0 @@
|
|||
//
|
||||
// named.conf
|
||||
//
|
||||
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
|
||||
// server as a caching only nameserver (as a localhost DNS resolver only).
|
||||
//
|
||||
// See /usr/share/doc/bind*/sample/ for example named configuration files.
|
||||
//
|
||||
// See the BIND Administrator's Reference Manual (ARM) for details about the
|
||||
// configuration located in /usr/share/doc/bind-{version}/Bv9ARM.html
|
||||
|
||||
options {
|
||||
listen-on port 53 { any; };
|
||||
listen-on-v6 port 53 { any; };
|
||||
directory "/var/named";
|
||||
dump-file "/var/named/data/cache_dump.db";
|
||||
statistics-file "/var/named/data/named_stats.txt";
|
||||
memstatistics-file "/var/named/data/named_mem_stats.txt";
|
||||
recursing-file "/var/named/data/named.recursing";
|
||||
secroots-file "/var/named/data/named.secroots";
|
||||
allow-query { localhost; any; };
|
||||
|
||||
/*
|
||||
- If you are building an AUTHORITATIVE DNS server, do NOT enable recursion.
|
||||
- If you are building a RECURSIVE (caching) DNS server, you need to enable
|
||||
recursion.
|
||||
- If your recursive DNS server has a public IP address, you MUST enable access
|
||||
control to limit queries to your legitimate users. Failing to do so will
|
||||
cause your server to become part of large scale DNS amplification
|
||||
attacks. Implementing BCP38 within your network would greatly
|
||||
reduce such attack surface
|
||||
*/
|
||||
recursion yes;
|
||||
|
||||
dnssec-enable yes;
|
||||
dnssec-validation yes;
|
||||
|
||||
managed-keys-directory "/var/named/dynamic";
|
||||
|
||||
pid-file "/run/named/named.pid";
|
||||
session-keyfile "/run/named/session.key";
|
||||
|
||||
# default changed by downstream patch
|
||||
#keep-response-order { none; };
|
||||
};
|
||||
|
||||
logging {
|
||||
channel default_debug {
|
||||
file "data/named.run";
|
||||
severity dynamic;
|
||||
};
|
||||
};
|
||||
|
||||
zone "." IN {
|
||||
type master;
|
||||
file "root.zone";
|
||||
allow-transfer { any; };
|
||||
};
|
||||
|
||||
zone "xfr1.test" IN {
|
||||
type master;
|
||||
file "bigzone.zone";
|
||||
allow-transfer { any; };
|
||||
};
|
||||
|
||||
zone "xfr2.test" IN {
|
||||
type master;
|
||||
file "bigzone.zone";
|
||||
allow-transfer { any; };
|
||||
};
|
||||
|
||||
zone "xfr3.test" IN {
|
||||
type master;
|
||||
file "bigzone.zone";
|
||||
allow-transfer { any; };
|
||||
};
|
||||
|
||||
zone "xfr4.test" IN {
|
||||
type master;
|
||||
file "bigzone.zone";
|
||||
allow-transfer { any; };
|
||||
};
|
||||
|
||||
include "/etc/named.rfc1912.zones";
|
||||
include "/etc/named.root.key";
|
||||
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,88 +0,0 @@
|
|||
#!/bin/bash
|
||||
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# runtest.sh of /CoreOS/bind/Regression/bz1720703-Latest-bind-9-9-update-now-causes-zone-transfer
|
||||
# Description: Test for BZ#1720703 (Latest bind (9.9) update now causes zone transfer)
|
||||
# Author: Petr Mensik <pemensik@redhat.com>
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Copyright (c) 2019 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"
|
||||
TIMEOUT=60
|
||||
|
||||
transfer_test()
|
||||
{
|
||||
FILE=$1.db
|
||||
RECORDS=$2
|
||||
[ "$1" = '.' ] && FILE=root.db
|
||||
|
||||
rlRun "rlWatchdog \"dig @localhost -t AXFR -q $1 > $FILE\" $TIMEOUT TERM" 0 "Transfer zone $1"
|
||||
rlRun "tail $FILE"
|
||||
rlRun "grep '^; Transfer failed' $FILE" 1 "Checking successful transfer"
|
||||
rlAssertGrep "^;; XFR size: ${RECORDS} records" "$FILE"
|
||||
rlRun "LINES=`grep -v '^;' $FILE | wc -l`" 0 "Count lines"
|
||||
rlAssertGreater "Checking enough records were fetched" $LINES $RECORDS
|
||||
}
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup
|
||||
rlAssertRpm $PACKAGE
|
||||
rlAssertRpm $PACKAGE-utils
|
||||
|
||||
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
||||
rlRun "rlFileBackup /etc/named.conf"
|
||||
rlRun "rlFileBackup /etc/sysconfig/named"
|
||||
rlRun "cp -f named.conf /etc/named.conf"
|
||||
rlRun "rlFileBackup --missing-ok /var/named/bigzone.zone"
|
||||
rlRun "cp -f bigzone.zone root.zone /var/named"
|
||||
if ! grep '^OPTIONS=' /etc/sysconfig/named
|
||||
then
|
||||
# Allow customization when testing, change only first time
|
||||
echo "OPTIONS='-d 7'" >> /etc/sysconfig/named
|
||||
rlLog "Changed default debug log level"
|
||||
fi
|
||||
rlRun "pushd $TmpDir"
|
||||
rlRun "rlServiceStart named"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest
|
||||
rlRun -s "dig @localhost -t SOA -q xfr1.test" 0 "Checking zone is online"
|
||||
rlAssertGrep '^;.* status: NOERROR' "$rlRun_LOG"
|
||||
# do not translate IDN
|
||||
export IDN_DISABLE=1
|
||||
export CHARSET=ASCII
|
||||
transfer_test . 22492
|
||||
transfer_test xfr1.test 149653
|
||||
transfer_test xfr2.test 149653
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup
|
||||
rlRun "popd"
|
||||
rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
|
||||
rlFileRestore
|
||||
rlServiceRestore named
|
||||
rlPhaseEnd
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
|
|
@ -1,64 +0,0 @@
|
|||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Makefile of /CoreOS/bind/Regression/bz1759845-python-bind-s-isc-parsetab-must-be-regenerated
|
||||
# Description: Test for BZ#1759845 (python-bind's isc.parsetab must be regenerated)
|
||||
# Author: Petr Mensik <pemensik@redhat.com>
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Copyright (c) 2019 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/bz1759845-python-bind-s-isc-parsetab-must-be-regenerated
|
||||
export TESTVERSION=1.0
|
||||
|
||||
BUILT_FILES=
|
||||
|
||||
FILES=$(METADATA) runtest.sh Makefile PURPOSE checkversion.py
|
||||
|
||||
.PHONY: all install download clean
|
||||
|
||||
run: $(FILES) build
|
||||
./runtest.sh
|
||||
|
||||
build: $(BUILT_FILES)
|
||||
test -x runtest.sh || chmod a+x runtest.sh
|
||||
|
||||
clean:
|
||||
rm -f *~ $(BUILT_FILES)
|
||||
|
||||
|
||||
include $(realpath /usr/share/rhts/lib/rhts-make.include)
|
||||
|
||||
$(METADATA): Makefile
|
||||
@echo "Owner: Petr Mensik <pemensik@redhat.com>" > $(METADATA)
|
||||
@echo "Name: $(TEST)" >> $(METADATA)
|
||||
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
||||
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
||||
@echo "Description: Test for BZ#1759845 (python-bind's isc.parsetab must be regenerated)" >> $(METADATA)
|
||||
@echo "Type: Regression" >> $(METADATA)
|
||||
@echo "TestTime: 5m" >> $(METADATA)
|
||||
@echo "RunFor: bind" >> $(METADATA)
|
||||
@echo "Requires: bind bind-utils" >> $(METADATA)
|
||||
@echo "Priority: Normal" >> $(METADATA)
|
||||
@echo "License: GPLv2+" >> $(METADATA)
|
||||
@echo "Confidential: no" >> $(METADATA)
|
||||
@echo "Destructive: no" >> $(METADATA)
|
||||
@echo "Bug: 1759845" >> $(METADATA)
|
||||
@echo "Releases: -RHEL4 -RHEL6 -RHELClient5 -RHELServer5 -RHEL6 -RHEL7" >> $(METADATA)
|
||||
|
||||
[ -x /usr/bin/rhts-lint ] && rhts-lint $(METADATA)
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
PURPOSE of /CoreOS/bind/Regression/bz1759845-python-bind-s-isc-parsetab-must-be-regenerated
|
||||
Description: Test for BZ#1759845 (python-bind's isc.parsetab must be regenerated)
|
||||
Author: Petr Mensik <pemensik@redhat.com>
|
||||
Bug summary: python-bind's isc.parsetab must be regenerated after python-ply has been updated
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1759845
|
||||
|
||||
Ensure generated grammar version remains the same as original ply.yacc
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
import ply.yacc
|
||||
import isc.parsetab
|
||||
|
||||
p_ver = ply.yacc.__tabversion__
|
||||
i_ver = isc.parsetab._tabversion
|
||||
print('tabversions: ply {p_ver} == isc {i_ver}: {result}'.format(
|
||||
p_ver=p_ver, i_ver=i_ver, result=(p_ver == i_ver)))
|
||||
assert(p_ver == i_ver)
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
summary: Test for BZ#1759845 (python-bind's isc.parsetab must be regenerated)
|
||||
description: |
|
||||
Bug summary: python-bind's isc.parsetab must be regenerated after python-ply has been updated
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1759845
|
||||
|
||||
Ensure generated grammar version remains the same as original ply.yacc
|
||||
contact: None <rhack@redhat.com>
|
||||
component:
|
||||
- bind
|
||||
test: ./runtest.sh
|
||||
require:
|
||||
- bind
|
||||
- bind-utils
|
||||
duration: 5m
|
||||
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/bz1759845-python-bind-s-isc-parsetab-must-be-regenerated
|
||||
extra-task: /CoreOS/bind/Regression/bz1759845-python-bind-s-isc-parsetab-must-be-regenerated
|
||||
extra-nitrate: TC#0605274
|
||||
|
|
@ -1,53 +0,0 @@
|
|||
#!/bin/bash
|
||||
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# runtest.sh of /CoreOS/bind/Regression/bz1759845-python-bind-s-isc-parsetab-must-be-regenerated
|
||||
# Description: Test for BZ#1759845 (python-bind's isc.parsetab must be regenerated)
|
||||
# Author: Petr Mensik <pemensik@redhat.com>
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Copyright (c) 2019 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 "cp checkversion.py $TmpDir"
|
||||
rlRun "pushd $TmpDir"
|
||||
for PYTHON in python3 python2; do [ -x "/usr/bin/$PYTHON" ] && break; done
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest
|
||||
rlRun "$PYTHON --version" 0 "Check python works"
|
||||
rlRun "$PYTHON checkversion.py" 0 "Comparing python versions"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup
|
||||
rlRun "popd"
|
||||
rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
|
||||
rlPhaseEnd
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
$ORIGIN 290b3302.cz.
|
||||
$TTL 86400
|
||||
@ IN SOA dns1.290b3302.cz. hostmaster.290b3302.cz. (
|
||||
895406000 ; 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.290b3302.cz.
|
||||
IN NS dns2.290b3302.cz.
|
||||
|
||||
IN MX 10 mail.290b3302.cz.
|
||||
IN MX 20 mail2.290b3302.cz.
|
||||
|
||||
IN A 192.168.1.28
|
||||
|
||||
server1 IN A 192.168.1.126
|
||||
server2 IN A 192.168.1.36
|
||||
dns1 IN A 192.168.1.37
|
||||
dns2 IN A 192.168.1.67
|
||||
|
||||
ftp IN CNAME server1
|
||||
mail IN CNAME server1
|
||||
mail2 IN CNAME server2
|
||||
www IN CNAME server2
|
||||
|
||||
|
|
@ -1,64 +0,0 @@
|
|||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Makefile of /CoreOS/bind/Regression/bz623673-Single-Zone-File-Error-Causes-Full-BIND-Failure
|
||||
# Description: Test for bz623673 (Single Zone File Error Causes Full BIND Failure)
|
||||
# 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/bz623673-Single-Zone-File-Error-Causes-Full-BIND-Failure
|
||||
export TESTVERSION=1.0
|
||||
|
||||
BUILT_FILES=
|
||||
|
||||
FILES=$(METADATA) runtest.sh Makefile PURPOSE named.conf 290b3302.cz.zone
|
||||
|
||||
.PHONY: all install download clean
|
||||
|
||||
run: $(FILES) build
|
||||
./runtest.sh
|
||||
|
||||
build: $(BUILT_FILES)
|
||||
chmod a+x runtest.sh
|
||||
|
||||
clean:
|
||||
rm -f *~ $(BUILT_FILES)
|
||||
|
||||
|
||||
include $(realpath /usr/share/rhts/lib/rhts-make.include)
|
||||
|
||||
$(METADATA): Makefile
|
||||
@echo "Owner: Martin Cermak <mcermak@redhat.com>" > $(METADATA)
|
||||
@echo "Name: $(TEST)" >> $(METADATA)
|
||||
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
||||
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
||||
@echo "Description: Test for bz623673 (Single Zone File Error Causes Full BIND Failure)" >> $(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: 623673" >> $(METADATA)
|
||||
|
||||
[ -x /usr/bin/rhts-lint ] && rhts-lint $(METADATA)
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
PURPOSE of /CoreOS/bind/Regression/bz623673-Single-Zone-File-Error-Causes-Full-BIND-Failure
|
||||
Description: Test for bz623673 (Single Zone File Error Causes Full BIND Failure)
|
||||
Author: Martin Cermak <mcermak@redhat.com>
|
||||
Bug summary: Single Zone File Error Causes Full BIND Failure
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=623673
|
||||
|
||||
|
||||
This test will not run with RHEL6 until bz623673 is resolved.
|
||||
|
||||
Fixed in RHEL5.6+
|
||||
|
|
@ -1,32 +0,0 @@
|
|||
summary: Test for bz623673 (Single Zone File Error Causes Full BIND Failure)
|
||||
description: |
|
||||
Bug summary: Single Zone File Error Causes Full BIND Failure
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=623673
|
||||
|
||||
|
||||
This test will not run with RHEL6 until bz623673 is resolved.
|
||||
|
||||
Fixed in RHEL5.6+
|
||||
contact: Petr Sklenar <psklenar@redhat.com>
|
||||
component:
|
||||
- bind
|
||||
test: ./runtest.sh
|
||||
require:
|
||||
- bind
|
||||
- bind-chroot
|
||||
- bind-utils
|
||||
- redhat-lsb
|
||||
duration: 15m
|
||||
enabled: true
|
||||
tag:
|
||||
- TIPfail_infra
|
||||
- TIPpass
|
||||
- Tier2
|
||||
- TipWaived5
|
||||
- broken6.3
|
||||
tier: '2'
|
||||
relevancy: |
|
||||
distro = rhel-6: False
|
||||
extra-summary: /CoreOS/bind/Regression/bz623673-Single-Zone-File-Error-Causes-Full-BIND-Failure
|
||||
extra-task: /CoreOS/bind/Regression/bz623673-Single-Zone-File-Error-Causes-Full-BIND-Failure
|
||||
extra-nitrate: TC#0126569
|
||||
|
|
@ -1,35 +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";
|
||||
|
||||
// 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; };
|
||||
|
||||
/* <USEROPTIONS> */
|
||||
/* </USEROPTIONS> */
|
||||
|
||||
};
|
||||
logging {
|
||||
channel default_debug {
|
||||
file "data/named.run";
|
||||
severity dynamic;
|
||||
};
|
||||
};
|
||||
|
||||
zone "290b3302.cz" IN {
|
||||
type master;
|
||||
file "290b3302.cz.zone";
|
||||
allow-update { none; };
|
||||
};
|
||||
|
||||
/* <USERSETTINGS> */
|
||||
/* </USERSETTINGS> */
|
||||
|
|
@ -1,73 +0,0 @@
|
|||
#!/bin/bash
|
||||
# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# runtest.sh of /CoreOS/bind/Regression/bz623673-Single-Zone-File-Error-Causes-Full-BIND-Failure
|
||||
# Description: Test for bz623673 (Single Zone File Error Causes Full BIND Failure)
|
||||
# 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"
|
||||
ORIGPWD=`pwd`
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup
|
||||
rlFileBackup --clean /var/named
|
||||
rlFileBackup /etc/sysconfig/named
|
||||
rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory"
|
||||
rlRun "pushd $TmpDir"
|
||||
|
||||
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" "chrooton"
|
||||
rlRun "cp $ORIGPWD/290b3302.cz.zone /var/named/chroot/var/named/290b3302.cz.zone"
|
||||
rlRun "cp $ORIGPWD/290b3302.cz.zone /var/named/290b3302.cz.zone"
|
||||
bsBindSetupDone
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest
|
||||
rlRun "dig @localhost 290b3302.cz +short | grep \"192.168.1.28\""
|
||||
|
||||
|
||||
rlRun "echo blablabla >> /var/named/chroot/var/named/290b3302.cz.zone"
|
||||
rlRun "echo blablabla >> /var/named/290b3302.cz.zone"
|
||||
|
||||
rlRun "service named restart" 1-255
|
||||
|
||||
rlRun "echo \"DISABLE_ZONE_CHECKING=yes\" >> /etc/sysconfig/named"
|
||||
|
||||
rlRun "service named restart" 0
|
||||
|
||||
rlRun "dig @localhost 290b3302.cz +short | grep \"192.168.1.28\"" 1
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup
|
||||
bsBindSetupCleanup
|
||||
rlRun "popd"
|
||||
rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
|
||||
/bin/rm -f /var/named/chroot/var/named/290b3302.cz.zone /var/named/290b3302.cz.zone
|
||||
rlPhaseEnd
|
||||
rlJournalEnd
|
||||
|
|
@ -1,64 +0,0 @@
|
|||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Makefile of /CoreOS/bind/Regression/bz640538-dig-man-page-exitcodes-not-documented
|
||||
# Description: Test for bz640538 (dig man page - exitcodes not documented)
|
||||
# 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/bz640538-dig-man-page-exitcodes-not-documented
|
||||
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 $(realpath /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 bz640538 (dig man page - exitcodes not documented)" >> $(METADATA)
|
||||
@echo "Type: Regression" >> $(METADATA)
|
||||
@echo "TestTime: 15m" >> $(METADATA)
|
||||
@echo "RunFor: bind" >> $(METADATA)
|
||||
@echo "Requires: bind bind-utils" >> $(METADATA)
|
||||
@echo "Priority: Normal" >> $(METADATA)
|
||||
@echo "License: GPLv2" >> $(METADATA)
|
||||
@echo "Confidential: no" >> $(METADATA)
|
||||
@echo "Destructive: no" >> $(METADATA)
|
||||
@echo "Bug: 640538" >> $(METADATA)
|
||||
|
||||
[ -x /usr/bin/rhts-lint ] && rhts-lint $(METADATA)
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
PURPOSE of /CoreOS/bind/Regression/bz640538-dig-man-page-exitcodes-not-documented
|
||||
Description: Test for bz640538 (dig man page - exitcodes not documented)
|
||||
Author: Martin Cermak <mcermak@redhat.com>
|
||||
Bug summary: dig man page - exitcodes not documented
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=640538
|
||||
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
summary: Test for bz640538 (dig man page - exitcodes not documented)
|
||||
description: |+
|
||||
Bug summary: dig man page - exitcodes not documented
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=640538
|
||||
|
||||
contact: Petr Sklenar <psklenar@redhat.com>
|
||||
component:
|
||||
- bind
|
||||
test: ./runtest.sh
|
||||
require:
|
||||
- bind
|
||||
- bind-utils
|
||||
duration: 15m
|
||||
enabled: true
|
||||
tag:
|
||||
- NoRHEL4
|
||||
- TIPfail_infra
|
||||
- TIPpass
|
||||
extra-summary: /CoreOS/bind/Regression/bz640538-dig-man-page-exitcodes-not-documented
|
||||
extra-task: /CoreOS/bind/Regression/bz640538-dig-man-page-exitcodes-not-documented
|
||||
extra-nitrate: TC#0126575
|
||||
|
|
@ -1,42 +0,0 @@
|
|||
#!/bin/bash
|
||||
# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# runtest.sh of /CoreOS/bind/Regression/bz640538-dig-man-page-exitcodes-not-documented
|
||||
# Description: Test for bz640538 (dig man page - exitcodes not documented)
|
||||
# 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
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup
|
||||
rlAssertRpm $( rpm -qf `which named` )
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest
|
||||
rlRun "man dig | col -b | grep '^RETURN CODES'"
|
||||
rlPhaseEnd
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
|
|
@ -1,65 +0,0 @@
|
|||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Makefile of /CoreOS/bind/Regression/bz660676-bind-named-8-man-page-mentions-system-config-bind
|
||||
# Description: Test for bz660676 (bind: named.8 man page mentions system-config-bind)
|
||||
# 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/bz660676-bind-named-8-man-page-mentions-system-config-bind
|
||||
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 $(realpath /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 bz660676 (bind: named.8 man page mentions system-config-bind)" >> $(METADATA)
|
||||
@echo "Type: Regression" >> $(METADATA)
|
||||
@echo "TestTime: 15m" >> $(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: 660676" >> $(METADATA)
|
||||
@echo "Releases: -RedHatEnterpriseLinux3 -RedHatEnterpriseLinux4 -RedHatEnterpriseLinux4 -RHEL5" >> $(METADATA)
|
||||
|
||||
[ -x /usr/bin/rhts-lint ] && rhts-lint $(METADATA)
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
PURPOSE of /CoreOS/bind/Regression/bz660676-bind-named-8-man-page-mentions-system-config-bind
|
||||
Description: Test for bz660676 (bind: named.8 man page mentions system-config-bind)
|
||||
Author: Martin Cermak <mcermak@redhat.com>
|
||||
Bug summary: bind: named.8 man page mentions system-config-bind not available in RHEL-6
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=660676
|
||||
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
summary: 'Test for bz660676 (bind: named.8 man page mentions system-config-bind)'
|
||||
description: |+
|
||||
Bug summary: bind: named.8 man page mentions system-config-bind not available in RHEL-6
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=660676
|
||||
|
||||
contact: Petr Sklenar <psklenar@redhat.com>
|
||||
component:
|
||||
- bind
|
||||
test: ./runtest.sh
|
||||
require:
|
||||
- bind
|
||||
duration: 15m
|
||||
enabled: true
|
||||
tag:
|
||||
- NoRHEL3
|
||||
- NoRHEL4
|
||||
- NoRHEL5
|
||||
- TIPfail_infra
|
||||
- TIPpass
|
||||
extra-summary: /CoreOS/bind/Regression/bz660676-bind-named-8-man-page-mentions-system-config-bind
|
||||
extra-task: /CoreOS/bind/Regression/bz660676-bind-named-8-man-page-mentions-system-config-bind
|
||||
extra-nitrate: TC#0126560
|
||||
|
|
@ -1,43 +0,0 @@
|
|||
#!/bin/bash
|
||||
# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# runtest.sh of /CoreOS/bind/Regression/bz660676-bind-named-8-man-page-mentions-system-config-bind
|
||||
# Description: Test for bz660676 (bind: named.8 man page mentions system-config-bind)
|
||||
# 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
|
||||
|
||||
PACKAGE="bind"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup
|
||||
rlAssertRpm $PACKAGE
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest
|
||||
rlRun "man 8 named | col -b | grep 'system-config-bind'" 1
|
||||
rlPhaseEnd
|
||||
rlJournalEnd
|
||||
|
|
@ -1,64 +0,0 @@
|
|||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Makefile of /CoreOS/bind/Regression/bz789886-bind-chroot-package-has-a-few-bugs
|
||||
# Description: Test for BZ#789886 (bind-chroot package has a few bugs)
|
||||
# Author: Juraj Marko <jmarko@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/bz789886-bind-chroot-package-has-a-few-bugs
|
||||
export TESTVERSION=1.0
|
||||
|
||||
BUILT_FILES=
|
||||
|
||||
FILES=$(METADATA) runtest.sh Makefile PURPOSE
|
||||
|
||||
.PHONY: all install download clean
|
||||
|
||||
run: $(FILES) build
|
||||
./runtest.sh
|
||||
|
||||
build: $(BUILT_FILES)
|
||||
test -x runtest.sh || chmod a+x runtest.sh
|
||||
|
||||
clean:
|
||||
rm -f *~ $(BUILT_FILES)
|
||||
|
||||
|
||||
include $(realpath /usr/share/rhts/lib/rhts-make.include)
|
||||
|
||||
$(METADATA): Makefile
|
||||
@echo "Owner: Juraj Marko <jmarko@redhat.com>" > $(METADATA)
|
||||
@echo "Name: $(TEST)" >> $(METADATA)
|
||||
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
||||
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
||||
@echo "Description: Test for BZ#789886 (bind-chroot package has a few bugs)" >> $(METADATA)
|
||||
@echo "Type: Regression" >> $(METADATA)
|
||||
@echo "TestTime: 5m" >> $(METADATA)
|
||||
@echo "RunFor: bind" >> $(METADATA)
|
||||
@echo "Requires: bind bind-chroot" >> $(METADATA)
|
||||
@echo "Priority: Normal" >> $(METADATA)
|
||||
@echo "License: GPLv2" >> $(METADATA)
|
||||
@echo "Confidential: no" >> $(METADATA)
|
||||
@echo "Destructive: yes" >> $(METADATA)
|
||||
@echo "Bug: 789886" >> $(METADATA)
|
||||
|
||||
[ -x /usr/bin/rhts-lint ] && rhts-lint $(METADATA)
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
PURPOSE of /CoreOS/bind/Regression/bz789886-bind-chroot-package-has-a-few-bugs
|
||||
Description: Test for BZ#789886 (bind-chroot package has a few bugs)
|
||||
Author: Juraj Marko <jmarko@redhat.com>
|
||||
Bug summary: bind-chroot package has a few bugs
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=789886
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
summary: Test for BZ#789886 (bind-chroot package has a few bugs)
|
||||
description: |
|
||||
Bug summary: bind-chroot package has a few bugs
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=789886
|
||||
contact: Petr Sklenar <psklenar@redhat.com>
|
||||
component:
|
||||
- bind
|
||||
test: ./runtest.sh
|
||||
require:
|
||||
- bind
|
||||
- bind-chroot
|
||||
duration: 5m
|
||||
enabled: true
|
||||
tag:
|
||||
- TIPpass
|
||||
- TIPpass_FIPS
|
||||
- TipWaived5
|
||||
- destructive
|
||||
- tip_destructive_el8
|
||||
relevancy: |
|
||||
distro < rhel-6: False
|
||||
extra-summary: /CoreOS/bind/Regression/bz789886-bind-chroot-package-has-a-few-bugs
|
||||
extra-task: /CoreOS/bind/Regression/bz789886-bind-chroot-package-has-a-few-bugs
|
||||
extra-nitrate: TC#0167926
|
||||
|
|
@ -1,56 +0,0 @@
|
|||
#!/bin/bash
|
||||
# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# runtest.sh of /CoreOS/bind/Regression/bz789886-bind-chroot-package-has-a-few-bugs
|
||||
# Description: Test for BZ#789886 (bind-chroot package has a few bugs)
|
||||
# Author: Juraj Marko <jmarko@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-libs && PACKAGE="bind97" || PACKAGE="bind"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup
|
||||
rlAssertRpm $PACKAGE
|
||||
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
||||
rlRun "pushd $TmpDir"
|
||||
rlRun "ls -la /var/named/chroot && rm -rf /var/named/chroot"
|
||||
rlRun "yum reinstall -y $PACKAGE-chroot"
|
||||
rlAssertExists "/var/named/chroot"
|
||||
rlRun "yum remove -y $PACKAGE-chroot"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest
|
||||
rlRun "ls -la /var/named/chroot/" 2 "everything removed ok"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup
|
||||
rlRun "yum install -y $PACKAGE-chroot"
|
||||
rlRun "popd"
|
||||
rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
|
||||
rlPhaseEnd
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
|
|
@ -1,64 +0,0 @@
|
|||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Makefile of /CoreOS/bind97/Regression/bz811566-Unable-to-disable-IDN-at-dig-out-put
|
||||
# Description: Test for BZ#811566 (Unable to disable IDN at "dig" out put)
|
||||
# Author: Branislav Blaskovic <bblaskov@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/bind97/Regression/bz811566-Unable-to-disable-IDN-at-dig-out-put
|
||||
export TESTVERSION=2.1
|
||||
|
||||
BUILT_FILES=
|
||||
|
||||
FILES=$(METADATA) runtest.sh Makefile PURPOSE
|
||||
|
||||
.PHONY: all install download clean
|
||||
|
||||
run: $(FILES) build
|
||||
./runtest.sh
|
||||
|
||||
build: $(BUILT_FILES)
|
||||
test -x runtest.sh || chmod a+x runtest.sh
|
||||
|
||||
clean:
|
||||
rm -f *~ $(BUILT_FILES)
|
||||
|
||||
|
||||
include $(realpath /usr/share/rhts/lib/rhts-make.include)
|
||||
|
||||
$(METADATA): Makefile
|
||||
@echo "Owner: Branislav Blaskovic <bblaskov@redhat.com>" > $(METADATA)
|
||||
@echo "Name: $(TEST)" >> $(METADATA)
|
||||
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
||||
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
||||
@echo "Description: Test for BZ#811566 (Unable to disable IDN at \"dig\" out put)" >> $(METADATA)
|
||||
@echo "Type: Regression" >> $(METADATA)
|
||||
@echo "TestTime: 5m" >> $(METADATA)
|
||||
@echo "RunFor: bind" >> $(METADATA)
|
||||
@echo "Requires: bind bind-utils" >> $(METADATA)
|
||||
@echo "Priority: Normal" >> $(METADATA)
|
||||
@echo "License: GPLv2" >> $(METADATA)
|
||||
@echo "Confidential: no" >> $(METADATA)
|
||||
@echo "Destructive: no" >> $(METADATA)
|
||||
@echo "Bug: 811566 1793332" >> $(METADATA)
|
||||
|
||||
[ -x /usr/bin/rhts-lint ] && rhts-lint $(METADATA)
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
PURPOSE of /CoreOS/bind97/Regression/bz811566-Unable-to-disable-IDN-at-dig-out-put
|
||||
Description: Test for BZ#811566 (Unable to disable IDN at "dig" out put)
|
||||
Author: Branislav Blaskovic <bblaskov@redhat.com>
|
||||
Bug summary: Unable to disable IDN at "dig" out put
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=811566
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
summary: Test for BZ#811566 (Unable to disable IDN at "dig" out put)
|
||||
description: |
|
||||
Bug summary: Unable to disable IDN at "dig" out put
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=811566
|
||||
contact: Petr Sklenar <psklenar@redhat.com>
|
||||
component:
|
||||
- bind
|
||||
test: ./runtest.sh
|
||||
require:
|
||||
- bind
|
||||
- bind-utils
|
||||
duration: 5m
|
||||
enabled: true
|
||||
tag:
|
||||
- TIP_fedora_fail
|
||||
- TIPfail
|
||||
- TIPfail_infra
|
||||
- TIPpass_FIPS
|
||||
- TipWaived5
|
||||
- TipWaived6
|
||||
- TipWaived7
|
||||
relevancy: |
|
||||
distro < rhel-6: False
|
||||
distro < rhel-6.6: False
|
||||
extra-summary: /CoreOS/bind97/Regression/bz811566-Unable-to-disable-IDN-at-dig-out-put
|
||||
extra-task: /CoreOS/bind97/Regression/bz811566-Unable-to-disable-IDN-at-dig-out-put
|
||||
extra-nitrate: TC#0200158
|
||||
|
|
@ -1,88 +0,0 @@
|
|||
#!/bin/bash
|
||||
# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# runtest.sh of /CoreOS/bind97/Regression/bz811566-Unable-to-disable-IDN-at-dig-out-put
|
||||
# Description: Test for BZ#811566 (Unable to disable IDN at "dig" out put)
|
||||
# Author: Branislav Blaskovic <bblaskov@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/share/beakerlib/beakerlib.sh
|
||||
|
||||
PACKAGE="bind97"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup
|
||||
if rpm -q "bind"; then
|
||||
PACKAGE=bind
|
||||
fi
|
||||
rlAssertRpm "$PACKAGE"
|
||||
rlAssertRpm "$PACKAGE-utils"
|
||||
rlServiceStop "named"
|
||||
|
||||
rlRun "rlFileBackup /etc/named.conf"
|
||||
echo '
|
||||
zone "xn--mnchen-3ya.test" IN {
|
||||
type master;
|
||||
file "named.localhost";
|
||||
allow-update { none; };
|
||||
};
|
||||
' >> /etc/named.conf
|
||||
rlRun "sed -e 's/recursion on/recursion off/' -i /etc/named.conf"
|
||||
rlRun "sed -e 's/recursion yes/recursion no/' -i /etc/named.conf"
|
||||
rlRun "rlServiceStart named"
|
||||
|
||||
export LC_ALL=en_US.UTF-8
|
||||
rlRun "locale"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest
|
||||
rlRun "gunzip -c /usr/share/man/man1/dig.1.gz | grep \"like to turn off the IDN support for some reason, \"" 0 "Sentence is grammatically correct"
|
||||
|
||||
rlLog "Checking IDN is enabled by default"
|
||||
rlRun "dig @localhost xn--mnchen-3ya.test | grep ^münchen.test" 0 "IDN is enabled on dig output"
|
||||
rlRun "dig @localhost münchen.test | grep ^münchen.test" 0 "IDN name is accepted on dig input"
|
||||
rlRun "host münchen.test localhost | grep ^münchen.test" 0 "IDN name is accepted on host input"
|
||||
|
||||
rlRun "export CHARSET=ASCII IDN_DISABLE=1" 0 "Disabling IDN support"
|
||||
rlRun "dig @localhost münchen.test | grep ^münchen.test" 1-255 "IDN name is not accepted on dig input"
|
||||
rlRun "host münchen.test | grep ^münchen.test" 1-255 "IDN name is not accepted on host input"
|
||||
rlRun "dig @localhost xn--mnchen-3ya.test | grep ^xn--mnchen-3ya.test" 0 "ASCII encoded IDN name works when disabled"
|
||||
|
||||
if dig -h | grep -q "+\[no\]idnin"; then
|
||||
export -n CHARSET # libidn on RHEL7 overrides command line parameters
|
||||
rlLog "DiG supports +idnin; check it works"
|
||||
rlRun "dig @localhost +idnin +noidnout münchen.test | grep ^xn--mnchen-3ya.test" 0 "IDN can disabled on dig output by parameter"
|
||||
rlRun "dig @localhost +noidnin +idnout xn--mnchen-3ya.test | grep ^münchen.test" 0 "IDN can disabled on dig input by parameter"
|
||||
fi
|
||||
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup
|
||||
rlServiceStop "named"
|
||||
rlRun "rlFileRestore"
|
||||
rlRun "rlServiceRestore named"
|
||||
rlPhaseEnd
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
|
|
@ -1,64 +0,0 @@
|
|||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Makefile of /CoreOS/bind/Regression/bz816164-nslookup-exits-with-zero-return-value-when-DNS
|
||||
# Description: Test for BZ#816164 (nslookup exits with zero return value when DNS)
|
||||
# Author: Juraj Marko <jmarko@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/bz816164-nslookup-exits-with-zero-return-value-when-DNS
|
||||
export TESTVERSION=1.0
|
||||
|
||||
BUILT_FILES=
|
||||
|
||||
FILES=$(METADATA) runtest.sh Makefile PURPOSE
|
||||
|
||||
.PHONY: all install download clean
|
||||
|
||||
run: $(FILES) build
|
||||
./runtest.sh
|
||||
|
||||
build: $(BUILT_FILES)
|
||||
test -x runtest.sh || chmod a+x runtest.sh
|
||||
|
||||
clean:
|
||||
rm -f *~ $(BUILT_FILES)
|
||||
|
||||
|
||||
include $(realpath /usr/share/rhts/lib/rhts-make.include)
|
||||
|
||||
$(METADATA): Makefile
|
||||
@echo "Owner: Juraj Marko <jmarko@redhat.com>" > $(METADATA)
|
||||
@echo "Name: $(TEST)" >> $(METADATA)
|
||||
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
||||
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
||||
@echo "Description: Test for BZ#816164 (nslookup exits with zero return value when DNS)" >> $(METADATA)
|
||||
@echo "Type: Regression" >> $(METADATA)
|
||||
@echo "TestTime: 5m" >> $(METADATA)
|
||||
@echo "RunFor: bind" >> $(METADATA)
|
||||
@echo "Requires: bind bind-utils" >> $(METADATA)
|
||||
@echo "Priority: Normal" >> $(METADATA)
|
||||
@echo "License: GPLv2" >> $(METADATA)
|
||||
@echo "Confidential: no" >> $(METADATA)
|
||||
@echo "Destructive: no" >> $(METADATA)
|
||||
@echo "Bug: 816164" >> $(METADATA)
|
||||
|
||||
[ -x /usr/bin/rhts-lint ] && rhts-lint $(METADATA)
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
PURPOSE of /CoreOS/bind/Regression/bz816164-nslookup-exits-with-zero-return-value-when-DNS
|
||||
Description: Test for BZ#816164 (nslookup exits with zero return value when DNS)
|
||||
Author: Juraj Marko <jmarko@redhat.com>
|
||||
Bug summary: nslookup exits with zero return value when DNS server is not accessible
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=816164
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue