summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/test_nat.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-12-29 21:51:24 +0100
committerChristian Poessinger <christian@poessinger.com>2020-12-29 22:47:04 +0100
commitf2b2bbdd51cb00a8be1aefa1f9028212fcffc1d3 (patch)
tree9b799a6f53c6bc05d5de2444873145f2ccd0591d /smoketest/scripts/cli/test_nat.py
parent5b6b865b71415a1be9d5a758dfbccb81906f2f2a (diff)
downloadvyos-1x-f2b2bbdd51cb00a8be1aefa1f9028212fcffc1d3.tar.gz
vyos-1x-f2b2bbdd51cb00a8be1aefa1f9028212fcffc1d3.zip
smoketest: adjust test method names
This is for better readability during testruns
Diffstat (limited to 'smoketest/scripts/cli/test_nat.py')
-rwxr-xr-xsmoketest/scripts/cli/test_nat.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/smoketest/scripts/cli/test_nat.py b/smoketest/scripts/cli/test_nat.py
index 277b23891..7ca82f86f 100755
--- a/smoketest/scripts/cli/test_nat.py
+++ b/smoketest/scripts/cli/test_nat.py
@@ -40,8 +40,6 @@ class TestNAT(unittest.TestCase):
self.session.commit()
def test_snat(self):
- """ Test source NAT (SNAT) rules """
-
rules = ['100', '110', '120', '130', '200', '210', '220', '230']
outbound_iface_100 = 'eth0'
outbound_iface_200 = 'eth1'
@@ -92,8 +90,6 @@ class TestNAT(unittest.TestCase):
self.assertEqual(f'{address}/{mask}', network)
def test_dnat(self):
- """ Test destination NAT (DNAT) rules """
-
rules = ['100', '110', '120', '130', '200', '210', '220', '230']
inbound_iface_100 = 'eth0'
inbound_iface_200 = 'eth1'
@@ -143,8 +139,8 @@ class TestNAT(unittest.TestCase):
self.assertEqual(iface, inbound_iface_200)
- def test_validation_logic(self):
- """ T2813: Ensure translation address is specified """
+ def test_snat_required_translation_address(self):
+ # T2813: Ensure translation address is specified
rule = '5'
self.session.set(src_path + ['rule', rule, 'source', 'address', '192.0.2.0/24'])