Browse Source

[1807] re-add accidentally removed test for 'normal' ENT

Jelte Jansen 13 years ago
parent
commit
fa16480fcb
1 changed files with 8 additions and 2 deletions
  1. 8 2
      src/lib/datasrc/tests/memory_datasrc_unittest.cc

+ 8 - 2
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);
 }