Mercurial > hg > nginx-tests
diff auth_basic.t @ 1251:766bcbb632ee
Tests: removed TODO and try_run() checks for legacy versions.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Fri, 24 Nov 2017 19:58:40 +0300 |
parents | 882267679006 |
children | 53a801bf4d0b |
line wrap: on
line diff
--- a/auth_basic.t Thu Nov 23 14:42:47 2017 +0300 +++ b/auth_basic.t Fri Nov 24 19:58:40 2017 +0300 @@ -95,17 +95,8 @@ like(http_get_auth('/', 'apr1', 'password'), qr!SEETHIS!, 'apr1 md5'); like(http_get_auth('/', 'plain', 'password'), qr!SEETHIS!, 'plain password'); - -SKIP: { - # SHA1 may not be available unless we have OpenSSL - - skip 'no sha1', 2 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'); - like(http_get_auth('/', 'sha', 'password'), qr!SEETHIS!, 'sha'); -} +like(http_get_auth('/', 'ssha', 'password'), qr!SEETHIS!, 'ssha'); +like(http_get_auth('/', 'sha', 'password'), qr!SEETHIS!, 'sha'); unlike(http_get_auth('/', 'apr1', '123'), qr!SEETHIS!, 'apr1 md5 wrong'); unlike(http_get_auth('/', 'plain', '123'), qr!SEETHIS!, 'plain wrong');