Mercurial > hg > nginx-tests
comparison http_try_files.t @ 568:907e89fba9c3
Tests: removed TODO and try_run() checks for legacy versions.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Sun, 03 May 2015 12:45:09 +0300 |
parents | 64eabe6aa1f2 |
children | bc91b86a71ee |
comparison
equal
deleted
inserted
replaced
567:22bade4c7e12 | 568:907e89fba9c3 |
---|---|
97 like(http_get('/uri/notfound'), qr!X-URI: /fallback!, 'not found uri'); | 97 like(http_get('/uri/notfound'), qr!X-URI: /fallback!, 'not found uri'); |
98 like(http_get('/nouri/notfound'), qr!X-URI: /fallback!, 'not found nouri'); | 98 like(http_get('/nouri/notfound'), qr!X-URI: /fallback!, 'not found nouri'); |
99 like(http_get('/short/long'), qr!404 Not!, 'short uri in try_files'); | 99 like(http_get('/short/long'), qr!404 Not!, 'short uri in try_files'); |
100 | 100 |
101 like(http_get('/file-file/'), qr!SEE THIS!, 'file matches file'); | 101 like(http_get('/file-file/'), qr!SEE THIS!, 'file matches file'); |
102 | |
103 TODO: { | |
104 local $TODO = 'not yet' unless $t->has_version('1.7.10'); | |
105 | |
106 like(http_get('/file-dir/'), qr!404 Not!, 'file does not match dir'); | 102 like(http_get('/file-dir/'), qr!404 Not!, 'file does not match dir'); |
107 | |
108 } | |
109 | |
110 like(http_get('/dir-dir/'), qr!301 Moved Permanently!, 'dir matches dir'); | 103 like(http_get('/dir-dir/'), qr!301 Moved Permanently!, 'dir matches dir'); |
111 like(http_get('/dir-file/'), qr!404 Not!, 'dir does not match file'); | 104 like(http_get('/dir-file/'), qr!404 Not!, 'dir does not match file'); |
112 | 105 |
113 ############################################################################### | 106 ############################################################################### |