summaryrefslogtreecommitdiff
path: root/smoketest/scripts
diff options
context:
space:
mode:
authorNataliia Solomko <natalirs1985@gmail.com>2024-05-09 16:35:48 +0300
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-05-09 15:13:34 +0000
commitfaf450705d464bf2a87bcd989c0e1f031a54c03e (patch)
treed69e4bea4fc31ea89e0498f939e53c9675234eba /smoketest/scripts
parentc38795e317cd314c21e594467df3eea86ad188ab (diff)
downloadvyos-1x-faf450705d464bf2a87bcd989c0e1f031a54c03e.tar.gz
vyos-1x-faf450705d464bf2a87bcd989c0e1f031a54c03e.zip
sstp: T4393: Add support to configure host-name (SNI)
(cherry picked from commit 92b468b9a0d5eee8484601568227f7c56e71b119)
Diffstat (limited to 'smoketest/scripts')
-rwxr-xr-xsmoketest/scripts/cli/test_vpn_sstp.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_vpn_sstp.py b/smoketest/scripts/cli/test_vpn_sstp.py
index f0695d577..1a3e1df6e 100755
--- a/smoketest/scripts/cli/test_vpn_sstp.py
+++ b/smoketest/scripts/cli/test_vpn_sstp.py
@@ -75,6 +75,16 @@ class TestVPNSSTPServer(BasicAccelPPPTest.TestCase):
config = read_file(self._config_file)
self.assertIn(f'port={port}', config)
+ def test_sstp_host_name(self):
+ host_name = 'test.vyos.io'
+ self.set(['host-name', host_name])
+
+ self.basic_config()
+ self.cli_commit()
+
+ config = read_file(self._config_file)
+ self.assertIn(f'host-name={host_name}', config)
+
if __name__ == '__main__':
unittest.main(verbosity=2)