From 743627b9df6f7e8e34b544270ece4bc64a90b438 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Tue, 4 Aug 2020 22:40:53 +0200 Subject: router-advert: check 'infinity' option in script logic --- scripts/cli/test_service_router-advert.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/cli/test_service_router-advert.py b/scripts/cli/test_service_router-advert.py index cc251e355..ec2110c8a 100755 --- a/scripts/cli/test_service_router-advert.py +++ b/scripts/cli/test_service_router-advert.py @@ -47,6 +47,7 @@ class TestServiceRADVD(unittest.TestCase): def test_single(self): self.session.set(base_path + ['prefix', '::/64', 'no-on-link-flag']) self.session.set(base_path + ['prefix', '::/64', 'no-autonomous-flag']) + self.session.set(base_path + ['prefix', '::/64', 'valid-lifetime', 'infinity']) self.session.set(base_path + ['dnssl', '2001:db8::1234']) self.session.set(base_path + ['other-config-flag']) @@ -80,7 +81,7 @@ class TestServiceRADVD(unittest.TestCase): # this is a default value tmp = get_config_value('AdvValidLifetime') - self.assertEqual(tmp, '2592000') + self.assertEqual(tmp, 'infinity') # this is a default value tmp = get_config_value('AdvPreferredLifetime') -- cgit v1.2.3