comparison referer.t @ 328:290d539efcb4

Tests: referer TODO adjusted.
author Sergey Kandaurov <pluknet@nginx.com>
date Thu, 29 Aug 2013 22:47:12 +0400
parents dacd55fa2cde
children 847ea345becb
comparison
equal deleted inserted replaced
327:dacd55fa2cde 328:290d539efcb4
137 ok(!valid('/wc', 'http://example.' . 'a' x 256), 'long hostname wildcard'); 137 ok(!valid('/wc', 'http://example.' . 'a' x 256), 'long hostname wildcard');
138 138
139 ok(valid('/long', 'http://' . 'a' x 255), 'long hostname 255'); 139 ok(valid('/long', 'http://' . 'a' x 255), 'long hostname 255');
140 140
141 TODO: { 141 TODO: {
142 local $TODO = 'not yet'; 142 local $TODO = 'not yet' unless $t->has_version('1.5.5');
143 143
144 ok(valid('/long', 'http://' . 'a' x 256), 'long hostname 256'); 144 ok(valid('/long', 'http://' . 'a' x 256), 'long hostname 256');
145 145
146 } 146 }
147 147
175 ok(valid('/sn', 'http://localHost'), 'server_names caseless'); 175 ok(valid('/sn', 'http://localHost'), 'server_names caseless');
176 ok(valid('/sn', 'http://localhost/uri'), 'server_names uri'); 176 ok(valid('/sn', 'http://localhost/uri'), 'server_names uri');
177 ok(valid('/sn', 'http://foobar'), 'server_names regex'); 177 ok(valid('/sn', 'http://foobar'), 'server_names regex');
178 178
179 TODO: { 179 TODO: {
180 local $TODO = 'not yet'; 180 local $TODO = 'not yet' unless $t->has_version('1.5.5');
181 181
182 ok(valid('/sn', 'http://foobAr'), 'server_names regex caseless'); 182 ok(valid('/sn', 'http://foobAr'), 'server_names regex caseless');
183 ok(valid('/sn', 'http://foobAr/uri'), 'server_names regex caseless uri'); 183 ok(valid('/sn', 'http://foobAr/uri'), 'server_names regex caseless uri');
184 ok(valid('/sn', 'http://anchoredre/uri'), 'server_names regex anchored'); 184 ok(valid('/sn', 'http://anchoredre/uri'), 'server_names regex anchored');
185 185
199 ok(valid('/', 'http://another', 'another'), 'server context'); 199 ok(valid('/', 'http://another', 'another'), 'server context');
200 200
201 # server_name below valid_referers 201 # server_name below valid_referers
202 202
203 TODO: { 203 TODO: {
204 local $TODO = 'not yet'; 204 local $TODO = 'not yet' unless $t->has_version('1.5.5');
205 205
206 ok(valid('/', 'http://below', 'below'), 'server below'); 206 ok(valid('/', 'http://below', 'below'), 'server below');
207 207
208 } 208 }
209 209