Mercurial > hg > nginx-tests
comparison not_modified.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 | d5bf5942a8b2 |
children | e9064d691790 |
comparison
equal
deleted
inserted
replaced
567:22bade4c7e12 | 568:907e89fba9c3 |
---|---|
77 like(http_get_inm('/t', $etag), qr/ 304 /, 'if-none-match'); | 77 like(http_get_inm('/t', $etag), qr/ 304 /, 'if-none-match'); |
78 like(http_get_inm('/t', '"foo"'), qr/ 200 /, 'if-none-match fail'); | 78 like(http_get_inm('/t', '"foo"'), qr/ 200 /, 'if-none-match fail'); |
79 like(http_get_inm('/t', '"foo", "bar", ' . $etag . ' , "baz"'), qr/ 304 /, | 79 like(http_get_inm('/t', '"foo", "bar", ' . $etag . ' , "baz"'), qr/ 304 /, |
80 'if-none-match with complex list'); | 80 'if-none-match with complex list'); |
81 like(http_get_inm('/t', '*'), qr/ 304 /, 'if-none-match all'); | 81 like(http_get_inm('/t', '*'), qr/ 304 /, 'if-none-match all'); |
82 | |
83 TODO: { | |
84 local $TODO = 'not yet' unless $t->has_version('1.7.3'); | |
85 | |
86 like(http_get_inm('/t', 'W/' . $etag), qr/ 304 /, 'if-none-match weak'); | 82 like(http_get_inm('/t', 'W/' . $etag), qr/ 304 /, 'if-none-match weak'); |
87 | |
88 } | |
89 | |
90 like(http_get_im('/t', $etag), qr/ 200 /, 'if-match'); | 83 like(http_get_im('/t', $etag), qr/ 200 /, 'if-match'); |
91 like(http_get_im('/t', '"foo"'), qr/ 412 /, 'if-match fail'); | 84 like(http_get_im('/t', '"foo"'), qr/ 412 /, 'if-match fail'); |
92 like(http_get_im('/t', '"foo", "bar", ' . "\t" . $etag . ' , "baz"'), | 85 like(http_get_im('/t', '"foo", "bar", ' . "\t" . $etag . ' , "baz"'), |
93 qr/ 200 /, 'if-match with complex list'); | 86 qr/ 200 /, 'if-match with complex list'); |
94 like(http_get_im('/t', '*'), qr/ 200 /, 'if-match all'); | 87 like(http_get_im('/t', '*'), qr/ 200 /, 'if-match all'); |