Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add check type of pop3 and imap, tag v0.19
- Loading branch information
Showing
5 changed files
with
280 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,48 @@ | |||
# | |||
#=============================================================================== | |||
# | |||
# FILE: imap_check.t | |||
# | |||
# DESCRIPTION: test | |||
# | |||
# FILES: --- | |||
# BUGS: --- | |||
# NOTES: --- | |||
# AUTHOR: Weibin Yao (http://yaoweibin.cn/), yaoweibin@gmail.com | |||
# COMPANY: | |||
# VERSION: 1.0 | |||
# CREATED: 03/02/2010 03:18:28 PM | |||
# REVISION: --- | |||
#=============================================================================== | |||
|
|||
|
|||
# vi:filetype=perl | |||
|
|||
use lib 'lib'; | |||
use Test::Nginx::LWP; | |||
|
|||
plan tests => repeat_each() * 2 * blocks(); | |||
|
|||
#no_diff; | |||
|
|||
run_tests(); | |||
|
|||
__DATA__ | |||
=== TEST 1: the imap_check | |||
--- config | |||
upstream test{ | |||
server imap.163.com:143; | |||
#ip_hash; | |||
check interval=3000 rise=2 fall=5 timeout=1000 type=imap; | |||
} | |||
server { | |||
listen 1982; | |||
proxy_pass test; | |||
} | |||
--- request | |||
GET / | |||
--- response_body_like: ^(.*)$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,48 @@ | |||
# | |||
#=============================================================================== | |||
# | |||
# FILE: pop3_check.t | |||
# | |||
# DESCRIPTION: test | |||
# | |||
# FILES: --- | |||
# BUGS: --- | |||
# NOTES: --- | |||
# AUTHOR: Weibin Yao (http://yaoweibin.cn/), yaoweibin@gmail.com | |||
# COMPANY: | |||
# VERSION: 1.0 | |||
# CREATED: 03/02/2010 03:18:28 PM | |||
# REVISION: --- | |||
#=============================================================================== | |||
|
|||
|
|||
# vi:filetype=perl | |||
|
|||
use lib 'lib'; | |||
use Test::Nginx::LWP; | |||
|
|||
plan tests => repeat_each() * 2 * blocks(); | |||
|
|||
#no_diff; | |||
|
|||
run_tests(); | |||
|
|||
__DATA__ | |||
=== TEST 1: the pop3_check | |||
--- config | |||
upstream test{ | |||
server pop3.163.com:110; | |||
#ip_hash; | |||
check interval=3000 rise=2 fall=5 timeout=1000 type=pop3; | |||
} | |||
server { | |||
listen 1982; | |||
proxy_pass test; | |||
} | |||
--- request | |||
GET / | |||
--- response_body_like: ^(.*)$ |