summaryrefslogtreecommitdiff
path: root/smoketest/scripts
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-06-28 14:46:39 +0200
committerGitHub <noreply@github.com>2024-06-28 14:46:39 +0200
commit12fcf6c5ef2e5678b0b88c34d6c031435d85ec68 (patch)
tree3385ca742d5f327452553f0c3e6469e1d48cb471 /smoketest/scripts
parent57c24a8fd22929a7e38c3ada1d1db8863d6c38f6 (diff)
parentc86909d39e2c3a1ca74372bc377adde63953c76a (diff)
downloadvyos-1x-12fcf6c5ef2e5678b0b88c34d6c031435d85ec68.tar.gz
vyos-1x-12fcf6c5ef2e5678b0b88c34d6c031435d85ec68.zip
Merge pull request #3730 from natali-rs1985/T5710-current
pppoe-server: T5710: Add option permit any-login
Diffstat (limited to 'smoketest/scripts')
-rwxr-xr-xsmoketest/scripts/cli/test_service_pppoe-server.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_service_pppoe-server.py b/smoketest/scripts/cli/test_service_pppoe-server.py
index 97c63d4cb..34e45a81a 100755
--- a/smoketest/scripts/cli/test_service_pppoe-server.py
+++ b/smoketest/scripts/cli/test_service_pppoe-server.py
@@ -177,6 +177,17 @@ class TestServicePPPoEServer(BasicAccelPPPTest.TestCase):
conf.read(self._config_file)
self.assertEqual(conf['pppoe']['pado-delay'], '10,20:200,30:300,-1:400')
+ def test_pppoe_server_any_login(self):
+ # Test configuration of local authentication for PPPoE server
+ self.basic_config()
+
+ self.set(['authentication', 'any-login'])
+ self.cli_commit()
+
+ # Validate configuration values
+ config = read_file(self._config_file)
+ self.assertIn('any-login=1', config)
+
if __name__ == '__main__':
unittest.main(verbosity=2)