|
@@ -261,6 +261,21 @@ TEST_P(ZoneFinderContextTest, getAdditionalDelegationWithEmptyName) {
|
|
|
result_sets_.begin(), result_sets_.end());
|
|
|
}
|
|
|
|
|
|
+TEST_P(ZoneFinderContextTest, getAdditionalDelegationWithWild) {
|
|
|
+ // The NS name needs to be expanded by a wildcard. Currently it doesn't
|
|
|
+ // work for the optimized in-memory version.
|
|
|
+ if (GetParam() == createInMemoryClient) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ ZoneFinderContextPtr ctx = finder_->find(Name("www.e.example.org"),
|
|
|
+ RRType::AAAA());
|
|
|
+ EXPECT_EQ(ZoneFinder::DELEGATION, ctx->code);
|
|
|
+ ctx->getAdditional(REQUESTED_BOTH, result_sets_);
|
|
|
+ rrsetsCheck("ns.wild.example.org. 3600 IN A 192.0.2.15\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.
|