|
@@ -276,6 +276,19 @@ TEST_P(ZoneFinderContextTest, getAdditionalDelegationWithWild) {
|
|
|
result_sets_.begin(), result_sets_.end());
|
|
|
}
|
|
|
|
|
|
+TEST_P(ZoneFinderContextTest, getAdditionalDelegationForWild) {
|
|
|
+ // additional for an answer RRset (MX) as a result of wildcard expansion.
|
|
|
+ // note the difference from the previous test. in this case wildcard
|
|
|
+ // applies to the owner name of the answer, not the owner name of the
|
|
|
+ // additional.
|
|
|
+ ZoneFinderContextPtr ctx = finder_->find(Name("mx.wildmx.example.org"),
|
|
|
+ RRType::MX());
|
|
|
+ EXPECT_EQ(ZoneFinder::SUCCESS, ctx->code);
|
|
|
+ ctx->getAdditional(REQUESTED_BOTH, result_sets_);
|
|
|
+ rrsetsCheck("mx1.example.org. 3600 IN A 192.0.2.10\n",
|
|
|
+ result_sets_.begin(), result_sets_.end());
|
|
|
+}
|
|
|
+
|
|
|
TEST_P(ZoneFinderContextTest, getAdditionalMX) {
|
|
|
// Similar to the previous cases, but for MX addresses. The test zone
|
|
|
// contains MX name under a zone cut. Its address shouldn't be returned.
|