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 2020/12/01 07:09:19 UTC
[GitHub] [apisix-dashboard] juzhiyuan commented on a change in pull request #859: feat: add a unit test for consumer and remove implicit init
juzhiyuan commented on a change in pull request #859:
URL: https://github.com/apache/apisix-dashboard/pull/859#discussion_r533114213
##########
File path: api/internal/handler/consumer/consumer_test.go
##########
@@ -248,16 +568,16 @@ func TestConsumer(t *testing.T) {
//create consumer fail
consumer_fail := &entity.Consumer{}
reqBody = `{
- "plugins": {
- "limit-count": {
- "count": 2,
- "time_window": 60,
- "rejected_code": 503,
- "key": "remote_addr"
- }
- },
- "desc": "test description"
- }`
+ "plugins": {
+ "limit-count": {
+ "count": 2,
+ "time_window": 60,
+ "rejected_code": 503,
+ "key": "remote_addr"
+ }
+ },
+ "desc": "test description"
Review comment:
json format
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org