Mercurial > hg > nginx-tests
diff http_resolver.t @ 397:847ea345becb
Tests: removed TODO and try_run() checks for legacy versions.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 05 May 2014 11:46:01 +0400 |
parents | 81fed52bfca5 |
children | 4984dac109db |
line wrap: on
line diff
--- a/http_resolver.t Wed Apr 30 18:04:50 2014 +0400 +++ b/http_resolver.t Mon May 05 11:46:01 2014 +0400 @@ -92,15 +92,10 @@ # ensure that resolver serves queries from cache in a case-insensitive manner # we check this by marking 2nd and subsequent queries on backend with SERVFAIL -TODO: { -local $TODO = 'not yet' unless $t->has_version('1.5.8'); - http_x_name_header('case.example.net', '/case'); like(http_x_name_header('CASE.example.net', '/case'), qr/200 OK/, 'A case-insensitive'); -} - like(http_host_header('awide.example.net', '/'), qr/200 OK/, 'A uncompressed'); like(http_host_header('short.example.net', '/'), qr/502 Bad/, 'A short dns response'); @@ -204,9 +199,6 @@ like(http_host_header('ttl.example.net', '/valid'), qr/502 Bad/, 'valid expired'); -TODO: { -local $TODO = 'not yet' unless $t->has_version('1.5.9'); - # Ensure that resolver respects expired CNAME in CNAME + A combined response. # When ttl in CNAME is expired, the answer should not be served from cache. # Catch this by returning SERVFAIL on the 2nd and subsequent queries. @@ -218,8 +210,6 @@ like(http_host_header('cname_a_ttl2.example.net', '/'), qr/502 Bad/, 'CNAME + A with expired CNAME ttl'); -} - like(http_host_header('example.net', '/invalid'), qr/502 Bad/, 'no resolver'); ###############################################################################