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

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Kartik Mistry, Kartik Mistry, Michael Lustfield
  • Date: 2011-11-18 23:44:00 UTC
  • mfrom: (4.2.39 sid)
  • Revision ID: package-import@ubuntu.com-20111118234400-atj8d0zog78vgdte
Tags: 1.1.8-1
[Kartik Mistry]
* New upstream release.
* debian/modules/chunkin-nginx-module:
  + Removed as of now, as it breaks with Perl 5.14 (Closes: #649061)

[Michael Lustfield]
* debian/control:
  + Added Map module to nginx-light modules list.
* debian/rules:
  + Removed --without-http_map_module form nginx-light.
* debian/nginx-common.install:
  + Changed ufw profile installation (LP: #825349).
    - debian/ufw.profile -> debian/ufw/nginx.
* debian/nginx-common.preinst:
  + Cleanup of moved nginx profile.
* debian/conf/nginx.conf:
  + Added a default map for $server_https (on|off).
* debian/conf/fastcgi_params:
  + Pass HTTPS so $_SERVER['HTTPS'] is set (LP: #857831).
* debian/conf/mime.types:
  + Added json type (LP: #883440).
* debian/conf/sites-available/default:
  + Added notes about PHP (Closes: #642995).
  + Changed location /doc from root to alias.
  + Changed location /doc to /doc/ for people that don't bother reading or
    learning anything about Nginx configuration files (LP: #840358).

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::Socket::Chunkin;
5
 
 
6
 
plan tests => repeat_each() * 2 * blocks();
7
 
 
8
 
#no_diff;
9
 
 
10
 
run_tests();
11
 
 
12
 
__DATA__
13
 
 
14
 
=== TEST 1: bad ext (missing leading ;)
15
 
--- config
16
 
    chunkin on;
17
 
    location /main {
18
 
        echo_request_body;
19
 
    }
20
 
--- more_headers
21
 
Transfer-Encoding: chunked
22
 
--- request eval
23
 
"POST /main
24
 
3 a=b\r
25
 
abc\r
26
 
0\r
27
 
\r
28
 
"
29
 
--- response_body_like: 400 Bad Request
30
 
--- error_code: 400
31
 
 
32
 
 
33
 
 
34
 
=== TEST 2: sanity
35
 
--- config
36
 
    chunkin on;
37
 
    location /main {
38
 
        echo_request_body;
39
 
    }
40
 
--- more_headers
41
 
Transfer-Encoding: chunked
42
 
--- request eval
43
 
"POST /main
44
 
3;a=b\r
45
 
abc\r
46
 
0\r
47
 
\r
48
 
"
49
 
--- response_body: abc
50
 
 
51
 
 
52
 
 
53
 
=== TEST 3: with spaces
54
 
--- config
55
 
    chunkin on;
56
 
    location /main {
57
 
        echo_request_body;
58
 
    }
59
 
--- more_headers
60
 
Transfer-Encoding: chunked
61
 
--- request eval
62
 
"POST /main
63
 
3 ;\t a\t = b\r
64
 
abc\r
65
 
0\r
66
 
\r
67
 
"
68
 
--- response_body: abc
69
 
 
70
 
 
71
 
 
72
 
=== TEST 4: ext with out val
73
 
--- config
74
 
    chunkin on;
75
 
    location /main {
76
 
        echo_request_body;
77
 
    }
78
 
--- more_headers
79
 
Transfer-Encoding: chunked
80
 
--- request eval
81
 
"POST /main
82
 
3 ;\t foo\t \r
83
 
abc\r
84
 
0\r
85
 
\r
86
 
"
87
 
--- response_body: abc
88
 
 
89
 
 
90
 
 
91
 
=== TEST 5: multiple exts
92
 
--- config
93
 
    chunkin on;
94
 
    location /main {
95
 
        echo_request_body;
96
 
    }
97
 
--- more_headers
98
 
Transfer-Encoding: chunked
99
 
--- request eval
100
 
"POST /main
101
 
3 ;\t foo = bar; blah = ".'"hello\\\"!"'."\t \r
102
 
abc\r
103
 
0\r
104
 
\r
105
 
"
106
 
--- response_body: abc
107