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

« back to all changes in this revision

Viewing changes to debian/modules/nginx-lua/t/024-access/exec.t

  • Committer: Bazaar Package Importer
  • Author(s): Michael Lustfield
  • Date: 2011-05-09 00:36:54 UTC
  • mfrom: (4.2.32 sid)
  • Revision ID: james.westby@ubuntu.com-20110509003654-ovgx2o0puujktwu6
Tags: 1.0.1-1
* New upstream release
* debian/rules:
  + Removed if surrounding copy of man/ as it is required for builds.
  + Added nginx-upload-progress to nginx-extras. (Closes: #618306)
  + Added nginx-secure-downloads to nginx-extras. (Closes: #622268)
  + Added --prefix to configure command. (Closes: #619482)
* debian/modules:
  + Added nginx-upload-progress/*.
  + Added nginx-secure-download/*.
  + Updated nginx-lua/*.
  + Updated versions.
* debian/control:
  + Added libmhash-dev build dependency.
  + Updated Standards-Version to 3.9.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
184
184
--- response_body
185
185
Hello 
186
186
 
 
187
 
 
188
 
 
189
=== TEST 10: exec after location capture
 
190
--- config
 
191
    location /test {
 
192
        rewrite_by_lua_file 'html/test.lua';
 
193
        echo world;
 
194
    }
 
195
 
 
196
    location /a {
 
197
        echo "hello";
 
198
    }
 
199
 
 
200
    location /b {
 
201
        echo "hello";
 
202
    }
 
203
 
 
204
--- user_files
 
205
>>> test.lua
 
206
ngx.location.capture('/a')
 
207
 
 
208
ngx.exec('/b')
 
209
--- request
 
210
    GET /test
 
211
--- response_body
 
212
hello
 
213
 
 
214
 
 
215
 
 
216
=== TEST 11: exec after (named) location capture
 
217
--- config
 
218
    location /test {
 
219
        content_by_lua_file 'html/test.lua';
 
220
    }
 
221
 
 
222
    location /a {
 
223
        echo "hello";
 
224
    }
 
225
 
 
226
    location @b {
 
227
        echo "hello";
 
228
    }
 
229
 
 
230
--- user_files
 
231
>>> test.lua
 
232
ngx.location.capture('/a')
 
233
 
 
234
ngx.exec('@b')
 
235
--- request
 
236
    GET /test
 
237
--- response_body
 
238
hello
 
239