summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2025-11-06 13:36:37 +0200
committerGitHub <noreply@github.com>2025-11-06 13:36:37 +0200
commit6140414b4556e28297d5732cef768944427b1fca (patch)
treedbe2853de6db3a82ac84d4589da61b88f67b6c48 /smoketest/scripts/cli
parenta5654ac187681f802a356090390d4b66355ee8a3 (diff)
parent909780c13714bcba488467165494af84bc7262cf (diff)
downloadvyos-1x-6140414b4556e28297d5732cef768944427b1fca.tar.gz
vyos-1x-6140414b4556e28297d5732cef768944427b1fca.zip
Merge pull request #4834 from alexandr-san4ez/T7112-current
firewall: T7112: Default action drop fails
Diffstat (limited to 'smoketest/scripts/cli')
-rwxr-xr-xsmoketest/scripts/cli/test_firewall.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_firewall.py b/smoketest/scripts/cli/test_firewall.py
index bc9900557..c29471b63 100755
--- a/smoketest/scripts/cli/test_firewall.py
+++ b/smoketest/scripts/cli/test_firewall.py
@@ -1086,6 +1086,15 @@ class TestFirewall(VyOSUnitTestSHIM.TestCase):
self.verify_nftables(nftables_search, 'ip vyos_filter')
self.verify_nftables(nftables_search_v6, 'ip6 vyos_filter')
+ def test_zone_without_member(self):
+ self.cli_set(['firewall', 'zone', 'wan', 'default-action', 'drop'])
+ error_message = 'Zone "wan" has no interfaces and is not the local zone'
+ with self.assertRaisesRegex(ConfigSessionError, error_message):
+ self.cli_commit()
+
+ self.cli_set(['firewall', 'zone', 'wan', 'member', 'interface', 'eth1'])
+ self.cli_commit()
+
def test_wildcard_interfaces(self):
wc_interfaces = [
'eth0',