Mercurial > hg > nginx-tests
comparison xslt.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 | b4014b3e8495 |
children |
comparison
equal
deleted
inserted
replaced
1692:f6795e2e6a4b | 1693:5ac6efbe5552 |
---|---|
116 like(http_get("/x1"), qr!200 OK.*Content-Type: text/html!ms, 'content type'); | 116 like(http_get("/x1"), qr!200 OK.*Content-Type: text/html!ms, 'content type'); |
117 like(http_get("/x2"), qr!200 OK.*param1=value1.*param2=data.*param3=value3!ms, | 117 like(http_get("/x2"), qr!200 OK.*param1=value1.*param2=data.*param3=value3!ms, |
118 'params'); | 118 'params'); |
119 like(http_get("/x3"), qr!200 OK.*data=test entity!ms, 'entities'); | 119 like(http_get("/x3"), qr!200 OK.*data=test entity!ms, 'entities'); |
120 like(http_get("/x4"), qr!200 OK.*data=other data!ms, 'several stylesheets'); | 120 like(http_get("/x4"), qr!200 OK.*data=other data!ms, 'several stylesheets'); |
121 | |
122 TODO: { | |
123 todo_skip 'heap-buffer-overflow', 1 unless $t->has_version('1.17.2') | |
124 or $ENV{TEST_NGINX_UNSAFE}; | |
125 | |
126 like(http_get("/x5"), qr!200 OK.*param1=localhost!ms, 'params variable'); | 121 like(http_get("/x5"), qr!200 OK.*param1=localhost!ms, 'params variable'); |
127 | 122 |
128 } | |
129 | |
130 # xslt and ranges | 123 # xslt and ranges |
131 | |
132 TODO: { | |
133 local $TODO = 'not yet' unless $t->has_version('1.19.2'); | |
134 | 124 |
135 unlike(http_get("/x1"), qr!Accept-Ranges!, 'no Accept-Ranges'); | 125 unlike(http_get("/x1"), qr!Accept-Ranges!, 'no Accept-Ranges'); |
136 like(http(<<EOF), qr!200 OK.*test xslt result!ms, 'no ranges'); | 126 like(http(<<EOF), qr!200 OK.*test xslt result!ms, 'no ranges'); |
137 GET /x1 HTTP/1.1 | 127 GET /x1 HTTP/1.1 |
138 Host: localhost | 128 Host: localhost |
139 Connection: close | 129 Connection: close |
140 Range: bytes=-10 | 130 Range: bytes=-10 |
141 | 131 |
142 EOF | 132 EOF |
143 | 133 |
144 } | |
145 | |
146 ############################################################################### | 134 ############################################################################### |