tests: Drop checks for iptables RPM
On one hand, the check will fail as the RPM is called 'iptables-nft'. On the other, if the RPM is missing the commands will fail as well so this check happens implicitly anyway. Related: RHEL-14147
This commit is contained in:
parent
0d517b6b1f
commit
d977b706cf
@ -30,8 +30,6 @@
|
|||||||
. /usr/bin/rhts-environment.sh || exit 1
|
. /usr/bin/rhts-environment.sh || exit 1
|
||||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||||
|
|
||||||
PACKAGE="iptables"
|
|
||||||
|
|
||||||
rlJournalStart
|
rlJournalStart
|
||||||
|
|
||||||
rlPhaseStartTest control-ping
|
rlPhaseStartTest control-ping
|
||||||
|
@ -29,13 +29,10 @@
|
|||||||
. /usr/bin/rhts-environment.sh || exit 1
|
. /usr/bin/rhts-environment.sh || exit 1
|
||||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||||
|
|
||||||
PACKAGE="iptables"
|
|
||||||
IPSET=testset6
|
IPSET=testset6
|
||||||
|
|
||||||
rlJournalStart
|
rlJournalStart
|
||||||
rlPhaseStartSetup
|
rlPhaseStartSetup
|
||||||
rlAssertRpm $PACKAGE
|
|
||||||
# rlAssertRpm kernel
|
|
||||||
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
||||||
rlRun "pushd $TmpDir"
|
rlRun "pushd $TmpDir"
|
||||||
rlRun "ipset create $IPSET hash:ip family inet6"
|
rlRun "ipset create $IPSET hash:ip family inet6"
|
||||||
|
@ -29,12 +29,10 @@
|
|||||||
. /usr/bin/rhts-environment.sh || exit 1
|
. /usr/bin/rhts-environment.sh || exit 1
|
||||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||||
|
|
||||||
PACKAGE="iptables"
|
|
||||||
TESTD=$PWD
|
TESTD=$PWD
|
||||||
|
|
||||||
rlJournalStart
|
rlJournalStart
|
||||||
rlPhaseStartSetup
|
rlPhaseStartSetup
|
||||||
rlAssertRpm $PACKAGE
|
|
||||||
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
||||||
rlRun "pushd $TmpDir"
|
rlRun "pushd $TmpDir"
|
||||||
rlRun "source $TESTD/rules.in" 0 "read ruleset"
|
rlRun "source $TESTD/rules.in" 0 "read ruleset"
|
||||||
|
@ -29,7 +29,6 @@
|
|||||||
. /usr/bin/rhts-environment.sh || exit 1
|
. /usr/bin/rhts-environment.sh || exit 1
|
||||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||||
|
|
||||||
PACKAGE="iptables"
|
|
||||||
SERVICES="iptables ip6tables firewalld"
|
SERVICES="iptables ip6tables firewalld"
|
||||||
|
|
||||||
prepare_page() {
|
prepare_page() {
|
||||||
@ -42,8 +41,6 @@ prepare_page() {
|
|||||||
|
|
||||||
rlJournalStart
|
rlJournalStart
|
||||||
rlPhaseStartSetup
|
rlPhaseStartSetup
|
||||||
rlAssertRpm $PACKAGE
|
|
||||||
# rlAssertRpm kernel
|
|
||||||
rlLogInfo $(uname -r)
|
rlLogInfo $(uname -r)
|
||||||
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
||||||
rlRun "pushd $TmpDir"
|
rlRun "pushd $TmpDir"
|
||||||
|
@ -29,7 +29,6 @@
|
|||||||
. /usr/bin/rhts-environment.sh || exit 1
|
. /usr/bin/rhts-environment.sh || exit 1
|
||||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||||
|
|
||||||
PACKAGE="iptables"
|
|
||||||
CGNUM="15"
|
CGNUM="15"
|
||||||
CGNAME="15"
|
CGNAME="15"
|
||||||
CGDIR="/sys/fs/cgroup/net_cls/$CGNAME"
|
CGDIR="/sys/fs/cgroup/net_cls/$CGNAME"
|
||||||
@ -41,8 +40,6 @@ SKIP6=false
|
|||||||
|
|
||||||
rlJournalStart
|
rlJournalStart
|
||||||
rlPhaseStartSetup
|
rlPhaseStartSetup
|
||||||
rlAssertRpm $PACKAGE
|
|
||||||
# rlAssertRpm kernel-$(uname -r)
|
|
||||||
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
||||||
rlRun "pushd $TmpDir"
|
rlRun "pushd $TmpDir"
|
||||||
if rlIsRHEL '>=7'; then
|
if rlIsRHEL '>=7'; then
|
||||||
|
@ -29,11 +29,8 @@
|
|||||||
. /usr/bin/rhts-environment.sh || exit 1
|
. /usr/bin/rhts-environment.sh || exit 1
|
||||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||||
|
|
||||||
PACKAGE="iptables"
|
|
||||||
|
|
||||||
rlJournalStart
|
rlJournalStart
|
||||||
rlPhaseStartSetup
|
rlPhaseStartSetup
|
||||||
rlAssertRpm $PACKAGE
|
|
||||||
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
||||||
rlRun "pushd $TmpDir"
|
rlRun "pushd $TmpDir"
|
||||||
rlPhaseEnd
|
rlPhaseEnd
|
||||||
|
@ -29,11 +29,8 @@
|
|||||||
. /usr/bin/rhts-environment.sh || exit 1
|
. /usr/bin/rhts-environment.sh || exit 1
|
||||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||||
|
|
||||||
PACKAGE="iptables"
|
|
||||||
|
|
||||||
rlJournalStart
|
rlJournalStart
|
||||||
rlPhaseStartSetup
|
rlPhaseStartSetup
|
||||||
rlAssertRpm $PACKAGE
|
|
||||||
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
||||||
rlRun "pushd $TmpDir"
|
rlRun "pushd $TmpDir"
|
||||||
rlRun "ip6tables-save > ip6tables.backup"
|
rlRun "ip6tables-save > ip6tables.backup"
|
||||||
|
@ -29,11 +29,8 @@
|
|||||||
. /usr/bin/rhts-environment.sh || exit 1
|
. /usr/bin/rhts-environment.sh || exit 1
|
||||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||||
|
|
||||||
PACKAGE="iptables"
|
|
||||||
|
|
||||||
rlJournalStart
|
rlJournalStart
|
||||||
rlPhaseStartSetup
|
rlPhaseStartSetup
|
||||||
rlAssertRpm $PACKAGE
|
|
||||||
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
||||||
rlRun "pushd $TmpDir"
|
rlRun "pushd $TmpDir"
|
||||||
rlRun "cp /etc/sysconfig/ip6tables ."
|
rlRun "cp /etc/sysconfig/ip6tables ."
|
||||||
|
@ -29,12 +29,10 @@
|
|||||||
. /usr/bin/rhts-environment.sh || exit 1
|
. /usr/bin/rhts-environment.sh || exit 1
|
||||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||||
|
|
||||||
PACKAGE="iptables"
|
|
||||||
SERVICES="iptables ip6tables firewalld"
|
SERVICES="iptables ip6tables firewalld"
|
||||||
|
|
||||||
rlJournalStart
|
rlJournalStart
|
||||||
rlPhaseStartSetup
|
rlPhaseStartSetup
|
||||||
rlAssertRpm $PACKAGE
|
|
||||||
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
||||||
rlRun "pushd $TmpDir"
|
rlRun "pushd $TmpDir"
|
||||||
for svc in $SERVICES; do
|
for svc in $SERVICES; do
|
||||||
|
@ -29,13 +29,11 @@
|
|||||||
. /usr/bin/rhts-environment.sh || exit 1
|
. /usr/bin/rhts-environment.sh || exit 1
|
||||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||||
|
|
||||||
PACKAGE="iptables"
|
|
||||||
IPSET4="ipsetv4"
|
IPSET4="ipsetv4"
|
||||||
IPSET6="ipsetv6"
|
IPSET6="ipsetv6"
|
||||||
|
|
||||||
rlJournalStart
|
rlJournalStart
|
||||||
rlPhaseStartSetup
|
rlPhaseStartSetup
|
||||||
rlAssertRpm $PACKAGE
|
|
||||||
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
||||||
rlRun "pushd $TmpDir"
|
rlRun "pushd $TmpDir"
|
||||||
rlRun "ipset create $IPSET4 hash:ip"
|
rlRun "ipset create $IPSET4 hash:ip"
|
||||||
|
@ -29,11 +29,8 @@
|
|||||||
. /usr/bin/rhts-environment.sh || exit 1
|
. /usr/bin/rhts-environment.sh || exit 1
|
||||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||||
|
|
||||||
PACKAGE="iptables"
|
|
||||||
|
|
||||||
rlJournalStart
|
rlJournalStart
|
||||||
rlPhaseStartSetup
|
rlPhaseStartSetup
|
||||||
rlAssertRpm $PACKAGE
|
|
||||||
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
||||||
rlRun "pushd $TmpDir"
|
rlRun "pushd $TmpDir"
|
||||||
rlServiceStart iptables
|
rlServiceStart iptables
|
||||||
|
@ -30,11 +30,8 @@
|
|||||||
. /usr/bin/rhts-environment.sh || exit 1
|
. /usr/bin/rhts-environment.sh || exit 1
|
||||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||||
|
|
||||||
PACKAGE="iptables"
|
|
||||||
|
|
||||||
rlJournalStart
|
rlJournalStart
|
||||||
rlPhaseStartTest
|
rlPhaseStartTest
|
||||||
rlAssertRpm $PACKAGE
|
|
||||||
rlRun "iptables-save -M /dev/null" 0 "iptables-save -M ... supported"
|
rlRun "iptables-save -M /dev/null" 0 "iptables-save -M ... supported"
|
||||||
rlRun "iptables-save --modprobe /dev/null" 0 "iptables-save --modprobe ... supported"
|
rlRun "iptables-save --modprobe /dev/null" 0 "iptables-save --modprobe ... supported"
|
||||||
rlPhaseEnd
|
rlPhaseEnd
|
||||||
|
@ -29,11 +29,8 @@
|
|||||||
. /usr/bin/rhts-environment.sh || exit 1
|
. /usr/bin/rhts-environment.sh || exit 1
|
||||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||||
|
|
||||||
PACKAGE="iptables"
|
|
||||||
|
|
||||||
rlJournalStart
|
rlJournalStart
|
||||||
rlPhaseStartSetup
|
rlPhaseStartSetup
|
||||||
rlAssertRpm $PACKAGE
|
|
||||||
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
||||||
rlRun "pushd $TmpDir"
|
rlRun "pushd $TmpDir"
|
||||||
rlPhaseEnd
|
rlPhaseEnd
|
||||||
|
Loading…
Reference in New Issue
Block a user