Mercurial > hg > nginx-tests
changeset 1145:f193664e06d8
Tests: remove unused http block in mail_ssl.t.
author | Andrey Zelenkov <zelenkov@nginx.com> |
---|---|
date | Wed, 01 Mar 2017 23:49:13 +0300 |
parents | 66c7dee0431c |
children | 2634d0ef48d3 |
files | mail_ssl.t |
diffstat | 1 files changed, 3 insertions(+), 22 deletions(-) [+] |
line wrap: on
line diff
--- a/mail_ssl.t Thu Mar 02 05:21:11 2017 +0300 +++ b/mail_ssl.t Wed Mar 01 23:49:13 2017 +0300 @@ -34,7 +34,7 @@ }; plan(skip_all => 'Net::SSLeay not installed') if $@; -my $t = Test::Nginx->new()->has(qw/mail mail_ssl imap pop3 http rewrite/) +my $t = Test::Nginx->new()->has(qw/mail mail_ssl imap pop3/) ->has_daemon('openssl')->plan(16); $t->write_file_expand('nginx.conf', <<'EOF'); @@ -54,8 +54,7 @@ # inherited by server "inherits" ssl_password_file password_mail; - proxy_pass_error_message on; - auth_http http://127.0.0.1:8080/mail/auth; + auth_http http://127.0.0.1:8080; # unused ssl_session_cache none; @@ -129,23 +128,6 @@ } } -http { - %%TEST_GLOBALS_HTTP%% - - server { - listen 127.0.0.1:8080; - server_name localhost; - - location = /mail/auth { - add_header Auth-Status OK; - add_header Auth-Server 127.0.0.1; - add_header Auth-Port %%PORT_8144%%; - add_header Auth-Wait 1; - return 204; - } - } -} - EOF $t->write_file('openssl.conf', <<EOF); @@ -176,8 +158,7 @@ $t->write_file('password_many', "wrong$CRLF" . "localhost$CRLF"); $t->write_file('password_mail', 'inherits'); -$t->run_daemon(\&Test::Nginx::IMAP::imap_test_daemon); -$t->run()->waitforsocket('127.0.0.1:' . port(8144)); +$t->run(); ###############################################################################