Yiyiyimu opened a new issue #1388:
URL: https://github.com/apache/apisix-dashboard/issues/1388


   The problem is actually about chaos test for apisix, but since it's more 
about a golang problem and it highly takes e2e test in apisix-dashboard for 
reference, so I think maybe I'll get more help here.
   
   #### Background
   
   To test if chaos effect qps of apisix, I try to visit a route in the same 
frequency, calculate ingress bandwidth per second from prometheus metrics, and 
then compare before and after the chaos take effect. Ref: 
https://github.com/apache/apisix/pull/3404 
   
   #### Problem
   
   The current implementation is using `httpexpect` to visit the route. While 
it's not satisfactory, since it would print one log each time a request sent so 
it would print a lot logs and make test log into a mess 
([commit](https://github.com/apache/apisix/pull/3404/commits/f2eb47702c3d12b2ef92b14bb626dc1626273f9f)
 and [messy log](https://github.com/apache/apisix/runs/1777055020#step:9:32)). 
So a bare HTTP get would be better.
   
   However for some reason, using bare `net/http` pkg to access the route would 
always return "404 Route not found", although the route is created, accessing 
the same URL with `httpexpect` could 
work([commit](https://github.com/apache/apisix/pull/3404/commits/d0ca10d461fd493311a265f5db53a6297ae0c8fe)).
 So the next check would fail, `getIngressBandwidthPerSecond` would return 0 
since no request succeeds (see [ci 
error](https://github.com/apache/apisix/pull/3404/checks?check_run_id=1776703854#step:9:33)).
   
   It would be great if anyone could help me out 🥺


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

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


Reply via email to