From 485df7aff0a275b5d955440d8d0dec08b97af27e Mon Sep 17 00:00:00 2001 From: Robert de Bock Date: Mon, 16 Mar 2020 07:29:34 +0100 Subject: [PATCH] No screen, but lsof, no rpmorphan. --- tests/tests.bats | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/tests/tests.bats b/tests/tests.bats index 321e3f4..bb98326 100644 --- a/tests/tests.bats +++ b/tests/tests.bats @@ -18,13 +18,13 @@ [ "${status}" -eq 0 ] } -@test "Logging in and install screen." { - run ssh -i id_rsa.priv -o Port=2222 -o "StrictHostKeyChecking no" root@localhost "dnf -y install screen" +@test "Logging in and install lsof." { + run ssh -i id_rsa.priv -o Port=2222 -o "StrictHostKeyChecking no" root@localhost "dnf -y install lsof" [ "${status}" -eq 0 ] } -@test "Logging in and using rpm to remove screen." { - run ssh -i id_rsa.priv -o Port=2222 -o "StrictHostKeyChecking no" root@localhost "rpm -e screen" +@test "Logging in and using rpm to remove lsof." { + run ssh -i id_rsa.priv -o Port=2222 -o "StrictHostKeyChecking no" root@localhost "rpm -e lsof" [ "${status}" -eq 0 ] } @@ -33,16 +33,6 @@ [ "${status}" -eq 0 ] } -@test "Installing rpmorphan." { - run ssh -i id_rsa.priv -o Port=2222 -o "StrictHostKeyChecking no" root@localhost "dnf -y install rpmorphan" - [ "${status}" -eq 0 ] -} - -@test "Running rpmorphan." { - run ssh -i id_rsa.priv -o Port=2222 -o "StrictHostKeyChecking no" root@localhost "! rpmorphan | grep '[a-z]'" - [ "${status}" -eq 0 ] -} - @test "Killing the container with CTRL and C." { run sudo kill -SIGINT $(docker inspect --format='{{.State.Pid}}' $(docker ps -ql)) [ "${status}" -eq 0 ] @@ -56,4 +46,3 @@ result=$(docker ps | grep docker-centos-openssh | wc -l | bc) [ "${result}" -eq 0 ] } -