biakecw commented on PR #8219:
URL: https://github.com/apache/apisix/pull/8219#issuecomment-1318231389

   I successfully tested locally:
   -----request
   curl http://127.0.0.1:9180/apisix/admin/stream_routes/22 -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
   {
       "server_port": 9100,
       "upstream": {
           "type": "none",
           "nodes": {
               "192.168.31.170:6379": 1
           }
       },
       "protocol": {
           "name": "redis",
           "superior_id": "1",
           "conf": {
               "faults": [{
                   "commands": ["get", "ping"],
                   "delay": 5
               }]
           }
       }
   }
   '
   
   curl http://127.0.0.1:9180/apisix/admin/stream_routes/1 -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1' -X  DELETE
   -----
   -----response
   
{"key":"\/apisix\/stream_routes\/22","value":{"update_time":1668671546,"upstream":{"nodes":{"192.168.31.170:6379":1},"scheme":"http","type":"none","hash_on":"vars","pass_host":"pass"},"protocol":{"name":"redis","superior_id":"1","conf":{"faults":[{"delay":5,"commands":["get","ping"]}]}},"id":"22","create_time":1668668955,"server_port":9100}}
   /stream_routes/1 is referred by /apisix/stream_routes/22
   -----
   
   I didn't find the reason for the failure in stream_routes.t,please help to 
see what happened
   
   
   


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