diff options
author | Nataliia Solomko <natalirs1985@gmail.com> | 2024-04-25 13:27:50 +0300 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-05-01 15:34:47 +0000 |
commit | 0891817c6f0b4d4bb3e8d4c21f2873ab43e1be26 (patch) | |
tree | 5542df2c18c8941547f64bf8165b2a3f3e412600 /smoketest/scripts | |
parent | f69604da0a06e4bf48e3730286539f84ad02d0ef (diff) | |
download | vyos-1x-0891817c6f0b4d4bb3e8d4c21f2873ab43e1be26.tar.gz vyos-1x-0891817c6f0b4d4bb3e8d4c21f2873ab43e1be26.zip |
pppoe-server: T6234: PPPoE-server pado-delay refactoring
(cherry picked from commit 107ee099e82397b31fca8cf1ac3860cbf76f0596)
Diffstat (limited to 'smoketest/scripts')
-rwxr-xr-x | smoketest/scripts/cli/test_service_pppoe-server.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/smoketest/scripts/cli/test_service_pppoe-server.py b/smoketest/scripts/cli/test_service_pppoe-server.py index 5a48b1f58..97c63d4cb 100755 --- a/smoketest/scripts/cli/test_service_pppoe-server.py +++ b/smoketest/scripts/cli/test_service_pppoe-server.py @@ -168,7 +168,14 @@ class TestServicePPPoEServer(BasicAccelPPPTest.TestCase): conf = ConfigParser(allow_no_value=True, delimiters='=') conf.read(self._config_file) - self.assertEqual(conf['pppoe']['pado-delay'], '10,20:200,-1:300') + self.assertEqual(conf['pppoe']['pado-delay'], '10,20:200,30:300') + + self.set(['pado-delay', 'disable', 'sessions', '400']) + self.cli_commit() + + conf = ConfigParser(allow_no_value=True, delimiters='=') + conf.read(self._config_file) + self.assertEqual(conf['pppoe']['pado-delay'], '10,20:200,30:300,-1:400') if __name__ == '__main__': |