3 t_plan
12 "OobGC test with limited path"
5 t_begin
"setup and start" && {
7 unicorn
-D -c $unicorn_config oob_gc_path.ru
11 t_begin
"test default is noop" && {
12 test xfalse
= x$
(curl
-vsSf http
://$listen/ 2>> $tmp)
13 test xfalse
= x$
(curl
-vsSf http
://$listen/ 2>> $tmp)
14 test xfalse
= x$
(curl
-vsSf http
://$listen/ 2>> $tmp)
15 test xfalse
= x$
(curl
-vsSf http
://$listen/ 2>> $tmp)
16 test xfalse
= x$
(curl
-vsSf http
://$listen/ 2>> $tmp)
17 test xfalse
= x$
(curl
-vsSf http
://$listen/ 2>> $tmp)
18 test xfalse
= x$
(curl
-vsSf http
://$listen/ 2>> $tmp)
19 test xfalse
= x$
(curl
-vsSf http
://$listen/ 2>> $tmp)
20 test xfalse
= x$
(curl
-vsSf http
://$listen/ 2>> $tmp)
23 t_begin
"4 bad requests to bump counter" && {
24 test xfalse
= x$
(curl
-vsSf http
://$listen/BAD
2>> $tmp)
25 test xfalse
= x$
(curl
-vsSf http
://$listen/BAD
2>> $tmp)
26 test xfalse
= x$
(curl
-vsSf http
://$listen/BAD
2>> $tmp)
27 test xfalse
= x$
(curl
-vsSf http
://$listen/BAD
2>> $tmp)
30 t_begin
"GC-starting request returns immediately" && {
31 test xfalse
= x$
(curl
-vsSf http
://$listen/BAD
2>> $tmp)
34 t_begin
"GC was started after 5 requests" && {
35 test xtrue
= x$
(curl
-vsSf http
://$listen/ 2>> $tmp)
38 t_begin
"reset GC" && {
39 test xfalse
= x$
(curl
-vsSf -X POST http
://$listen/gc_reset
2>> $tmp)
42 t_begin
"test default is noop" && {
43 test xfalse
= x$
(curl
-vsSf http
://$listen/ 2>> $tmp)
44 test xfalse
= x$
(curl
-vsSf http
://$listen/ 2>> $tmp)
45 test xfalse
= x$
(curl
-vsSf http
://$listen/ 2>> $tmp)
46 test xfalse
= x$
(curl
-vsSf http
://$listen/ 2>> $tmp)
47 test xfalse
= x$
(curl
-vsSf http
://$listen/ 2>> $tmp)
48 test xfalse
= x$
(curl
-vsSf http
://$listen/ 2>> $tmp)
49 test xfalse
= x$
(curl
-vsSf http
://$listen/ 2>> $tmp)
50 test xfalse
= x$
(curl
-vsSf http
://$listen/ 2>> $tmp)
51 test xfalse
= x$
(curl
-vsSf http
://$listen/ 2>> $tmp)
54 t_begin
"4 bad requests to bump counter" && {
55 test xfalse
= x$
(curl
-vsSf http
://$listen/BAD
2>> $tmp)
56 test xfalse
= x$
(curl
-vsSf http
://$listen/BAD
2>> $tmp)
57 test xfalse
= x$
(curl
-vsSf http
://$listen/BAD
2>> $tmp)
58 test xfalse
= x$
(curl
-vsSf http
://$listen/BAD
2>> $tmp)
61 t_begin
"GC-starting request returns immediately" && {
62 test xfalse
= x$
(curl
-vsSf http
://$listen/BAD
2>> $tmp)
65 t_begin
"GC was started after 5 requests" && {
66 test xtrue
= x$
(curl
-vsSf http
://$listen/ 2>> $tmp)
69 t_begin
"killing succeeds" && {
70 kill -QUIT $unicorn_pid
73 t_begin
"check_stderr" && check_stderr