summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli
diff options
context:
space:
mode:
authorLucas Christian <lucas@lucasec.com>2024-07-21 22:46:55 -0700
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-07-22 10:28:04 +0000
commit9dc7e170d4eab2a76f373886d2f0b21d51dabeb5 (patch)
tree3b1fb8045fe13968850425b2014ce3b0425ec1ed /smoketest/scripts/cli
parent4d82c1862172bea03c9be7482b8ed3bbddf5b395 (diff)
downloadvyos-1x-9dc7e170d4eab2a76f373886d2f0b21d51dabeb5.tar.gz
vyos-1x-9dc7e170d4eab2a76f373886d2f0b21d51dabeb5.zip
T6599: ipsec: fix incorect default behavior for dead-peer-detectionmergify/bp/sagitta/pr-3841
(cherry picked from commit 23a3419d512139650cfe3dc76759b370b0c0c3d6)
Diffstat (limited to 'smoketest/scripts/cli')
-rwxr-xr-xsmoketest/scripts/cli/test_vpn_ipsec.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_vpn_ipsec.py b/smoketest/scripts/cli/test_vpn_ipsec.py
index 515e55ee4..2dc66485b 100755
--- a/smoketest/scripts/cli/test_vpn_ipsec.py
+++ b/smoketest/scripts/cli/test_vpn_ipsec.py
@@ -252,6 +252,15 @@ class TestVPNIPsec(VyOSUnitTestSHIM.TestCase):
for line in swanctl_conf_lines:
self.assertIn(line, swanctl_conf)
+ # if dpd is not specified it should not be enabled (see T6599)
+ swanctl_unexpected_lines = [
+ f'dpd_timeout'
+ f'dpd_delay'
+ ]
+
+ for unexpected_line in swanctl_unexpected_lines:
+ self.assertNotIn(unexpected_line, swanctl_conf)
+
swanctl_secrets_lines = [
f'id-{regex_uuid4} = "{local_id}"',
f'id-{regex_uuid4} = "{remote_id}"',