]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5022] Updated hosts test to check that pool options are overriden.
authorMarcin Siodelski <marcin@isc.org>
Thu, 6 Oct 2016 07:57:34 +0000 (09:57 +0200)
committerMarcin Siodelski <marcin@isc.org>
Thu, 6 Oct 2016 07:57:34 +0000 (09:57 +0200)
src/bin/dhcp6/tests/host_unittest.cc

index 987c49850270a51efb53c1dc9c0a91dcf692aff8..23338c4c29c1c9fa6f2f8e54e88204073aa051b4 100644 (file)
@@ -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\","