[svn] commit: r2513 - /trunk/src/lib/datasrc/tests/datasrc_unittest.cc
BIND 10 source code commits
bind10-changes at lists.isc.org
Thu Jul 15 23:28:38 UTC 2010
Author: jinmei
Date: Thu Jul 15 23:28:38 2010
New Revision: 2513
Log:
added another failure case in wildcard matching
(currently disabled, so directly committing to trunk)
Modified:
trunk/src/lib/datasrc/tests/datasrc_unittest.cc
Modified: trunk/src/lib/datasrc/tests/datasrc_unittest.cc
==============================================================================
--- trunk/src/lib/datasrc/tests/datasrc_unittest.cc (original)
+++ trunk/src/lib/datasrc/tests/datasrc_unittest.cc Thu Jul 15 23:28:38 2010
@@ -381,6 +381,14 @@
headerCheck(msg, Rcode::NOERROR(), true, true, true, 0, 2, 0);
}
+TEST_F(DataSrcTest, DISABLED_WildcardAgainstMultiLabel) {
+ // this qname shouldn't match *.wild.com.com (because * can only match
+ // a single label), and it should result in NXDOMAIN.
+ createAndProcessQuery(Name("www.xxx.wild.example.com"), RRClass::IN(),
+ RRType::A());
+ headerCheck(msg, Rcode::NXDOMAIN(), true, true, true, 0, 1, 0);
+}
+
TEST_F(DataSrcTest, WildcardCname) {
// Check that wildcard answers containing CNAMES are followed
// correctly
More information about the bind10-changes
mailing list