mirror of
https://github.com/chaifeng/ufw-docker.git
synced 2025-05-11 13:58:31 +02:00
Add a test case for ufw-docker--allow, the proto doesn't match
This commit is contained in:
parent
c79d1ad1a6
commit
3598011787
1 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue