Mercurial > hg > nginx-tests
comparison http_uri.t @ 1693:5ac6efbe5552
Tests: removed TODO and try_run() checks for legacy versions.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 01 Jun 2021 16:40:18 +0300 |
parents | 7b80c8e0479a |
children | 9c79f41fdf9b |
comparison
equal
deleted
inserted
replaced
1692:f6795e2e6a4b | 1693:5ac6efbe5552 |
---|---|
62 like(http_get('/foo/bar/.'), qr!x /foo/bar/ x!, 'trailing dot'); | 62 like(http_get('/foo/bar/.'), qr!x /foo/bar/ x!, 'trailing dot'); |
63 like(http_get('/foo/bar/..'), qr!x /foo/ x!, 'trailing dot dot'); | 63 like(http_get('/foo/bar/..'), qr!x /foo/ x!, 'trailing dot dot'); |
64 | 64 |
65 like(http_get('http://localhost'), qr!x / x!, 'absolute'); | 65 like(http_get('http://localhost'), qr!x / x!, 'absolute'); |
66 like(http_get('http://localhost/'), qr!x / x!, 'absolute slash'); | 66 like(http_get('http://localhost/'), qr!x / x!, 'absolute slash'); |
67 | |
68 TODO: { | |
69 local $TODO = 'not yet' unless $t->has_version('1.19.6'); | |
70 | |
71 like(http_get('http://localhost?args'), qr!x / x.*y args y!ms, | 67 like(http_get('http://localhost?args'), qr!x / x.*y args y!ms, |
72 'absolute args'); | 68 'absolute args'); |
73 like(http_get('http://localhost?args#frag'), qr!x / x.*y args y!ms, | 69 like(http_get('http://localhost?args#frag'), qr!x / x.*y args y!ms, |
74 'absolute args and frag'); | 70 'absolute args and frag'); |
75 | 71 |
76 } | |
77 | |
78 like(http_get('http://localhost:8080'), qr!x / x!, 'port'); | 72 like(http_get('http://localhost:8080'), qr!x / x!, 'port'); |
79 like(http_get('http://localhost:8080/'), qr!x / x!, 'port slash'); | 73 like(http_get('http://localhost:8080/'), qr!x / x!, 'port slash'); |
80 | |
81 TODO: { | |
82 local $TODO = 'not yet' unless $t->has_version('1.19.6'); | |
83 | |
84 like(http_get('http://localhost:8080?args'), qr!x / x.*y args y!ms, | 74 like(http_get('http://localhost:8080?args'), qr!x / x.*y args y!ms, |
85 'port args'); | 75 'port args'); |
86 like(http_get('http://localhost:8080?args#frag'), qr!x / x.*y args y!ms, | 76 like(http_get('http://localhost:8080?args#frag'), qr!x / x.*y args y!ms, |
87 'port args and frag'); | 77 'port args and frag'); |
88 | 78 |
89 } | |
90 | |
91 like(http_get('/ /'), qr!x / / x!, 'space'); | 79 like(http_get('/ /'), qr!x / / x!, 'space'); |
92 | 80 |
93 ############################################################################### | 81 ############################################################################### |