Mercurial > hg > nginx-tests
comparison auth_basic.t @ 241:a01a53bcbf11
Tests: remove unneeded TODOs.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 26 Nov 2012 03:47:25 +0400 |
parents | 8d58b624a142 |
children | 6a0d934950bc |
comparison
equal
deleted
inserted
replaced
240:462d89f5732a | 241:a01a53bcbf11 |
---|---|
103 unlike(http_get_auth('/', 'apr1', '123'), qr!SEETHIS!, 'apr1 md5 wrong'); | 103 unlike(http_get_auth('/', 'apr1', '123'), qr!SEETHIS!, 'apr1 md5 wrong'); |
104 unlike(http_get_auth('/', 'plain', '123'), qr!SEETHIS!, 'plain wrong'); | 104 unlike(http_get_auth('/', 'plain', '123'), qr!SEETHIS!, 'plain wrong'); |
105 unlike(http_get_auth('/', 'ssha', '123'), qr!SEETHIS!, 'ssha wrong'); | 105 unlike(http_get_auth('/', 'ssha', '123'), qr!SEETHIS!, 'ssha wrong'); |
106 | 106 |
107 like(http_get_auth('/', 'apr12', '1'), qr!401 Unauthorized!, 'apr1 md5 broken'); | 107 like(http_get_auth('/', 'apr12', '1'), qr!401 Unauthorized!, 'apr1 md5 broken'); |
108 | |
109 SKIP: { | |
110 skip 'unsafe', 2 unless $ENV{TEST_NGINX_UNSAFE}; | |
111 local $TODO = 'not yet'; | |
112 | |
113 like(http_get_auth('/', 'ssha2', '1'), qr!401 Unauthorized!, 'ssha broken 1'); | 108 like(http_get_auth('/', 'ssha2', '1'), qr!401 Unauthorized!, 'ssha broken 1'); |
114 like(http_get_auth('/', 'ssha3', '1'), qr!401 Unauthorized!, 'ssha broken 2'); | 109 like(http_get_auth('/', 'ssha3', '1'), qr!401 Unauthorized!, 'ssha broken 2'); |
115 | |
116 } | |
117 | 110 |
118 ############################################################################### | 111 ############################################################################### |
119 | 112 |
120 sub http_get_auth { | 113 sub http_get_auth { |
121 my ($url, $user, $password) = @_; | 114 my ($url, $user, $password) = @_; |