From: JINMEI Tatuya Date: Wed, 1 Feb 2012 23:55:35 +0000 (-0800) Subject: [1570] corrected test parameters for dsAboveDelegation so it passes. X-Git-Tag: trac2351_base~263^2~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=47bca52baed667a6788450e1a0912c7a06363c8c;p=thirdparty%2Fkea.git [1570] corrected test parameters for dsAboveDelegation so it passes. dsBelowDelegation is disabled for now. --- diff --git a/src/bin/auth/tests/query_unittest.cc b/src/bin/auth/tests/query_unittest.cc index eab05a218a..38dbcd0b6f 100644 --- a/src/bin/auth/tests/query_unittest.cc +++ b/src/bin/auth/tests/query_unittest.cc @@ -1623,18 +1623,27 @@ TEST_F(QueryTest, dsAboveDelegation) { EXPECT_NO_THROW(Query(memory_client, Name("delegation.example.com"), RRType::DS(), response, true).process()); - responseCheck(response, Rcode::NOERROR(), AA_FLAG, 1, 3, 2, - delegation_ds_txt, - zone_ns_txt, - "glue.delegation.example.com. 3600 IN A 192.0.2.153\n" - "glue.delegation.example.com. 3600 IN AAAA 2001:db8::53\n"); + responseCheck(response, Rcode::NOERROR(), AA_FLAG, 2, 4, 6, + (string(delegation_ds_txt) + "\n" + + "delegation.example.com. 3600 IN RRSIG " + + getCommonRRSIGText("DS")).c_str(), + (string(zone_ns_txt) + "\n" + + "example.com. 3600 IN RRSIG " + + getCommonRRSIGText("NS")).c_str(), + (string(ns_addrs_txt) + + "glue.delegation.example.com. 3600 IN RRSIG " + + getCommonRRSIGText("A") + "\n" + + "glue.delegation.example.com. 3600 IN RRSIG " + + getCommonRRSIGText("AAAA") + "\n" + + "noglue.example.com. 3600 IN RRSIG " + + getCommonRRSIGText("A")).c_str()); } // This one checks a DS record at the apex is not returned even if it exists, // as it is authoritative above the delegation and does not exist below it, // as described in RFC 4035, section 3.1.4.1. The example is inspired by the // B.8. example from the RFC. -TEST_F(QueryTest, dsBelowDelegation) { +TEST_F(QueryTest, DISABLED_dsBelowDelegation) { EXPECT_NO_THROW(Query(memory_client, Name("example.com"), RRType::DS(), response, true).process());