summaryrefslogtreecommitdiff
path: root/smoketest/scripts
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-09-12 13:49:14 +0100
committerGitHub <noreply@github.com>2024-09-12 13:49:14 +0100
commit48ac2a98ec665eaf81872f0263157fff8d37bd6c (patch)
treeab69afaf46b0483dfdee6460ed3faa6b3430a17f /smoketest/scripts
parentfe67039aa3e213cfa8d2c41c2990c60d1a96924c (diff)
parentda35b91a0c1484e112dedda9caf08227fa048529 (diff)
downloadvyos-1x-48ac2a98ec665eaf81872f0263157fff8d37bd6c.tar.gz
vyos-1x-48ac2a98ec665eaf81872f0263157fff8d37bd6c.zip
Merge pull request #4041 from natali-rs1985/T6685-current
pppoe-server: T6685: Add options to accept any and blank service names
Diffstat (limited to 'smoketest/scripts')
-rwxr-xr-xsmoketest/scripts/cli/test_service_pppoe-server.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_service_pppoe-server.py b/smoketest/scripts/cli/test_service_pppoe-server.py
index 8add5ee6c..8cd87e0f2 100755
--- a/smoketest/scripts/cli/test_service_pppoe-server.py
+++ b/smoketest/scripts/cli/test_service_pppoe-server.py
@@ -195,6 +195,22 @@ class TestServicePPPoEServer(BasicAccelPPPTest.TestCase):
config = read_file(self._config_file)
self.assertIn('any-login=1', config)
+ def test_pppoe_server_accept_service(self):
+ services = ['user1-service', 'user2-service']
+ self.basic_config()
+
+ for service in services:
+ self.set(['service-name', service])
+ self.set(['accept-any-service'])
+ self.set(['accept-blank-service'])
+ self.cli_commit()
+
+ # Validate configuration values
+ config = read_file(self._config_file)
+ self.assertIn(f'service-name={",".join(services)}', config)
+ self.assertIn('accept-any-service=1', config)
+ self.assertIn('accept-blank-service=1', config)
+
if __name__ == '__main__':
unittest.main(verbosity=2)