~titusx/nginx/module-substitutions

« back to all changes in this revision

Viewing changes to test/t/subs_capture.t

  • Committer: Weibin Yao
  • Date: 2010-08-11 08:36:05 UTC
  • mfrom: (10.1.19)
  • Revision ID: git-v1:69c4c8dfe2c82aeabf8d6c5736b134c7dadaeb73
merge from the develop branch, r37


git-svn-id: http://substitutions4nginx.googlecode.com/svn/trunk@38 184bbb60-1f5e-11de-b650-e715bd6d7cf1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
# vi:filetype=perl
 
3
 
 
4
use lib 'lib';
 
5
use Test::Nginx::LWP;
 
6
 
 
7
plan tests => repeat_each() * 2 * blocks();
 
8
 
 
9
#no_diff;
 
10
 
 
11
run_tests();
 
12
 
 
13
__DATA__
 
14
 
 
15
=== TEST 1: the "regex with captures substitution" command
 
16
--- config
 
17
    location / {      
 
18
        subs_filter '163.(com)' 'yaoweibin.$1' ir;
 
19
        proxy_pass http://blog.163.com/;
 
20
    }
 
21
--- request
 
22
    GET /
 
23
--- response_body_unlike: ^(.*)163.com(.*)$