]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2165] Don't add another copy of RRSIGs to the actual rrsets
authorMukund Sivaraman <muks@isc.org>
Mon, 20 Aug 2012 20:17:13 +0000 (01:47 +0530)
committerMukund Sivaraman <muks@isc.org>
Mon, 20 Aug 2012 20:17:20 +0000 (01:47 +0530)
src/lib/datasrc/tests/faked_nsec3.cc
src/lib/datasrc/tests/faked_nsec3.h
src/lib/datasrc/tests/memory_datasrc_unittest.cc

index 1e37b8ebbc90b64ca0d4f4fffe366cd5412863c3..d0df394cf20c9f3fbf8db1adccf6bcf737822350 100644 (file)
@@ -93,8 +93,7 @@ void
 findNSEC3Check(bool expected_matched, uint8_t expected_labels,
                const string& expected_closest,
                const string& expected_next,
-               const ZoneFinder::FindNSEC3Result& result,
-               bool expected_sig)
+               const ZoneFinder::FindNSEC3Result& result)
 {
     EXPECT_EQ(expected_matched, result.matched);
     // Convert to int so the error messages would be more readable:
@@ -104,9 +103,6 @@ findNSEC3Check(bool expected_matched, uint8_t expected_labels,
     vector<ConstRRsetPtr> actual_rrsets;
     ASSERT_TRUE(result.closest_proof);
     actual_rrsets.push_back(result.closest_proof);
-    if (expected_sig) {
-        actual_rrsets.push_back(result.closest_proof->getRRsig());
-    }
     rrsetsCheck(expected_closest, actual_rrsets.begin(),
                 actual_rrsets.end());
 
@@ -116,9 +112,6 @@ findNSEC3Check(bool expected_matched, uint8_t expected_labels,
     } else {
         ASSERT_TRUE(result.next_proof);
         actual_rrsets.push_back(result.next_proof);
-        if (expected_sig) {
-            actual_rrsets.push_back(result.next_proof->getRRsig());
-        }
         rrsetsCheck(expected_next, actual_rrsets.begin(),
                     actual_rrsets.end());
     }
index 10d944493c7030a9b423e1c439c326abd0c4502d..d544909fb89e4cb6c39fd9ed4e2458f0cd61b01d 100644 (file)
@@ -69,8 +69,7 @@ void
 findNSEC3Check(bool expected_matched, uint8_t expected_labels,
                const std::string& expected_closest,
                const std::string& expected_next,
-               const isc::datasrc::ZoneFinder::FindNSEC3Result& result,
-               bool expected_sig = false);
+               const isc::datasrc::ZoneFinder::FindNSEC3Result& result);
 
 // Perform the shared part of NSEC3 test (shared between in-memory and database
 // tests).
index 64bd70ef44c3f3e861f5916ba1cc17ea3cd42845..5abe2702a2f6821039753fbdadd56e9508b1b2d3 100644 (file)
@@ -2067,7 +2067,7 @@ TEST_F(InMemoryZoneFinderTest, addNSEC3WithRRSIG) {
     // Then look for it.  The NSEC3 should have the RRSIG that was just added.
     findNSEC3Check(true, origin_.getLabelCount(),
                    nsec3_text + "\n" + nsec3_rrsig_text, "",
-                   zone_finder_.findNSEC3(Name("example.org"), false), true);
+                   zone_finder_.findNSEC3(Name("example.org"), false));
 
     // Duplicate add of RRSIG for the same NSEC3 is prohibited.
     EXPECT_THROW(zone_finder_.add(textToRRset(nsec3_rrsig_text)),