nic-chen commented on a change in pull request #1063:
URL: https://github.com/apache/apisix-dashboard/pull/1063#discussion_r548788419
##########
File path: api/test/e2e/id_compatible_test.go
##########
@@ -335,3 +335,73 @@ func TestID_Crossing(t *testing.T) {
testCaseCheck(tc, t)
}
}
+
+func TestID_Not_In_Body(t *testing.T) {
+ tests := []HttpTestCase{
+ {
+ caseDesc: "make sure the route is not created",
+ Object: APISIXExpect(t),
+ Method: http.MethodGet,
+ Path: "/hello",
+ ExpectStatus: http.StatusNotFound,
+ Sleep: sleepTime,
+ },
+ {
+ caseDesc: "create route that has no ID in request body
by admin api",
+ Object: APISIXExpect(t),
+ Method: http.MethodPut,
+ Path: "/apisix/admin/routes/r1",
Review comment:
added.
----------------------------------------------------------------
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:
[email protected]