summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/test_interfaces_openvpn.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-11-01 21:47:56 +0100
committerChristian Poessinger <christian@poessinger.com>2020-11-01 21:47:58 +0100
commitc3fc9ee32a43b938dc44fa41d98bfcc95fdbd359 (patch)
tree44934568eb489ca99cf24812c5450f64ea156b82 /smoketest/scripts/cli/test_interfaces_openvpn.py
parentb279895fa34d51fe2a2a56449df564bc734d1db9 (diff)
downloadvyos-1x-c3fc9ee32a43b938dc44fa41d98bfcc95fdbd359.tar.gz
vyos-1x-c3fc9ee32a43b938dc44fa41d98bfcc95fdbd359.zip
smoketest: openvpn: remove debug code for faster test runs
There have been leftovers to bypass testcases by simply just "return True" on most of the testcases.
Diffstat (limited to 'smoketest/scripts/cli/test_interfaces_openvpn.py')
-rwxr-xr-xsmoketest/scripts/cli/test_interfaces_openvpn.py14
1 files changed, 5 insertions, 9 deletions
diff --git a/smoketest/scripts/cli/test_interfaces_openvpn.py b/smoketest/scripts/cli/test_interfaces_openvpn.py
index 518249b77..9ffb945b9 100755
--- a/smoketest/scripts/cli/test_interfaces_openvpn.py
+++ b/smoketest/scripts/cli/test_interfaces_openvpn.py
@@ -45,7 +45,8 @@ protocol = 'udp'
path = []
interface = ''
remote_host = ''
-vrf_name = 'mgmt'
+vrf_name = 'orange'
+dummy_if = 'dum1301'
def get_vrf(interface):
for upper in glob(f'/sys/class/net/{interface}/upper*'):
@@ -58,18 +59,17 @@ def get_vrf(interface):
class TestInterfacesOpenVPN(unittest.TestCase):
def setUp(self):
self.session = ConfigSession(os.getpid())
- self.session.set(['interfaces', 'dummy', 'dum1301', 'address', '192.0.2.1/32'])
+ self.session.set(['interfaces', 'dummy', dummy_if, 'address', '192.0.2.1/32'])
self.session.set(['vrf', 'name', vrf_name, 'table', '12345'])
def tearDown(self):
self.session.delete(base_path)
- self.session.delete(['interfaces', 'dummy', 'dum1301'])
- self.session.delete(['vrf', 'name', vrf_name])
+ self.session.delete(['interfaces', 'dummy', dummy_if])
+ self.session.delete(['vrf'])
self.session.commit()
del self.session
def test_client_verify(self):
- return True
"""
Create OpenVPN client interface and test verify() steps.
"""
@@ -137,7 +137,6 @@ class TestInterfacesOpenVPN(unittest.TestCase):
def test_client_interfaces(self):
- return True
"""
Create OpenVPN client interfaces connecting to different
server IP addresses. Validate configuration afterwards.
@@ -197,7 +196,6 @@ class TestInterfacesOpenVPN(unittest.TestCase):
self.assertNotIn(interface, interfaces())
def test_server_verify(self):
- return True
"""
Create one OpenVPN server interface and check required verify() stages
"""
@@ -456,7 +454,6 @@ class TestInterfacesOpenVPN(unittest.TestCase):
self.assertNotIn(interface, interfaces())
def test_site2site_verify(self):
- return True
"""
Create one OpenVPN site2site interface and check required verify() stages
"""
@@ -516,7 +513,6 @@ class TestInterfacesOpenVPN(unittest.TestCase):
self.session.commit()
def test_site2site_interfaces(self):
- return True
"""
Create two OpenVPN site-to-site interfaces
"""