diff --git a/tests/sanity/runtest.sh b/tests/sanity/runtest.sh index 5c66cfe..c8c5f34 100755 --- a/tests/sanity/runtest.sh +++ b/tests/sanity/runtest.sh @@ -51,12 +51,13 @@ rlJournalStart rlRun "podman exec test ls /home" 1,2 rlRun "podman exec test touch /var/spool/test" 1 + rlRun "podman exec test dnf install nmap-ncat -y" 0 rlWatchdog "rlRun \"podman exec test nc -l 53\"" 3 CONT_ID=$(podman ps | grep test | cut -d ' ' -f 1) rlRun "podman inspect $CONT_ID | udica my_container >$OUTPUT_FILE" rlRun "podman stop test" - rlRun "podman rm test" + rlRun "podman rm --force test" rlRun "cat $OUTPUT_FILE" rlAssertExists "my_container.cil" @@ -71,10 +72,11 @@ rlJournalStart rlRun "podman exec test2 ls /home" 0 rlRun "podman exec test2 touch /var/spool/test" 0 - rlWatchdog "rlRun \"podman exec test2 nc -l 53\" 1" 3 + rlRun "podman exec test2 dnf install nmap-ncat -y" 0 + rlWatchdog "rlRun \"podman exec test2 nc -l 53\" 2" 3 rlRun "podman stop test2" - rlRun "podman rm test2" + rlRun "podman rm --force test2" rlRun "semodule -r my_container base_container net_container home_container" rlRun "rm my_container.cil"