Mercurial > hg > nginx-tests
comparison 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 |
comparison
equal
deleted
inserted
replaced
1250:b708848eb49a | 1251:766bcbb632ee |
---|---|
93 | 93 |
94 } | 94 } |
95 | 95 |
96 like(http_get_auth('/', 'apr1', 'password'), qr!SEETHIS!, 'apr1 md5'); | 96 like(http_get_auth('/', 'apr1', 'password'), qr!SEETHIS!, 'apr1 md5'); |
97 like(http_get_auth('/', 'plain', 'password'), qr!SEETHIS!, 'plain password'); | 97 like(http_get_auth('/', 'plain', 'password'), qr!SEETHIS!, 'plain password'); |
98 | 98 like(http_get_auth('/', 'ssha', 'password'), qr!SEETHIS!, 'ssha'); |
99 SKIP: { | 99 like(http_get_auth('/', 'sha', 'password'), qr!SEETHIS!, 'sha'); |
100 # SHA1 may not be available unless we have OpenSSL | |
101 | |
102 skip 'no sha1', 2 unless $t->has_module('--with-http_ssl_module') | |
103 or $t->has_module('--with-sha1') | |
104 or $t->has_module('--with-openssl'); | |
105 | |
106 like(http_get_auth('/', 'ssha', 'password'), qr!SEETHIS!, 'ssha'); | |
107 like(http_get_auth('/', 'sha', 'password'), qr!SEETHIS!, 'sha'); | |
108 } | |
109 | 100 |
110 unlike(http_get_auth('/', 'apr1', '123'), qr!SEETHIS!, 'apr1 md5 wrong'); | 101 unlike(http_get_auth('/', 'apr1', '123'), qr!SEETHIS!, 'apr1 md5 wrong'); |
111 unlike(http_get_auth('/', 'plain', '123'), qr!SEETHIS!, 'plain wrong'); | 102 unlike(http_get_auth('/', 'plain', '123'), qr!SEETHIS!, 'plain wrong'); |
112 unlike(http_get_auth('/', 'ssha', '123'), qr!SEETHIS!, 'ssha wrong'); | 103 unlike(http_get_auth('/', 'ssha', '123'), qr!SEETHIS!, 'ssha wrong'); |
113 unlike(http_get_auth('/', 'sha', '123'), qr!SEETHIS!, 'sha wrong'); | 104 unlike(http_get_auth('/', 'sha', '123'), qr!SEETHIS!, 'sha wrong'); |