From 4c7c37594f33e75d783eb03cee127a1f22f2e7a0 Mon Sep 17 00:00:00 2001 From: Marcin Siodelski Date: Thu, 6 Oct 2016 09:57:34 +0200 Subject: [PATCH] [5022] Updated hosts test to check that pool options are overriden. --- src/bin/dhcp6/tests/host_unittest.cc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/bin/dhcp6/tests/host_unittest.cc b/src/bin/dhcp6/tests/host_unittest.cc index 987c498502..23338c4c29 100644 --- a/src/bin/dhcp6/tests/host_unittest.cc +++ b/src/bin/dhcp6/tests/host_unittest.cc @@ -40,8 +40,8 @@ namespace { /// in non-default order. /// /// - Configuration 3: -/// - Used to test that host specific options override subnet specific -/// options and global options. +/// - Used to test that host specific options override pool specific, +/// subnet specific and global options. /// /// - Configuration 4: /// - Used to test that client receives options solely specified in a @@ -150,7 +150,13 @@ const char* CONFIGS[] = { "\"subnet6\": [ " " { " " \"subnet\": \"2001:db8:1::/48\", " - " \"pools\": [ { \"pool\": \"2001:db8:1::/64\" } ]," + " \"pools\": [ {" + " \"pool\": \"2001:db8:1::/64\"," + " \"option-data\": [ {" + " \"name\": \"dns-servers\"," + " \"data\": \"3000:2::111\"" + " } ]" + " } ]," " \"interface\" : \"eth0\"," " \"option-data\": [ {" " \"name\": \"dns-servers\"," -- 2.47.2