starsz commented on a change in pull request #1218:
URL: https://github.com/apache/apisix-dashboard/pull/1218#discussion_r553746543



##########
File path: api/test/e2e/global_rule_test.go
##########
@@ -282,3 +288,108 @@ func TestGlobalRule(t *testing.T) {
                testCaseCheck(tc, t)
        }
 }
+
+func TestGlobalRule_with_createtime_updatetime(t *testing.T) {
+       tests := []HttpTestCase{
+               {
+                       Desc:   "create global rule",
+                       Object: ManagerApiExpect(t),
+                       Path:   "/apisix/admin/global_rules/1",
+                       Method: http.MethodPut,
+                       Body: `{
+                                    "plugins": {
+                                          "response-rewrite": {
+                                            "headers": {
+                                                  "X-VERSION":"1.0"
+                                                }
+                                          },
+                                          "uri-blocker": {
+                                            "block_rules": 
["select.+(from|limit)", "(?:(union(.*?)select))"]
+                                          }
+                                        }
+                                  }`,

Review comment:
       Paste it into code is OK. Just make sure that we should use a table 
rather than space.
   Thanks a lot. 
   
   See other Code:
   
https://github.com/apache/apisix-dashboard/blob/40d8f97de8770187599ff5963617049603020e92/api/test/e2e/label_test.go#L56-L69




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


Reply via email to