From 18a0ccb0afcd21f9b349a1bc8c5c6aad143970a0 Mon Sep 17 00:00:00 2001 From: Chai Feng Date: Thu, 17 Oct 2019 17:23:01 +0200 Subject: [PATCH] Add a test case for ufw-docker--allow, the proto doesn't match --- 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 03b402e..dfce639 100755 --- a/test/ufw-docker.test.sh +++ b/test/ufw-docker.test.sh @@ -243,6 +243,17 @@ test-ufw-docker--allow-instance-but-the-port-not-match-assert() { } +test-ufw-docker--allow-instance-but-the-proto-not-match() { + setup-ufw-docker--allow + + ufw-docker--allow instance-name 5353 tcp +} +test-ufw-docker--allow-instance-but-the-proto-not-match-assert() { + err 'Fail to add rule(s), cannot find the published port 5353/tcp of instance "instance-name" or cannot update outdated rule(s).' + @fail +} + + test-ufw-docker--allow-instance-and-match-the-port() { setup-ufw-docker--allow