You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shenyu.apache.org by 陈龙 <ch...@foxmail.com> on 2021/07/03 12:26:55 UTC

回复:Task list of integrated tests Part 1

Hi Ming:


&nbsp; &nbsp;I will try 1.ratelimit&nbsp;




------------------&nbsp;原始邮件&nbsp;------------------
发件人:                                                                                                                        "dev"                                                                                    <mingflycash@gmail.com&gt;;
发送时间:&nbsp;2021年7月2日(星期五) 下午5:33
收件人:&nbsp;"dev"<dev@shenyu.apache.org&gt;;

主题:&nbsp;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&nbsp; 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&nbsp; 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

Re: Task list of integrated tests Part 1

Posted by XiaoYu <xi...@apache.org>.
good job

Zhenbing Feng <fe...@apache.org> 于2021年7月5日周一 上午10:31写道:

> I will try to finish the task   `Redirect plugin: An easy one, you could
> put test cases into
> integrated-test-http module too.`
>
> 陈龙 <ch...@foxmail.com> 于2021年7月3日周六 下午8:27写道:
>
> > Hi Ming:
> >
> >
> > &nbsp; &nbsp;I will try 1.ratelimit&nbsp;
> >
> >
> >
> >
> > ------------------&nbsp;原始邮件&nbsp;------------------
> > 发件人:
> >                                                   "dev"
> >                                                                 <
> > mingflycash@gmail.com&gt;;
> > 发送时间:&nbsp;2021年7月2日(星期五) 下午5:33
> > 收件人:&nbsp;"dev"<dev@shenyu.apache.org&gt;;
> >
> > 主题:&nbsp;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&nbsp; 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&nbsp; 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
>

Re: Task list of integrated tests Part 1

Posted by Zhenbing Feng <fe...@apache.org>.
I will try to finish the task   `Redirect plugin: An easy one, you could
put test cases into
integrated-test-http module too.`

陈龙 <ch...@foxmail.com> 于2021年7月3日周六 下午8:27写道:

> Hi Ming:
>
>
> &nbsp; &nbsp;I will try 1.ratelimit&nbsp;
>
>
>
>
> ------------------&nbsp;原始邮件&nbsp;------------------
> 发件人:
>                                                   "dev"
>                                                                 <
> mingflycash@gmail.com&gt;;
> 发送时间:&nbsp;2021年7月2日(星期五) 下午5:33
> 收件人:&nbsp;"dev"<dev@shenyu.apache.org&gt;;
>
> 主题:&nbsp;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&nbsp; 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&nbsp; 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