~ubuntu-branches/ubuntu/quantal/nginx/quantal-updates

« back to all changes in this revision

Viewing changes to debian/modules/nginx-echo/t/request-body.t

  • Committer: Bazaar Package Importer
  • Author(s): Kartik Mistry
  • Date: 2011-04-16 13:47:58 UTC
  • mfrom: (4.2.31 sid)
  • Revision ID: james.westby@ubuntu.com-20110416134758-yqca2qp5crh2hw2f
Tags: 1.0.0-2
* debian/rules:
  + Removed --with-file-aio support. Fixed FTBFS on kFreeBSD-* arch
    (Closes: #621882)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# vi:filetype=
 
2
 
 
3
use lib 'lib';
 
4
use Test::Nginx::Socket;
 
5
 
 
6
repeat_each(2);
 
7
 
 
8
plan tests => repeat_each() * 2 * blocks();
 
9
 
 
10
run_tests();
 
11
 
 
12
__DATA__
 
13
 
 
14
=== TEST 1: big client body buffered into temp files
 
15
--- config
 
16
    location /echo {
 
17
        client_body_buffer_size 1k;
 
18
        echo_read_request_body;
 
19
        echo_request_body;
 
20
    }
 
21
--- request eval
 
22
"POST /echo
 
23
" . 'a' x 4096 . 'end';
 
24
--- response_body eval
 
25
'a' x 4096 . 'end'
 
26