Skip to content

Commit e9b3dd3

Browse files
committed
one more test.
1 parent c91fc0a commit e9b3dd3

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

test/t/drizzle-sub.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Content-Type: text/plain
7272
7373
7474
75-
=== TEST 2: basic fetch (cache hit)
75+
=== TEST 3: basic fetch (cache hit)
7676
--- http_config
7777
upstream backend {
7878
drizzle_server 127.0.0.1:$TEST_NGINX_MYSQL_PORT protocol=mysql

test/t/postgres-main.t

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,42 @@ Content-Type: text/css
9898
--- response_body chomp
9999
[{"id":2,"name":null},{"id":3,"name":"bob"}]
100100
101+
102+
103+
=== TEST 4: SSL packet issue (bug)
104+
--- ONLY
105+
--- http_config
106+
upstream backend {
107+
postgres_server 127.0.0.1:$TEST_NGINX_POSTGRESQL_PORT
108+
dbname=ngx_test user=ngx_test password=ngx_test;
109+
}
110+
--- config
111+
location /cats {
112+
srcache_fetch GET /memc $uri;
113+
srcache_store PUT /memc $uri;
114+
115+
default_type application/json;
116+
117+
postgres_escape $token $arg_token;
118+
postgres_escape $limit $arg_limit;
119+
postgres_pass backend;
120+
postgres_query HEAD GET "select $token,$limit";
121+
122+
rds_json on;
123+
}
124+
125+
location /memc {
126+
internal;
127+
128+
set $memc_key $query_string;
129+
set $memc_exptime 300;
130+
memc_pass 127.0.0.1:$TEST_NGINX_MEMCACHED_PORT;
131+
}
132+
--- request
133+
GET /cats?token=3&limit=10
134+
--- response_headers
135+
Content-Type: text/css
136+
--- response_body chomp
137+
[{"id":2,"name":null},{"id":3,"name":"bob"}]
138+
--- SKIP
139+

0 commit comments

Comments
 (0)