Add a test case for ufw-docker--allow, the proto doesn't match

This commit is contained in:
Chai Feng 2019-10-17 17:23:01 +02:00
parent c79d1ad1a6
commit 3598011787

View File

@ -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