~spuul/nginx/trunk

« back to all changes in this revision

Viewing changes to debian/modules/nginx-lua/t/072-conditional-get.t

  • Committer: Package Import Robot
  • Author(s): Christos Trochalakis, Christos Trochalakis
  • Date: 2014-02-13 11:41:49 UTC
  • mfrom: (1.3.32)
  • mto: This revision was merged to the branch mainline in revision 72.
  • Revision ID: package-import@ubuntu.com-20140213114149-tkp78c45rzu3wr6y
Tags: 1.4.5-1
[ Christos Trochalakis ]
* New upstream release.
* debian/modules/nginx-lua:
  + Update nginx-lua to v0.9.4
* debian/nginx-naxsi-ui.preinst:
  + Fix exit status issue (Closes: #735152)
* debian/control:
  + Fix arch:all to arch:any dependencies
  + Make nginx depend on specific flavor version
* debian/nginx-*.postinst:
  + Make nginx start by default (Closes: #735551)
* debian/nginx-*.prerm:
  + No need to check for invoke-rc.d,
    correctly set the exit code on error
* debian/nginx-common.nginx.init:
  + Rewrite some parts of the initscript
  + Introduce rotate command
  + Introduce upgrade command

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# vim:set ft= ts=4 sw=4 et fdm=marker:
2
2
use lib 'lib';
3
 
use Test::Nginx::Socket;
 
3
use Test::Nginx::Socket::Lua;
4
4
use t::StapThread;
5
5
 
6
6
our $GCScript = $t::StapThread::GCScript;
13
13
 
14
14
repeat_each(2);
15
15
 
16
 
plan tests => repeat_each() * (blocks() * 3 + 1);
 
16
plan tests => repeat_each() * (blocks() * 3 + 2);
17
17
 
18
18
#no_diff();
19
19
#no_long_string();
66
66
        #if_modified_since before;
67
67
        content_by_lua '
68
68
            ngx.header.last_modified = "Thu, 10 May 2012 07:50:48 GMT"
69
 
            ngx.say("hello")
 
69
            local ok, err = ngx.say("hello")
 
70
            if not ok then
 
71
                ngx.log(ngx.WARN, "say failed: ", err)
 
72
            end
70
73
        ';
71
74
    }
72
75
--- request
77
80
--- stap2 eval: $::StapScript
78
81
--- stap eval: $::GCScript
79
82
--- stap_out
80
 
terminate 1: fail
 
83
terminate 1: ok
81
84
delete thread 1
82
85
 
83
86
--- response_body_like: 412 Precondition Failed
84
87
--- error_code: 412
85
88
--- error_log
86
 
failed to send data through the output filters
 
89
say failed: nginx output filter error
 
90
--- no_error_log
 
91
[error]
87
92