From 6cdd4dfd2fdc2aefd467e02b8de11e795061509e Mon Sep 17 00:00:00 2001 From: anuragpeshne Date: Sun, 1 Jan 2023 17:56:45 -0800 Subject: [PATCH] adds test for docker exist --- test/ufw-docker.test.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/ufw-docker.test.sh b/test/ufw-docker.test.sh index 7a8fa55..45ec074 100755 --- a/test/ufw-docker.test.sh +++ b/test/ufw-docker.test.sh @@ -101,6 +101,17 @@ test-ufw-is-disabled-assert() { } +test-docker-is-installed() { + @mockfalse docker -v + + ufw-docker +} +test-docker-is-installed-assert() { + die "Docker executable not found." + ufw-docker--help +} + + test-ufw-docker-status() { ufw-docker status }