diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-05-15 20:09:09 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-05-15 20:09:09 +0200 |
commit | ae57c5dc783d8c87382e25e031e21d8c2be59d03 (patch) | |
tree | 98d32a058d096bdecf6500ca306ebed6bb89ff86 | |
parent | 9099636b9b16a2cc9b387adcdd24a1d799343944 (diff) | |
download | vyos-1x-ae57c5dc783d8c87382e25e031e21d8c2be59d03.tar.gz vyos-1x-ae57c5dc783d8c87382e25e031e21d8c2be59d03.zip |
smoketest: T3549: dhcpv6-server: adjust to new config syntax
Commit 9099636b ("dhcpv6-server: T3549: fix incorrect syntax for global
name-server definition") changed how the daemon configuration represents global
DNS nameservers.
Test updated.
-rwxr-xr-x | smoketest/scripts/cli/test_service_dhcpv6-server.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/smoketest/scripts/cli/test_service_dhcpv6-server.py b/smoketest/scripts/cli/test_service_dhcpv6-server.py index e85a055c7..a939aa003 100755 --- a/smoketest/scripts/cli/test_service_dhcpv6-server.py +++ b/smoketest/scripts/cli/test_service_dhcpv6-server.py @@ -161,8 +161,7 @@ class TestServiceDHCPServer(VyOSUnitTestSHIM.TestCase): self.cli_commit() config = read_file(DHCPD_CONF) - self.assertIn(f'option dhcp6.name-servers {ns_global_1};', config) - self.assertIn(f'option dhcp6.name-servers {ns_global_2};', config) + self.assertIn(f'option dhcp6.name-servers {ns_global_1}, {ns_global_2};', config) self.assertIn(f'subnet6 {subnet}' + r' {', config) self.assertIn(f'set shared-networkname = "{shared_net_name}";', config) |