removing old and not functional tests

This commit is contained in:
Petr Sklenar 2022-01-04 12:28:29 +01:00
commit 598c60cf2d
8 changed files with 0 additions and 424 deletions

View file

@ -1,63 +0,0 @@
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Makefile of /CoreOS/bind/Regression/bz533229-bind-sdb-postgresql
# Description: bz533229-bind-sdb-postgresql
# 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/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 <psklenar@redhat.com>" > $(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)

View file

@ -1,18 +0,0 @@
PURPOSE of /CoreOS/bind/Regression/bz533229-bind-sdb-postgresql
Description: bz533229-bind-sdb-postgresql
Author: Martin Cermak <mcermak@redhat.com>
Bug summary: bind-sdb fails startup if db not running
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=533229
<NOTE>
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.
</NOTE>

View file

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

View file

@ -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 <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 '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 <<EOFA
DROP DATABASE IF EXISTS test;
DROP ROLE IF EXISTS test;
CREATE ROLE test WITH SUPERUSER LOGIN PASSWORD 'test';
CREATE DATABASE test WITH OWNER test;
EOFA
rlRun "cat create.sql"
sleep 1m
rlRun "su - postgres -c \"psql -f $TmpDir/create.sql \""
sleep 1m
rlRun "service postgresql stop"
sleep 1m
rlRun "test -f /var/lib/pgsql/data/pg_hba.conf"
sleep 1m
rlRun "touch /etc/pg_hba.conf" # this may be changed after bz554280 is resolved...
rlRun "ln -sf /var/lib/pgsql/data/pg_hba.conf /etc/pg_hba.conf"
cat > /etc/pg_hba.conf <<EOFB
local all all md5
host all all 127.0.0.1/32 md5
host all all ::1/128 md5
EOFB
rlRun "cat /etc/pg_hba.conf"
rlRun "service postgresql start"
rlRun "export PGUSER=test"
rlRun "export PGPASSWORD=test"
cat > testing.zone <<EOFC
\$TTL 1H
@ SOA localhost. root.localhost. ( 1
3H
1H
1W
1H )
NS localhost.
host1 A 192.168.2.1
host2 A 192.168.2.2
host3 A 192.168.2.3
EOFC
sleep 2
rlRun "zonetodb pgdb.net. testing.zone test test"
# load the zone into the DB
# some visual checking of the table contents
rlRun "echo 'SELECT * FROM test;' | psql test"
# configure bind
rlRun "service named stop"
cat > /etc/named.conf <<EOFD
options {
listen-on port 53 { 127.0.0.1; };
allow-query { localhost; };
recursion no;
};
zone "pgdb.net." IN {
type master;
database "pgsql test test localhost test test";
# ^- DB name ^-Table ^-host ^-user ^-password
};
EOFD
cat > /etc/sysconfig/named <<EOFE
ENABLE_SDB=yes
EOFE
if rlIsRHEL "<7";then
rlServiceStart named
else
rlServiceStart named-sdb
fi
# test it all together
for i in `seq 1 3`; do
rlRun "dig @localhost host$i.pgdb.net +short | grep \"192.168.2.$i\""
done
rlLogInfo "Following record is note defined:"
rlRun "dig @localhost host4.pgdb.net +short | grep \"192.168.2.4\"" 1
rlPhaseEnd
rlPhaseStartCleanup
rlServiceStop named
rlServiceStop named-sdb
rlServiceStop postgresql
rlFileRestore
rlPhaseEnd
rlJournalPrintText
rlJournalEnd

View file

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

View file

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

View file

@ -1,23 +0,0 @@
summary: it moves conf file into chroot environment and start via systemd
description: ''
contact: Petr Sklenar <psklenar@redhat.com>
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

View file

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