Add a test case for ufw-docker--allow, the proto doesn't match
This commit is contained in:
parent
c79d1ad1a6
commit
3598011787
@ -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() {
|
test-ufw-docker--allow-instance-and-match-the-port() {
|
||||||
setup-ufw-docker--allow
|
setup-ufw-docker--allow
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user