I will try to finish the task `Redirect plugin: An easy one, you could put test cases into integrated-test-http module too.`
陈龙 <[email protected]> 于2021年7月3日周六 下午8:27写道: > 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
