summaryrefslogtreecommitdiff
path: root/smoketest/scripts
diff options
context:
space:
mode:
authorNataliia Solomko <natalirs1985@gmail.com>2024-09-10 12:21:04 +0300
committerNataliia Solomko <natalirs1985@gmail.com>2024-09-12 09:48:07 +0300
commitda35b91a0c1484e112dedda9caf08227fa048529 (patch)
tree1aaebc4791eb05f940deb2bf2c6b9f5550fcdb55 /smoketest/scripts
parentd739a10ce278c5a2cbc2c7790ed36d0e54c2624e (diff)
downloadvyos-1x-da35b91a0c1484e112dedda9caf08227fa048529.tar.gz
vyos-1x-da35b91a0c1484e112dedda9caf08227fa048529.zip
pppoe-server: T6685: Possibility of any services name or blank in pppoe
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)