Skip to content

Commit 253b29b

Browse files
committed
checked in t/bugs.t and updated .gitignore to ignore buildroot/.
1 parent 04183f1 commit 253b29b

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,4 @@ try.sh
6767
all.sh
6868
build9
6969
t/servroot/
70+
buildroot/

t/bugs.t

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# vi:filetype=
2+
3+
use lib 'lib';
4+
use Test::Nginx::Socket;
5+
6+
repeat_each(2);
7+
8+
plan tests => repeat_each() * (2 * blocks() + 2);
9+
10+
$ENV{TEST_NGINX_MEMCACHED_PORT} ||= 11211;
11+
12+
run_tests();
13+
14+
__DATA__
15+
16+
=== TEST 1: basic fetch
17+
--- config
18+
location /foo {
19+
default_type text/css;
20+
srcache_fetch GET /memc;
21+
srcache_store PUT /memc;
22+
23+
echo hello;
24+
}
25+
26+
location /memc {
27+
internal;
28+
29+
set $memc_key 'foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo';
30+
set $memc_exptime 300;
31+
memc_pass 127.0.0.1:$TEST_NGINX_MEMCACHED_PORT;
32+
}
33+
--- request
34+
GET /foo
35+
--- response_headers
36+
Content-Type: text/css
37+
Content-Length:
38+
--- response_body
39+
hello
40+
--- timeout: 15
41+

0 commit comments

Comments
 (0)