juzhiyuan commented on a change in pull request #1110:
URL: https://github.com/apache/apisix-dashboard/pull/1110#discussion_r548003100



##########
File path: api/test/e2e/route_with_management_fileds_test.go
##########
@@ -363,3 +363,75 @@ func TestRoute_search_by_label(t *testing.T) {
                testCaseCheck(tc)
        }
 }
+
+func TestRoute_With_Create_Time(t *testing.T) {
+       tests := []HttpTestCase{
+               {
+                       caseDesc: "create route with create_time",
+                       Object:   ManagerApiExpect(t),
+                       Path:     "/apisix/admin/routes/r1",
+                       Method:   http.MethodPut,
+                       Body: `{
+                               "uri": "/hello",
+                               "create_time": 1,
+                               "upstream": {
+                                       "nodes": {
+                                               "172.16.238.20:1980": 1
+                                       },
+                                       "type": "roundrobin"
+                               }
+                       }`,
+                       Headers:      map[string]string{"Authorization": token},
+                       ExpectStatus: http.StatusBadRequest,
+               },
+               {
+                       caseDesc: "create route with update_time",
+                       Object:   ManagerApiExpect(t),
+                       Path:     "/apisix/admin/routes/r1",
+                       Method:   http.MethodPut,
+                       Body: `{
+                               "uri": "/hello",
+                               "update_time": 1,

Review comment:
       🤣 not a good timestamp though it works.




----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to