~britco/nginx/nginx

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Dmitry E. Oboukhov
  • Date: 2011-11-24 14:16:50 UTC
  • mfrom: (4.2.40 sid)
  • Revision ID: package-import@ubuntu.com-20111124141650-4n06eynzekxycf6c
Tags: 1.1.8-2
* debian/modules/chunkin-nginx-module:
  + Reinclude HttpChunkin Module with new upstream version (closes: #638814)
* debian/control:
  + Add myself to uploaders list.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# vi:filetype=
 
2
 
 
3
use lib 't/lib';
 
4
 
 
5
my $skip_all;
 
6
 
 
7
BEGIN { $skip_all = 1; }
 
8
 
 
9
use Test::Nginx::Socket::Chunkin $skip_all ?
 
10
    (skip_all => 'too experimental to run the tests properly :P')
 
11
    : ();
 
12
 
 
13
plan tests => repeat_each() * 2 * blocks();
 
14
 
 
15
no_diff;
 
16
 
 
17
run_tests();
 
18
 
 
19
__DATA__
 
20
 
 
21
=== TEST 1: sanity
 
22
--- config
 
23
    chunkin on;
 
24
    location /main {
 
25
        chunkin_keepalive on;
 
26
        client_body_buffer_size    4;
 
27
        echo_request_body;
 
28
    }
 
29
    location /main2 {
 
30
        chunkin_keepalive on;
 
31
        client_body_buffer_size    4;
 
32
        echo_request_body;
 
33
    }
 
34
 
 
35
--- more_headers
 
36
Transfer-Encoding: chunked
 
37
--- pipelined_requests eval
 
38
[
 
39
"POST /main
 
40
5\r
 
41
hello\r
 
42
0\r
 
43
\r
 
44
",
 
45
"POST /main2
 
46
6\r
 
47
,world\r
 
48
0\r
 
49
\r
 
50
"]
 
51
--- response_body: hello,world
 
52
--- ONLY
 
53
 
 
54
 
 
55
 
 
56
=== TEST 2: standard body read
 
57
--- config
 
58
    chunkin on;
 
59
    location /main {
 
60
        client_body_buffer_size    4;
 
61
        echo_read_request_body;
 
62
        echo_request_body;
 
63
    }
 
64
--- more_headers
 
65
Content-Length: 5
 
66
--- pipelined_requests eval
 
67
[
 
68
"POST /main
 
69
hello",
 
70
"POST /main
 
71
world"]
 
72
--- response_body: helloworld
 
73