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/11/26 02:56:21 UTC

[GitHub] [apisix-dashboard] idbeta commented on issue #568: [refactor][bug] bind params to struct error should response error with 400 status

idbeta commented on issue #568:
URL: https://github.com/apache/apisix-dashboard/issues/568#issuecomment-734043715


   ```testcase
   {
   			caseDesc: "create consumers with invalid format of label value",
   			Object:   MangerApiExpect(t),
   			Path:     "/apisix/admin/consumers",
   			Method:   http.MethodPost,
   			Body: `{
   				"username":"case_10",
   				"desc": "new consumer",
   				"labels": {
   				   "env": ["production", "release"]
   				}
   		   }`,
   			Headers:      map[string]string{"Authorization": token},
   			ExpectStatus: http.StatusBadRequest,
   		},
   ```


----------------------------------------------------------------
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