Mercurial > hg > nginx-tests
comparison stream_ssl_variables.t @ 1032:43eedbfea090
Tests: add missing sni prerequisites.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Wed, 14 Sep 2016 19:55:29 +0300 |
parents | 882267679006 |
children | 8ef51dbb5d69 |
comparison
equal
deleted
inserted
replaced
1031:be45fa007655 | 1032:43eedbfea090 |
---|---|
38 my $ssl = Net::SSLeay::new($ctx) or die; | 38 my $ssl = Net::SSLeay::new($ctx) or die; |
39 Net::SSLeay::set_tlsext_host_name($ssl, 'example.org') == 1 or die; | 39 Net::SSLeay::set_tlsext_host_name($ssl, 'example.org') == 1 or die; |
40 }; | 40 }; |
41 plan(skip_all => 'Net::SSLeay with OpenSSL SNI support required') if $@; | 41 plan(skip_all => 'Net::SSLeay with OpenSSL SNI support required') if $@; |
42 | 42 |
43 my $t = Test::Nginx->new()->has(qw/stream stream_ssl stream_return/) | 43 my $t = Test::Nginx->new()->has(qw/stream stream_ssl sni stream_return/) |
44 ->has_daemon('openssl'); | 44 ->has_daemon('openssl'); |
45 | 45 |
46 $t->write_file_expand('nginx.conf', <<'EOF'); | 46 $t->write_file_expand('nginx.conf', <<'EOF'); |
47 | 47 |
48 %%TEST_GLOBALS%% | 48 %%TEST_GLOBALS%% |