Mercurial > hg > nginx-tests
comparison ssl.t @ 1100:52553ea2171c
Tests: fixed ssl.t when run in parallel.
author | Andrey Zelenkov <zelenkov@nginx.com> |
---|---|
date | Mon, 19 Dec 2016 17:48:01 +0300 |
parents | dd8f126afa32 |
children | 8ef51dbb5d69 |
comparison
equal
deleted
inserted
replaced
1099:dd3031bbc705 | 1100:52553ea2171c |
---|---|
237 | 237 |
238 like(get('/id', 8085), qr/^body \w{64}$/m, 'session id'); | 238 like(get('/id', 8085), qr/^body \w{64}$/m, 'session id'); |
239 unlike(http_get('/id'), qr/body \w/, 'session id no ssl'); | 239 unlike(http_get('/id'), qr/body \w/, 'session id no ssl'); |
240 like(get('/cipher', 8085), qr/^body [\w-]+$/m, 'cipher'); | 240 like(get('/cipher', 8085), qr/^body [\w-]+$/m, 'cipher'); |
241 | 241 |
242 $s = get_ssl_socket(undef, 8085); | 242 $s = get_ssl_socket(undef, port(8085)); |
243 like(http_get('/ciphers', socket => $s), qr/^body [:\w-]+$/m, 'ciphers'); | 243 like(http_get('/ciphers', socket => $s), qr/^body [:\w-]+$/m, 'ciphers'); |
244 | 244 |
245 like(get('/client_verify', 8085), qr/^body NONE$/m, 'client verify'); | 245 like(get('/client_verify', 8085), qr/^body NONE$/m, 'client verify'); |
246 like(get('/protocol', 8085), qr/^body (TLS|SSL)v(\d|\.)+$/m, 'protocol'); | 246 like(get('/protocol', 8085), qr/^body (TLS|SSL)v(\d|\.)+$/m, 'protocol'); |
247 like(cert('/issuer', 8085), qr!^body CN=issuer:/CN=issuer$!m, 'issuer'); | 247 like(cert('/issuer', 8085), qr!^body CN=issuer:/CN=issuer$!m, 'issuer'); |