]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1807] re-add accidentally removed test for 'normal' ENT
authorJelte Jansen <jelte@isc.org>
Thu, 10 May 2012 08:45:57 +0000 (10:45 +0200)
committerJelte Jansen <jelte@isc.org>
Thu, 10 May 2012 08:45:57 +0000 (10:45 +0200)
src/lib/datasrc/tests/memory_datasrc_unittest.cc

index 56b456f4fa6c595cc3dc8971a561417b1161486d..ce2da31c7f4de921ea11ba2267d7b01a363d4c97 100644 (file)
@@ -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);
 }