From: Marcin Siodelski Date: Thu, 6 Oct 2016 07:57:34 +0000 (+0200) Subject: [5022] Updated hosts test to check that pool options are overriden. X-Git-Tag: trac4631a_base~3^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c7c37594f33e75d783eb03cee127a1f22f2e7a0;p=thirdparty%2Fkea.git [5022] Updated hosts test to check that pool options are overriden. --- 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\","