From 598c60cf2d8db0bb3f2e69b11e60930178e8fd09 Mon Sep 17 00:00:00 2001 From: Petr Sklenar Date: Jan 04 2022 11:28:29 +0000 Subject: removing old and not functional tests --- diff --git a/Regression/bz533229-bind-sdb-postgresql/Makefile b/Regression/bz533229-bind-sdb-postgresql/Makefile deleted file mode 100644 index dc24fe5..0000000 --- a/Regression/bz533229-bind-sdb-postgresql/Makefile +++ /dev/null @@ -1,63 +0,0 @@ -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Makefile of /CoreOS/bind/Regression/bz533229-bind-sdb-postgresql -# Description: bz533229-bind-sdb-postgresql -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2011 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# This program is distributed in the hope that it will be -# useful, but WITHOUT ANY WARRANTY; without even the implied -# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR -# PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public -# License along with this program; if not, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -export TEST=/CoreOS/bind/Regression/bz533229-bind-sdb-postgresql -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: Petr Sklenar " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: bz533229-bind-sdb-postgresql" >> $(METADATA) - @echo "Type: Regression" >> $(METADATA) - @echo "TestTime: 15m" >> $(METADATA) - @echo "RunFor: bind" >> $(METADATA) - @echo "Requires: bind bind-sdb bind-utils postgresql postgresql-server redhat-lsb" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 533229" >> $(METADATA) - @echo "Releases: -RedHatEnterpriseLinux3 -RedHatEnterpriseLinux4" >> $(METADATA) diff --git a/Regression/bz533229-bind-sdb-postgresql/PURPOSE b/Regression/bz533229-bind-sdb-postgresql/PURPOSE deleted file mode 100644 index c52432e..0000000 --- a/Regression/bz533229-bind-sdb-postgresql/PURPOSE +++ /dev/null @@ -1,18 +0,0 @@ -PURPOSE of /CoreOS/bind/Regression/bz533229-bind-sdb-postgresql -Description: bz533229-bind-sdb-postgresql -Author: Martin Cermak -Bug summary: bind-sdb fails startup if db not running -Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=533229 - - - -NEW: you can use /CoreOS/bind/Regression/bz533229-bind-sdb-postgresql to set up -the situation. Just the restart stuff was left for manual testing: - -You have to terminate the script before the cleanup phase. chkconfig postgresql -and named services on, restart and perform the testing with dig manually. - -/CoreOS/bind/Regression/bz533229-bind-sdb-postgresql is rather a sanity test -for bind-sdb itself. - - diff --git a/Regression/bz533229-bind-sdb-postgresql/main.fmf b/Regression/bz533229-bind-sdb-postgresql/main.fmf deleted file mode 100644 index 72647ca..0000000 --- a/Regression/bz533229-bind-sdb-postgresql/main.fmf +++ /dev/null @@ -1,46 +0,0 @@ -summary: bz533229-bind-sdb-postgresql -description: | - Bug summary: bind-sdb fails startup if db not running - Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=533229 - - - - NEW: you can use /CoreOS/bind/Regression/bz533229-bind-sdb-postgresql to set up - the situation. Just the restart stuff was left for manual testing: - - You have to terminate the script before the cleanup phase. chkconfig postgresql - and named services on, restart and perform the testing with dig manually. - - /CoreOS/bind/Regression/bz533229-bind-sdb-postgresql is rather a sanity test - for bind-sdb itself. - - -contact: Petr Sklenar -component: -- bind -test: ./runtest.sh -require: -- bind -- bind-sdb -- bind-utils -- postgresql -- postgresql-server -- redhat-lsb -duration: 15m -enabled: false -tag: -- NoRHEL3 -- NoRHEL4 -- TIP_fedora_pass -- TIPfail_infra -- TIPpass -- Tier1 -tier: '1' -adjust: - enabled: true - when: distro ~<= fedora-33 - because: needs BIND 9.11 bind-sdb - -extra-summary: /CoreOS/bind/Regression/bz533229-bind-sdb-postgresql -extra-task: /CoreOS/bind/Regression/bz533229-bind-sdb-postgresql -extra-nitrate: TC#0126578 diff --git a/Regression/bz533229-bind-sdb-postgresql/runtest.sh b/Regression/bz533229-bind-sdb-postgresql/runtest.sh deleted file mode 100755 index f679655..0000000 --- a/Regression/bz533229-bind-sdb-postgresql/runtest.sh +++ /dev/null @@ -1,139 +0,0 @@ -#!/bin/bash -# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/bind/Regression/bz533229-bind-sdb-postgresql -# Description: bz533229-bind-sdb-postgresql -# Author: Martin Cermak -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2011 Red Hat, Inc. All rights reserved. -# -# This copyrighted material is made available to anyone wishing -# to use, modify, copy, or redistribute it subject to the terms -# and conditions of the GNU General Public License version 2. -# -# This program is distributed in the hope that it will be -# useful, but WITHOUT ANY WARRANTY; without even the implied -# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR -# PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public -# License along with this program; if not, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -# Include rhts environment -. /usr/bin/rhts-environment.sh -. /usr/lib/beakerlib/beakerlib.sh - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm 'bind' - rlAssertRpm 'bind-sdb' - rlAssertRpm 'bind-utils' - rlAssertRpm 'postgresql' - rlAssertRpm 'postgresql-server' - rlFileBackup --clean "/var/lib/pgsql/data" "/etc/rndc.key" "/var/lib/pgsql/data/pg_hba.conf" "/etc/pg_hba.conf" "/etc/named.conf" "/etc/sysconfig/named" - rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory" - rlRun "chmod a+rx $TmpDir" - rlRun "ORIGPWD=`pwd`" - rlRun "pushd $TmpDir" - rlPhaseEnd - - rlPhaseStartTest - rlRun "service postgresql initdb" 0,1 - rlRun "service postgresql restart" -cat > create.sql < /etc/pg_hba.conf < testing.zone < /etc/named.conf < /etc/sysconfig/named < -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2016 Red Hat, Inc. -# -# This program is free software: you can redistribute it and/or -# modify it under the terms of the GNU General Public License as -# published by the Free Software Foundation, either version 2 of -# the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be -# useful, but WITHOUT ANY WARRANTY; without even the implied -# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR -# PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see http://www.gnu.org/licenses/. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -export TEST=/CoreOS/bind/Sanity/bz1278082-systemd-startup-script -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 " > $(METADATA) - @echo "Name: $(TEST)" >> $(METADATA) - @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) - @echo "Path: $(TEST_DIR)" >> $(METADATA) - @echo "Description: it moves conf file into chroot environment and start via systemd" >> $(METADATA) - @echo "Type: Sanity" >> $(METADATA) - @echo "TestTime: 10m" >> $(METADATA) - @echo "RunFor: bind" >> $(METADATA) - @echo "Requires: bind bind-chroot bind-sdb-chroot" >> $(METADATA) - @echo "Priority: Normal" >> $(METADATA) - @echo "License: GPLv2+" >> $(METADATA) - @echo "Confidential: no" >> $(METADATA) - @echo "Destructive: no" >> $(METADATA) - @echo "Bug: 1278082" >> $(METADATA) - @echo "Releases: -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA) - - [ -x /usr/bin/rhts-lint ] && rhts-lint $(METADATA) diff --git a/Sanity/bz1278082-systemd-startup-script/PURPOSE b/Sanity/bz1278082-systemd-startup-script/PURPOSE deleted file mode 100644 index 0cd2584..0000000 --- a/Sanity/bz1278082-systemd-startup-script/PURPOSE +++ /dev/null @@ -1,3 +0,0 @@ -PURPOSE of /CoreOS/bind/Sanity/bz1278082-systemd-startup-script -Description: it moves conf file into chroot environment and start via systemd -Author: Petr Sklenar diff --git a/Sanity/bz1278082-systemd-startup-script/main.fmf b/Sanity/bz1278082-systemd-startup-script/main.fmf deleted file mode 100644 index 2e4a9f7..0000000 --- a/Sanity/bz1278082-systemd-startup-script/main.fmf +++ /dev/null @@ -1,23 +0,0 @@ -summary: it moves conf file into chroot environment and start via systemd -description: '' -contact: Petr Sklenar -component: -- bind -test: ./runtest.sh -require: -- bind -- bind-chroot -- bind-sdb-chroot -duration: 10m -enabled: true -tag: -- NoRHEL4 -- NoRHEL5 -- TIPfail -- TIPfail_infra -- tipx -relevancy: | - distro = rhel-4, rhel-5, rhel-6: False -extra-summary: /CoreOS/bind/Sanity/bz1278082-systemd-startup-script -extra-task: /CoreOS/bind/Sanity/bz1278082-systemd-startup-script -extra-nitrate: TC#0534322 diff --git a/Sanity/bz1278082-systemd-startup-script/runtest.sh b/Sanity/bz1278082-systemd-startup-script/runtest.sh deleted file mode 100755 index 9436628..0000000 --- a/Sanity/bz1278082-systemd-startup-script/runtest.sh +++ /dev/null @@ -1,68 +0,0 @@ -#!/bin/bash -# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# runtest.sh of /CoreOS/bind/Sanity/bz1278082-systemd-startup-script -# Description: it moves conf file into chroot environment and start via systemd -# Author: Petr Sklenar -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# -# Copyright (c) 2016 Red Hat, Inc. -# -# This program is free software: you can redistribute it and/or -# modify it under the terms of the GNU General Public License as -# published by the Free Software Foundation, either version 2 of -# the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be -# useful, but WITHOUT ANY WARRANTY; without even the implied -# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR -# PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see http://www.gnu.org/licenses/. -# -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -# Include Beaker environment -. /usr/bin/rhts-environment.sh || exit 1 -. /usr/share/beakerlib/beakerlib.sh || exit 1 - -CONF="/etc/named.conf" - -rlJournalStart - rlPhaseStartSetup - rlAssertRpm bind-chroot - rlAssertRpm bind-sdb-chroot -#try smth temporary: - /bin/cp -af /usr/share/doc/bind-*/named.conf.default $CONF - rlFileBackup $CONF - rlFileBackup --clean /var/named/chroot/$CONF /var/named/chroot_sdb/$CONF - pkill named - sleep 2 - rlServiceStop named-chroot - rlServiceStop named-sdb-chroot - rlPhaseEnd - - rlPhaseStartTest - rlRun "cp -af $CONF /var/named/chroot/etc/." - rlRun "rlServiceStart named-chroot" - rlServiceStop named-chroot - rlFileRestore - rlPhaseEnd - - rlPhaseStartTest - rlRun "cp -af $CONF /var/named/chroot_sdb/etc/." - rlRun "rlServiceStart named-sdb-chroot" - rlServiceStop named-sdb-chroot - rlFileRestore - rlPhaseEnd - - rlPhaseStartCleanup - restorecon -R /var/named - rlServiceRestore named-chroot - rlServiceRestore named-sdb-chroot - rlPhaseEnd -rlJournalPrintText -rlJournalEnd