Mercurial > hg > nginx-tests
changeset 152:c9be30f65be7
Tests: various password schemes are in 1.0.3.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 01 Jun 2011 14:11:42 +0400 |
parents | 1c39b7edc593 |
children | 26cf61c5ac35 |
files | auth_basic.t |
diffstat | 1 files changed, 9 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/auth_basic.t Mon Apr 25 04:40:38 2011 +0400 +++ b/auth_basic.t Wed Jun 01 14:11:42 2011 +0400 @@ -75,12 +75,17 @@ like(http_get_auth('/', 'crypt1', 'password'), qr!SEETHIS!, 'crypt $1$ (md5)'); unlike(http_get_auth('/', 'crypt1', '123'), qr!SEETHIS!, 'crypt $1$ wrong'); -TODO: { -local $TODO = 'not yet'; - like(http_get_auth('/', 'apr1', 'password'), qr!SEETHIS!, 'apr1 md5'); like(http_get_auth('/', 'plain', 'password'), qr!SEETHIS!, 'plain password'); -like(http_get_auth('/', 'ssha', 'password'), qr!SEETHIS!, 'ssha'); + +SKIP: { + # SHA1 may not be available unless we have OpenSSL + + skip 'no sha1', 1 unless $t->has_module('--with-http_ssl_module') + or $t->has_module('--with-sha1') + or $t->has_module('--with-openssl'); + + like(http_get_auth('/', 'ssha', 'password'), qr!SEETHIS!, 'ssha'); } unlike(http_get_auth('/', 'apr1', '123'), qr!SEETHIS!, 'apr1 md5 wrong');