liangliang4ward commented on issue #6408:
URL: https://github.com/apache/apisix/issues/6408#issuecomment-1047466015


   > You can refer to 
https://github.com/apache/apisix/blob/master/docs/en/latest/internal/testing-framework.md
   
   I know that..
   
   but when test case like `add route` occur error; I don't know how to do ..
   
   ```shell
   #   Failed test 'TEST 1: set route(id: 1) and available upstream and 
show_upstream_status_in_response_header: true - status code ok'
   #   at /usr/local/share/perl5/Test/Nginx/Socket.pm line 948.
   #          got: '500'
   #     expected: '200'
   
   #   Failed test 'TEST 1: set route(id: 1) and available upstream and 
show_upstream_status_in_response_header: true - response_body - response is 
expected (repeated req 0, req 0)'
   #   at /usr/local/share/perl5/Test/Nginx/Socket.pm line 1589.
   #          got: '<!DOCTYPE html>
   # <html>
   # <head>
   # <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
   # <meta content="utf-8" http-equiv="encoding">
   # <title>500 Internal Server Error</title>
   # <style>
   #     body {
   #         width: 35em;
   #         margin: 0 auto;
   #         font-family: Tahoma, Verdana, Arial, sans-serif;
   #     }
   # </style>
   # </head>
   # <body>
   # <h1>An error occurred.</h1>
   # <p>You can report issue to <a 
href="https://github.com/apache/apisix/issues";>APISIX</a></p>
   # <p><em>Faithfully yours, <a 
href="https://apisix.apache.org/";>APISIX</a>.</em></p>
   # </body>
   # </html>
   # '
   #     expected: 'passed
   # '
   ```


-- 
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