comparison mirror_proxy.t @ 1381:97c8280de681

Tests: removed TODO and try_run() checks for legacy versions.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 08 Oct 2018 15:30:39 +0300
parents c0dbb94fa36c
children 8b7ab9245916
comparison
equal deleted inserted replaced
1380:f50c7d90f5c9 1381:97c8280de681
22 select STDERR; $| = 1; 22 select STDERR; $| = 1;
23 select STDOUT; $| = 1; 23 select STDOUT; $| = 1;
24 24
25 my $t = Test::Nginx->new()->has(qw/http proxy mirror rewrite limit_req/); 25 my $t = Test::Nginx->new()->has(qw/http proxy mirror rewrite limit_req/);
26 26
27 $t->write_file_expand('nginx.conf', <<'EOF'); 27 $t->write_file_expand('nginx.conf', <<'EOF')->plan(7);
28 28
29 %%TEST_GLOBALS%% 29 %%TEST_GLOBALS%%
30 30
31 daemon off; 31 daemon off;
32 32
79 } 79 }
80 } 80 }
81 81
82 EOF 82 EOF
83 83
84 $t->try_run('no mirror')->plan(7); 84 $t->run();
85 85
86 ############################################################################### 86 ###############################################################################
87 87
88 like(http_post('/'), qr/X-Body: 1234567890\x0d?$/m, 'mirror proxy'); 88 like(http_post('/'), qr/X-Body: 1234567890\x0d?$/m, 'mirror proxy');
89 like(http_post('/off'), qr/X-Body: 1234567890\x0d?$/m, 'mirror_request_body'); 89 like(http_post('/off'), qr/X-Body: 1234567890\x0d?$/m, 'mirror_request_body');