From: Jelte Jansen Date: Thu, 10 May 2012 08:45:57 +0000 (+0200) Subject: [1807] re-add accidentally removed test for 'normal' ENT X-Git-Tag: trac2351_base~226^2~157^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fa16480fcbc6ac41cd8582af4158b0ab8112dff6;p=thirdparty%2Fkea.git [1807] re-add accidentally removed test for 'normal' ENT --- diff --git a/src/lib/datasrc/tests/memory_datasrc_unittest.cc b/src/lib/datasrc/tests/memory_datasrc_unittest.cc index 56b456f4fa..ce2da31c7f 100644 --- a/src/lib/datasrc/tests/memory_datasrc_unittest.cc +++ b/src/lib/datasrc/tests/memory_datasrc_unittest.cc @@ -1048,6 +1048,7 @@ InMemoryZoneFinderTest::findNSECENTCheck(const Name& ent_name, ZoneFinder::FindResultFlags expected_flags) { EXPECT_EQ(SUCCESS, zone_finder_.add(rr_emptywild_)); + EXPECT_EQ(SUCCESS, zone_finder_.add(rr_under_wild_)); // Sanity check: Should result in NXRRSET findTest(ent_name, RRType::A(), ZoneFinder::NXRRSET, true, @@ -1071,11 +1072,16 @@ InMemoryZoneFinderTest::findNSECENTCheck(const Name& ent_name, TEST_F(InMemoryZoneFinderTest,findNSECEmptyNonterminal) { // Non-wildcard case - findNSECENTCheck(Name("foo.example.org")); + findNSECENTCheck(Name("wild.example.org")); } TEST_F(InMemoryZoneFinderTest,findNSECEmptyNonterminalWildcard) { - // Wildcard case + // Wildcard case, above + findNSECENTCheck(Name("foo.example.org")); +} + +TEST_F(InMemoryZoneFinderTest,findNSECEmptyNonterminalUnderWildcard) { + // Wildcard case, under findNSECENTCheck(Name("bar.foo.example.org"), ZoneFinder::RESULT_WILDCARD); }