Mercurial > hg > nginx-tests
comparison proxy_upstream_cookie.t @ 568:907e89fba9c3
Tests: removed TODO and try_run() checks for legacy versions.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Sun, 03 May 2015 12:45:09 +0300 |
parents | 5eb0df61f371 |
children | e9064d691790 |
comparison
equal
deleted
inserted
replaced
567:22bade4c7e12 | 568:907e89fba9c3 |
---|---|
19 ############################################################################### | 19 ############################################################################### |
20 | 20 |
21 select STDERR; $| = 1; | 21 select STDERR; $| = 1; |
22 select STDOUT; $| = 1; | 22 select STDOUT; $| = 1; |
23 | 23 |
24 my $t = Test::Nginx->new()->has(qw/http proxy rewrite/); | 24 my $t = Test::Nginx->new()->has(qw/http proxy rewrite/)->plan(19); |
25 | 25 |
26 $t->write_file_expand('nginx.conf', <<'EOF'); | 26 $t->write_file_expand('nginx.conf', <<'EOF'); |
27 | 27 |
28 %%TEST_GLOBALS%% | 28 %%TEST_GLOBALS%% |
29 | 29 |
68 } | 68 } |
69 } | 69 } |
70 | 70 |
71 EOF | 71 EOF |
72 | 72 |
73 $t->try_run('no upstream_cookie_<name>')->plan(19); | 73 $t->run(); |
74 | 74 |
75 ############################################################################### | 75 ############################################################################### |
76 | 76 |
77 is(http_get_uc('tc='), undef, 'value_none'); | 77 is(http_get_uc('tc='), undef, 'value_none'); |
78 is(http_get_uc('tc=;'), undef, 'semicolon'); | 78 is(http_get_uc('tc=;'), undef, 'semicolon'); |