Permalink
Browse files

added a test case for multiple user properties when using rds_json_ret.

  • Loading branch information...
1 parent 52bfd1c commit 8df7b6cbd54177ba0050933491821f2260c9fec8 @agentzh agentzh committed Sep 20, 2011
Showing with 16 additions and 0 deletions.
  1. +16 −0 t/property.t
View
@@ -370,3 +370,19 @@ GET /ret
--- response_body chomp
{"errcode":0,"errstr":"Zero errcode","ret":true,"city":"beijing"}
+
+
+=== TEST 20: rds_json_ret with multiple user properties
+--- http_config eval: $::http_config
+--- config
+ location /ret {
+ set $city 'beijing';
+ rds_json_user_property city $city;
+ rds_json_user_property '"hi"' '"hello\n"';
+ rds_json_ret 400 'Non zero ret';
+ }
+--- request
+GET /ret
+--- response_body chomp
+{"errcode":400,"errstr":"Non zero ret","city":"beijing","\"hi\"":"\"hello\n\""}
+

0 comments on commit 8df7b6c

Please sign in to comment.