comparison auth_basic.t @ 317:a9621dbbd0d4

Tests: remove TODOs with 1.3.x version checks.
author Maxim Dounin <mdounin@mdounin.ru>
date Tue, 23 Jul 2013 20:25:05 +0400
parents d4d9bbe627a8
children d5b541a8cf95
comparison
equal deleted inserted replaced
316:f36c3532a117 317:a9621dbbd0d4
99 skip 'no sha1', 2 unless $t->has_module('--with-http_ssl_module') 99 skip 'no sha1', 2 unless $t->has_module('--with-http_ssl_module')
100 or $t->has_module('--with-sha1') 100 or $t->has_module('--with-sha1')
101 or $t->has_module('--with-openssl'); 101 or $t->has_module('--with-openssl');
102 102
103 like(http_get_auth('/', 'ssha', 'password'), qr!SEETHIS!, 'ssha'); 103 like(http_get_auth('/', 'ssha', 'password'), qr!SEETHIS!, 'ssha');
104
105 TODO: {
106 local $TODO = 'not yet' unless $t->has_version('1.3.13');
107 like(http_get_auth('/', 'sha', 'password'), qr!SEETHIS!, 'sha'); 104 like(http_get_auth('/', 'sha', 'password'), qr!SEETHIS!, 'sha');
108 }
109
110 } 105 }
111 106
112 unlike(http_get_auth('/', 'apr1', '123'), qr!SEETHIS!, 'apr1 md5 wrong'); 107 unlike(http_get_auth('/', 'apr1', '123'), qr!SEETHIS!, 'apr1 md5 wrong');
113 unlike(http_get_auth('/', 'plain', '123'), qr!SEETHIS!, 'plain wrong'); 108 unlike(http_get_auth('/', 'plain', '123'), qr!SEETHIS!, 'plain wrong');
114 unlike(http_get_auth('/', 'ssha', '123'), qr!SEETHIS!, 'ssha wrong'); 109 unlike(http_get_auth('/', 'ssha', '123'), qr!SEETHIS!, 'ssha wrong');