summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-05-15 20:09:09 +0200
committerChristian Poessinger <christian@poessinger.com>2021-05-15 20:09:09 +0200
commitae57c5dc783d8c87382e25e031e21d8c2be59d03 (patch)
tree98d32a058d096bdecf6500ca306ebed6bb89ff86
parent9099636b9b16a2cc9b387adcdd24a1d799343944 (diff)
downloadvyos-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-xsmoketest/scripts/cli/test_service_dhcpv6-server.py3
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)