Update chroot test to check RPM verify
In bug #1592873, error on chroot was reported. Ensure it does not reappear.
This commit is contained in:
parent
cba49a643a
commit
be8074fddc
@ -1,3 +1,6 @@
|
|||||||
PURPOSE of /CoreOS/tests/Sanity/Master-server-chrooted
|
PURPOSE of /CoreOS/tests/Sanity/Master-server-chrooted
|
||||||
Description: Run basic empty named-chroot service and try to resolve localhost on it
|
Description: Run basic empty named-chroot service and try to resolve localhost on it
|
||||||
Author: Petr Mensik <pemensik@redhat.com>
|
Author: Petr Mensik <pemensik@redhat.com>
|
||||||
|
|
||||||
|
Check also clean package both when running and finished.
|
||||||
|
https://bugzilla.redhat.com/show_bug.cgi?id=1592873
|
||||||
|
@ -34,10 +34,13 @@ PACKAGE="bind"
|
|||||||
test_service()
|
test_service()
|
||||||
{
|
{
|
||||||
local SERVICE="$1"
|
local SERVICE="$1"
|
||||||
|
local PACKAGE="$2"
|
||||||
rlRun "rlServiceStart $SERVICE"
|
rlRun "rlServiceStart $SERVICE"
|
||||||
rlRun "dig @localhost localhost | grep '^localhost'"
|
rlRun "dig @localhost localhost | grep '^localhost'"
|
||||||
rlRun "dig @localhost -x 127.0.0.1 | grep 'PTR[[:space:]]\+localhost.$'" 0 "Reverse address works"
|
rlRun "dig @localhost -x 127.0.0.1 | grep 'PTR[[:space:]]\+localhost.$'" 0 "Reverse address works"
|
||||||
|
rlRun "rpm -V $PACKAGE" 0 "Checking $SERVICE package when running"
|
||||||
rlRun "rlServiceRestore $SERVICE"
|
rlRun "rlServiceRestore $SERVICE"
|
||||||
|
rlRun "rpm -V $PACKAGE" 0 "Checking $SERVICE package when stopped"
|
||||||
}
|
}
|
||||||
|
|
||||||
rlJournalStart
|
rlJournalStart
|
||||||
@ -48,16 +51,16 @@ rlJournalStart
|
|||||||
rlPhaseEnd
|
rlPhaseEnd
|
||||||
|
|
||||||
rlPhaseStartTest "Testing named"
|
rlPhaseStartTest "Testing named"
|
||||||
test_service named
|
test_service named bind
|
||||||
rlPhaseEnd
|
rlPhaseEnd
|
||||||
|
|
||||||
rlPhaseStartTest "Testing named-chroot"
|
rlPhaseStartTest "Testing named-chroot"
|
||||||
test_service named-chroot
|
test_service named-chroot bind-chroot
|
||||||
rlPhaseEnd
|
rlPhaseEnd
|
||||||
|
|
||||||
rlPhaseStartTest "Testing named-sdb-chroot"
|
rlPhaseStartTest "Testing named-sdb-chroot"
|
||||||
if rpm -q bind-sdb-chroot; then
|
if rpm -q bind-sdb-chroot; then
|
||||||
test_service named-sdb-chroot
|
test_service named-sdb-chroot bind-sdb-chroot
|
||||||
else
|
else
|
||||||
rlLog "bind-sdb-chroot not installed, skipping it"
|
rlLog "bind-sdb-chroot not installed, skipping it"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user