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

« back to all changes in this revision

Viewing changes to debian/modules/chunkin-nginx-module/t/max_chunks.t

  • Committer: Package Import Robot
  • Author(s): Kartik Mistry, Kartik Mistry
  • Date: 2011-09-26 10:17:04 UTC
  • mfrom: (4.2.38 sid)
  • Revision ID: package-import@ubuntu.com-20110926101704-x8pxngiujrmkxnn3
Tags: 1.1.4-2
[Kartik Mistry]
* debian/modules:
  + Updated nginx-upload-progress module, Thanks to upstream for fixing issue
    that FTBFS nginx on kFreeBSD-* archs.
  + Updated nginx-lua module to latest upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# vi:filetype=
 
2
 
 
3
use lib 't/lib';
 
4
use Test::Nginx::LWP::Chunkin;
 
5
 
 
6
plan tests => repeat_each() * 2 * blocks();
 
7
 
 
8
no_diff;
 
9
 
 
10
run_tests();
 
11
 
 
12
__DATA__
 
13
 
 
14
=== TEST 1: exceeding the default max chunks per buf setting (512)
 
15
--- config
 
16
    chunkin on;
 
17
    location /main {
 
18
        client_body_buffer_size 1m;
 
19
        echo_request_body;
 
20
    }
 
21
--- request
 
22
POST /main
 
23
--- chunked_body eval
 
24
[split //, 'a' x 1024]
 
25
--- response_body eval
 
26
'a' x 1024
 
27
 
 
28
 
 
29
 
 
30
=== TEST 2: NOT exceeding the custom max chunks per buf setting
 
31
--- config
 
32
    chunkin on;
 
33
    location /main {
 
34
        client_body_buffer_size 1m;
 
35
        chunkin_max_chunks_per_buf 1024;
 
36
        echo_request_body;
 
37
    }
 
38
--- request
 
39
POST /main
 
40
--- chunked_body eval
 
41
[split //, 'a' x 1024]
 
42
--- response_body eval
 
43
'a' x 1024
 
44
 
 
45
 
 
46
 
 
47
=== TEST 3: JUST exceeding the custom max chunks per buf setting
 
48
--- config
 
49
    chunkin on;
 
50
    location /main {
 
51
        client_body_buffer_size 1m;
 
52
        chunkin_max_chunks_per_buf 1024;
 
53
        echo_request_body;
 
54
    }
 
55
--- request
 
56
POST /main
 
57
--- chunked_body eval
 
58
[split //, 'a' x 1025]
 
59
--- response_body eval
 
60
'a' x 1025
 
61