]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1688] additional test case of duplicate in the same section.
authorJINMEI Tatuya <jinmei@isc.org>
Thu, 22 Mar 2012 04:40:19 +0000 (21:40 -0700)
committerJINMEI Tatuya <jinmei@isc.org>
Thu, 22 Mar 2012 04:40:19 +0000 (21:40 -0700)
the implementation already correctly handles this, so no need to update it.

src/bin/auth/tests/query_unittest.cc

index 7e288f40e05dd3b2ce6b927cc7c9e2fd7bf4c1e3..aae1838fbbcd704b8013ce6bf53bc1bcae21389e 100644 (file)
@@ -2446,7 +2446,8 @@ TEST_F(QueryTest, DuplicateNameRemoval) {
     // the overlap.)
     //
     // answer     = 0 1 2 3
-    // authority  =     2 3 4 5 6 7
+    // authority  =     2 3 4 5 6 7...
+    //                     ...5 (duplicate in the same section)
     // additional = 0     3       7 8
     //
     // If the duplicate removal works, we should end up with the following in
@@ -2483,6 +2484,7 @@ TEST_F(QueryTest, DuplicateNameRemoval) {
     authority.insert(authority.end(), rrset_vector.begin() + 3,
                      rrset_vector.begin() + 8);
     authority.push_back(rrset_vector[2]);
+    authority.push_back(rrset_vector[5]);
 
     std::vector<RRsetPtr> additional;
     additional.insert(additional.end(), rrset_vector.begin() + 7,