Mercurial > hg > nginx-tests
comparison mail_imap_ssl.t @ 568:907e89fba9c3
Tests: removed TODO and try_run() checks for legacy versions.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Sun, 03 May 2015 12:45:09 +0300 |
parents | 53d0d963eb40 |
children | b70df6924290 |
comparison
equal
deleted
inserted
replaced
567:22bade4c7e12 | 568:907e89fba9c3 |
---|---|
34 | 34 |
35 local $SIG{PIPE} = 'IGNORE'; | 35 local $SIG{PIPE} = 'IGNORE'; |
36 | 36 |
37 my $t = Test::Nginx->new() | 37 my $t = Test::Nginx->new() |
38 ->has(qw/mail mail_ssl imap http rewrite/)->has_daemon('openssl') | 38 ->has(qw/mail mail_ssl imap http rewrite/)->has_daemon('openssl') |
39 ->run_daemon(\&Test::Nginx::IMAP::imap_test_daemon) | 39 ->run_daemon(\&Test::Nginx::IMAP::imap_test_daemon)->plan(12) |
40 ->write_file_expand('nginx.conf', <<'EOF'); | 40 ->write_file_expand('nginx.conf', <<'EOF'); |
41 | 41 |
42 %%TEST_GLOBALS%% | 42 %%TEST_GLOBALS%% |
43 | 43 |
44 daemon off; | 44 daemon off; |
135 . "-out '$d/$name.crt' -keyout '$d/$name.key' " | 135 . "-out '$d/$name.crt' -keyout '$d/$name.key' " |
136 . ">>$d/openssl.out 2>&1") == 0 | 136 . ">>$d/openssl.out 2>&1") == 0 |
137 or die "Can't create certificate for $name: $!\n"; | 137 or die "Can't create certificate for $name: $!\n"; |
138 } | 138 } |
139 | 139 |
140 $t->try_run('no mail ssl')->plan(12); | 140 $t->run(); |
141 | 141 |
142 ############################################################################### | 142 ############################################################################### |
143 | 143 |
144 my $cred = encode_base64("\0test\@example.com\0secret", ''); | 144 my $cred = encode_base64("\0test\@example.com\0secret", ''); |
145 my %ssl = ( | 145 my %ssl = ( |