summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-04-22 18:09:07 +0200
committerGitHub <noreply@github.com>2024-04-22 18:09:07 +0200
commit428d793ef162cc3e61af0fbc89963898e6b3988d (patch)
tree8e4f43002a20d046edf1c9dba703b5517595ff25 /smoketest/scripts/cli
parent2208c846d6bffeecac99afa7ebc3eda5c467aebc (diff)
parent162a0f0d746f7789a676332ec04dba65fefd6d4e (diff)
downloadvyos-1x-428d793ef162cc3e61af0fbc89963898e6b3988d.tar.gz
vyos-1x-428d793ef162cc3e61af0fbc89963898e6b3988d.zip
Merge pull request #3341 from vyos/mergify/bp/sagitta/pr-3337
T6237: IPSec remote access VPN: ability to set EAP ID of clients (backport #3337)
Diffstat (limited to 'smoketest/scripts/cli')
-rwxr-xr-xsmoketest/scripts/cli/test_vpn_ipsec.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_vpn_ipsec.py b/smoketest/scripts/cli/test_vpn_ipsec.py
index 145b5990e..27356d70e 100755
--- a/smoketest/scripts/cli/test_vpn_ipsec.py
+++ b/smoketest/scripts/cli/test_vpn_ipsec.py
@@ -782,6 +782,11 @@ class TestVPNIPsec(VyOSUnitTestSHIM.TestCase):
self.assertTrue(os.path.exists(os.path.join(CA_PATH, f'{ca_name}.pem')))
self.assertTrue(os.path.exists(os.path.join(CERT_PATH, f'{peer_name}.pem')))
+ # Test setting of custom EAP ID
+ self.cli_set(base_path + ['remote-access', 'connection', conn_name, 'authentication', 'eap-id', 'eap-user@vyos.net'])
+ self.cli_commit()
+ self.assertIn(r'eap_id = eap-user@vyos.net', read_file(swanctl_file))
+
self.tearDownPKI()
def test_remote_access_x509(self):