3 skip_models StreamResponseEpoll
4 req_curl_chunked_upload_err_check
6 t_plan
6 "rack.input client_max_body_size zero"
8 t_begin
"setup and startup" && {
9 rtmpfiles curl_out curl_err
11 ed
-s $unicorn_config <<EOF
12 ,s/client_max_body_size.*/client_max_body_size 0/
15 rainbows
-D sha1-random-size.ru
-c $unicorn_config
17 empty_sha1
=da39a3ee5e6b4b0d3255bfef95601890afd80709
20 t_begin
"regular request" && {
21 curl
-vsSf -H Expect
: http
://$listen/ > $curl_out 2> $curl_err
24 test x
"$(cat $curl_out)" = x
$empty_sha1
27 t_begin
"chunked request" && {
28 curl
-vsSf -T- < /dev
/null
-H Expect
: \
29 http
://$listen/ > $curl_out 2> $curl_err
32 test x
"$(cat $curl_out)" = x
$empty_sha1
35 t_begin
"small input chunked" && {
38 curl
-vsSf -T- -H Expect
: \
39 http
://$listen/ > $curl_out 2> $curl_err ||
> $ok
46 t_begin
"small input content-length" && {
49 curl
-vsSf -T $tmp -H Expect
: \
50 http
://$listen/ > $curl_out 2> $curl_err ||
> $ok
57 t_begin
"shutdown" && {