From: Wouter Wijngaards Date: Fri, 26 Jun 2015 07:43:42 +0000 (+0000) Subject: and check ttls of CNAME and DNAME in cache response in unit test. X-Git-Tag: release-1.5.4~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe485c7240d183502e03a61adfe1ba6cba5cb20e;p=thirdparty%2Funbound.git and check ttls of CNAME and DNAME in cache response in unit test. git-svn-id: file:///svn/unbound/trunk@3437 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/testdata/val_dnametopos.rpl b/testdata/val_dnametopos.rpl index a78d34ae7..faeb40f9d 100644 --- a/testdata/val_dnametopos.rpl +++ b/testdata/val_dnametopos.rpl @@ -232,25 +232,28 @@ SECTION ADDITIONAL ENTRY_END ; Check cache response for DNAME -STEP 20 QUERY +; so 100+ the authority will not respond any more : must be from cache. +STEP 110 TIME_PASSES ELAPSE 10 + +STEP 120 QUERY ENTRY_BEGIN REPLY RD DO SECTION QUESTION www.example.com. IN A ENTRY_END -STEP 30 CHECK_ANSWER +STEP 130 CHECK_ANSWER ENTRY_BEGIN -MATCH all +MATCH all ttl REPLY QR RD RA AD DO NOERROR SECTION QUESTION www.example.com. IN A SECTION ANSWER -example.com. 3600 IN DNAME example.net. -example.com. 3600 IN RRSIG DNAME 3 2 3600 20070926134150 20070829134150 2854 example.com. MCwCFH1xw24Hswia3g10AVL1yFUHUPdFAhQDrA+qZJwqXRPg2C1oiNPk9fosGg== ;{id = 2854} -www.example.com. 0 IN CNAME www.example.net. -www.example.net. 3600 IN A 11.12.13.14 -www.example.net. 3600 IN RRSIG A 5 3 3600 20070926134150 20070829134150 30899 example.net. CPxF5hK9Kg5eT7W6LgZwr0ePYEm9HMcSY4vvqCS6gDWB4X9jvXLCfBkCLhsNybPBpGWlsLi5wM6MTdJXuPpsRA== ;{id = 30899} +example.com. 3590 IN DNAME example.net. +example.com. 3590 IN RRSIG DNAME 3 2 3600 20070926134150 20070829134150 2854 example.com. MCwCFH1xw24Hswia3g10AVL1yFUHUPdFAhQDrA+qZJwqXRPg2C1oiNPk9fosGg== ;{id = 2854} +www.example.com. 3590 IN CNAME www.example.net. +www.example.net. 3590 IN A 11.12.13.14 +www.example.net. 3590 IN RRSIG A 5 3 3600 20070926134150 20070829134150 30899 example.net. CPxF5hK9Kg5eT7W6LgZwr0ePYEm9HMcSY4vvqCS6gDWB4X9jvXLCfBkCLhsNybPBpGWlsLi5wM6MTdJXuPpsRA== ;{id = 30899} SECTION AUTHORITY SECTION ADDITIONAL ENTRY_END