Hi Ming??
I will try 1.ratelimit
------------------ ???????? ------------------
??????:
"dev"
<[email protected]>;
????????: 2021??7??2??(??????) ????5:33
??????: "dev"<[email protected]>;
????: Task list of integrated tests Part 1
Hi all,
Last night we discussed how to write new integrated tests, and here are
some task that you might be interested in:
1. ratelimit. Now there is only one test which tests sliding-window
algorithm for rate limit plugin under integrated-test-http module. And here
are more algorithms, like token bucket algorithm.
2. divide plugin. This is a little big hard to test this plugin. You could
put the tests into integrated-test-http module
3. Sign plugin: An easy one. You could put test cases into
integrated-test-http module
4. Redirect plugin: An easy one, you could put test cases into
integrated-test-http module too.
5. Logging plugin. Maybe not easy. You must check that the log was written.
And kindly remind that all tests must contain positive and negative cases.
For example, when you are testing rate limit, you must write at least two
test cases, normal case which means that the request will be processed and
abnormal case which means that the request will be rejected.
Please reply all when you want to help us to write the tests.
Thank you.
Ming