You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/02/03 05:52:26 UTC
[GitHub] [apisix] bisakhmondal commented on pull request #6242: fix(redirect-plugin): redirection loop behind a proxy or lb
bisakhmondal commented on pull request #6242:
URL: https://github.com/apache/apisix/pull/6242#issuecomment-1028625979
> @bisakhmondal Could you help @soham4abc to add a test for it?
Yes sure. @soham4abc we use test-nginx in APISIX for testing. You can find the docs here (https://github.com/apache/apisix/blob/master/docs/en/latest/internal/testing-framework.md)
Feel free to go through the existing redirect plugin tests here (https://github.com/apache/apisix/blob/master/t/plugin/redirect.t) and add a test case there. I can think of two options:
1. Treating the test suite endpoint itself as a proxy
2. Setup a mock HTTP route, that acts as a proxy to forward the request to the apisix test suite.
Totally up to you. Thank you!
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org