[svn] commit: r1727 - in /trunk/src/lib/auth/tests: datasrc_unittest.cc testdata/example.org testdata/example.org.sqlite3
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Apr 16 23:52:20 UTC 2010
Author: jinmei
Date: Fri Apr 16 23:52:20 2010
New Revision: 1727
Log:
added a test case that uncovers a bug in DNAME-CNAME synthesize.
commented out for now, will open a ticket. so skipping review this time.
Modified:
trunk/src/lib/auth/tests/datasrc_unittest.cc
trunk/src/lib/auth/tests/testdata/example.org
trunk/src/lib/auth/tests/testdata/example.org.sqlite3
Modified: trunk/src/lib/auth/tests/datasrc_unittest.cc
==============================================================================
--- trunk/src/lib/auth/tests/datasrc_unittest.cc (original)
+++ trunk/src/lib/auth/tests/datasrc_unittest.cc Fri Apr 16 23:52:20 2010
@@ -842,4 +842,18 @@
ds.removeDataSrc(tsp);
EXPECT_EQ(0, ds.dataSrcCount());
}
-}
+
+#if 0 // currently fails
+TEST_F(DataSrcTest, synthesizedCnameTooLong) {
+ // qname has the possible max length (255 octets). it matches a DNAME,
+ // and the synthesized CNAME would exceed the valid length.
+ createAndProcessQuery(
+ Name("0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcde."
+ "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcde."
+ "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcde."
+ "0123456789abcdef0123456789abcdef0123456789a.dname.example.org."),
+ RRClass::IN(), RRType::A());
+}
+#endif
+
+}
Modified: trunk/src/lib/auth/tests/testdata/example.org
==============================================================================
--- trunk/src/lib/auth/tests/testdata/example.org (original)
+++ trunk/src/lib/auth/tests/testdata/example.org Fri Apr 16 23:52:20 2010
@@ -10,3 +10,4 @@
mail.example.org. A 192.0.2.10
sub.example.org. NS ns.sub.example.org.
ns.sub.example.org. A 192.0.2.101
+dname.example.org. DNAME dname.example.info.
Modified: trunk/src/lib/auth/tests/testdata/example.org.sqlite3
==============================================================================
Binary files - no diff available.
More information about the bind10-changes
mailing list