shreemaan-abhishek commented on code in PR #9720:
URL: https://github.com/apache/apisix/pull/9720#discussion_r1258374265


##########
t/plugin/mocking.t:
##########
@@ -424,3 +424,44 @@ passed
 GET /hello
 --- response_body chomp
 empty_var:
+
+
+
+=== TEST 19: set route(return headers)
+--- config
+       location /t {
+           content_by_lua_block {
+               local t = require("lib.test_admin").test
+               local code, body = t('/apisix/admin/routes/1',
+                    ngx.HTTP_PUT,
+                    [[{
+                           "plugins": {
+                               "mocking": {
+                                   "response_example": "hello world",
+                                   "response_headers": {
+                                        "X-Apisix": "is-cool",
+                                        "X-Really":"yes"

Review Comment:
   > I don't think you are right.
   
   Well, you can give it a try on your local machine 😀 
   
   P.S.: I pushed a new commit that would demonstrate the addition of multiple 
values for a header.



##########
t/plugin/mocking.t:
##########
@@ -424,3 +424,44 @@ passed
 GET /hello
 --- response_body chomp
 empty_var:
+
+
+
+=== TEST 19: set route(return headers)
+--- config
+       location /t {
+           content_by_lua_block {
+               local t = require("lib.test_admin").test
+               local code, body = t('/apisix/admin/routes/1',
+                    ngx.HTTP_PUT,
+                    [[{
+                           "plugins": {
+                               "mocking": {
+                                   "response_example": "hello world",
+                                   "response_headers": {
+                                        "X-Apisix": "is-cool",
+                                        "X-Really":"yes"

Review Comment:
   > I don't think you are right.
   
   Well, you can give it a try on your local machine 😀 
   
   P.S.: I pushed a new commit that would demonstrate the addition of multiple 
values for a header.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to