summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-08-05 20:32:43 +0200
committerGitHub <noreply@github.com>2024-08-05 20:32:43 +0200
commitcc0f5bd15f8b63e1187b722960bc328ef7280add (patch)
tree02f976251a64838412d4c123eb663e51bf2172c4 /smoketest/scripts/cli
parent7306a7feac60989cc51d641423e74d819fd73b1c (diff)
parent9bd2c196fe238a38f4fd0977efd1727333e7770e (diff)
downloadvyos-1x-cc0f5bd15f8b63e1187b722960bc328ef7280add.tar.gz
vyos-1x-cc0f5bd15f8b63e1187b722960bc328ef7280add.zip
Merge pull request #3947 from c-po/openvpn-T6555
smoketest: T6555: openvpn: NameError: name 'elf' is not defined
Diffstat (limited to 'smoketest/scripts/cli')
-rwxr-xr-xsmoketest/scripts/cli/test_interfaces_openvpn.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/smoketest/scripts/cli/test_interfaces_openvpn.py b/smoketest/scripts/cli/test_interfaces_openvpn.py
index f23a28c25..d8a091aaa 100755
--- a/smoketest/scripts/cli/test_interfaces_openvpn.py
+++ b/smoketest/scripts/cli/test_interfaces_openvpn.py
@@ -656,8 +656,6 @@ class TestInterfacesOpenVPN(VyOSUnitTestSHIM.TestCase):
self.cli_commit()
-
-
config_file = f'/run/openvpn/{vtun_if}.conf'
config = read_file(config_file)
self.assertIn(f'dev {vtun_if}', config)
@@ -667,9 +665,7 @@ class TestInterfacesOpenVPN(VyOSUnitTestSHIM.TestCase):
self.assertIn(f'data-ciphers AES-192-CBC', config)
self.assertIn(f'mode server', config)
self.assertIn(f'server-bridge {gw_subnet} {mask_subnet} {start_subnet} {stop_subnet}', config)
- elf.assertIn(f'keepalive 5 25', config)
-
-
+ self.assertIn(f'keepalive 5 25', config)
# TLS options
self.assertIn(f'ca /run/openvpn/{vtun_if}_ca.pem', config)