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 ] } -