comparison auth_request.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 4ac60aad723e
children fa71c725d40a
comparison
equal deleted inserted replaced
567:22bade4c7e12 568:907e89fba9c3
166 like(http_get_auth('/proxy'), qr/ 404 /, 'proxy auth pass'); 166 like(http_get_auth('/proxy'), qr/ 404 /, 'proxy auth pass');
167 unlike(http_get_auth('/proxy'), qr/INVISIBLE/, 'proxy auth no content'); 167 unlike(http_get_auth('/proxy'), qr/INVISIBLE/, 'proxy auth no content');
168 168
169 like(http_post('/proxy'), qr/ 401 /, 'proxy auth post'); 169 like(http_post('/proxy'), qr/ 401 /, 'proxy auth post');
170 170
171 TODO: {
172 local $TODO = 'not yet' unless $t->has_version('1.7.3');
173
174 like(http_get_auth('/proxy-cache'), qr/ 404 /, 'proxy auth with cache'); 171 like(http_get_auth('/proxy-cache'), qr/ 404 /, 'proxy auth with cache');
175
176 }
177
178 like(http_get('/proxy-cache'), qr/ 404 /, 'proxy auth cached'); 172 like(http_get('/proxy-cache'), qr/ 404 /, 'proxy auth cached');
179 173
180 # Consider the following scenario: 174 # Consider the following scenario:
181 # 175 #
182 # 1. proxy_pass reads request body, then goes to fallback via error_page 176 # 1. proxy_pass reads request body, then goes to fallback via error_page