Mercurial > hg > nginx-tests
comparison http_location_auto.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 | b86d60e4cb96 |
children | e9064d691790 |
comparison
equal
deleted
inserted
replaced
396:5eb0df61f371 | 397:847ea345becb |
---|---|
63 | 63 |
64 $t->run(); | 64 $t->run(); |
65 | 65 |
66 ############################################################################### | 66 ############################################################################### |
67 | 67 |
68 TODO: { | |
69 local $TODO = 'not yet' unless $t->has_version('1.5.6'); | |
70 | |
71 like(http_get('/a'), qr/301 Moved/, 'auto redirect'); | 68 like(http_get('/a'), qr/301 Moved/, 'auto redirect'); |
72 | |
73 } | |
74 | |
75 like(http_get('/a/'), qr/X-Location: unset/, 'match a'); | 69 like(http_get('/a/'), qr/X-Location: unset/, 'match a'); |
76 like(http_get('/a-a'), qr/X-Location: a-a/, 'match a-a'); | 70 like(http_get('/a-a'), qr/X-Location: a-a/, 'match a-a'); |
77 like(http_get('/a-b'), qr/X-Location: a-b/, 'match a-b'); | 71 like(http_get('/a-b'), qr/X-Location: a-b/, 'match a-b'); |
78 | 72 |
79 ############################################################################### | 73 ############################################################################### |