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



##########
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:
       @starsz ok, I will revert the styles here, as well as keep the same 
afterwards. Thanks.




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