e2e: ratelimit test not rely on the count of request#8472
e2e: ratelimit test not rely on the count of request#8472zirain merged 3 commits intoenvoyproxy:mainfrom
Conversation
Signed-off-by: zirain <zirain2009@gmail.com>
✅ Deploy Preview for cerulean-figolla-1f9435 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8472 +/- ##
==========================================
- Coverage 74.13% 74.12% -0.02%
==========================================
Files 242 242
Lines 37579 37603 +24
==========================================
+ Hits 27859 27873 +14
- Misses 7778 7785 +7
- Partials 1942 1945 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
rudrakhp
left a comment
There was a problem hiding this comment.
Is it a proper E2E without checking request count? If we expect rate limit config to work and just expect it to be there in the proxy, why not simply verify existence of rate limit header? So only MakeRequestAndExpectEventuallyConsistentResponseExceptErrors call is sufficient?
|
rudrakhp
left a comment
There was a problem hiding this comment.
I guess its better to check 429 behavior, but I am still not sure if disregarding count for rate limit tests will be fine for a proper e2e. I am ok with having this before we have a better solution.
@envoyproxy/gateway-maintainers wdyt?
Signed-off-by: zirain <zirain2009@gmail.com>
fixes: #8360 #8419