diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-09-19 12:01:50 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-09-19 12:29:13 +0200 |
commit | 5e2391000d44a4297fb6eb5fa56049e4d3b3b96d (patch) | |
tree | 609be0623dc0b27314371fb926373ab6c9eb2f70 /smoketest/scripts/cli/test_service_dhcp-server.py | |
parent | f83b5ddf2d0b350328371c2c313766dc4657778e (diff) | |
download | vyos-1x-5e2391000d44a4297fb6eb5fa56049e4d3b3b96d.tar.gz vyos-1x-5e2391000d44a4297fb6eb5fa56049e4d3b3b96d.zip |
smoketest: dhcp: T3841: validate ping-check option
(cherry picked from commit 88f71fc6b5b3bd89623c3d5f0af1c7dbd19f0996)
Diffstat (limited to 'smoketest/scripts/cli/test_service_dhcp-server.py')
-rwxr-xr-x | smoketest/scripts/cli/test_service_dhcp-server.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_service_dhcp-server.py b/smoketest/scripts/cli/test_service_dhcp-server.py index 2aa7b43c8..301f8fa31 100755 --- a/smoketest/scripts/cli/test_service_dhcp-server.py +++ b/smoketest/scripts/cli/test_service_dhcp-server.py @@ -69,6 +69,7 @@ class TestServiceDHCPServer(VyOSUnitTestSHIM.TestCase): self.cli_set(pool + ['name-server', dns_1]) self.cli_set(pool + ['name-server', dns_2]) self.cli_set(pool + ['domain-name', domain_name]) + self.cli_set(pool + ['ping-check']) # check validate() - No DHCP address range or active static-mapping set with self.assertRaises(ConfigSessionError): @@ -91,6 +92,7 @@ class TestServiceDHCPServer(VyOSUnitTestSHIM.TestCase): self.assertIn(f'option domain-name "{domain_name}";', config) self.assertIn(f'default-lease-time 86400;', config) self.assertIn(f'max-lease-time 86400;', config) + self.assertIn(f'ping-check true;', config) self.assertIn(f'range {range_0_start} {range_0_stop};', config) self.assertIn(f'range {range_1_start} {range_1_stop};', config) self.assertIn(f'set shared-networkname = "{shared_net_name}";', config) |