This is an automated email from the ASF dual-hosted git repository.

wenming pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new 536f547  test: removed temporary data. (#829)
536f547 is described below

commit 536f547df8b3a2457dfa73a18b7805caa55567c8
Author: YuanSheng Wang <membp...@gmail.com>
AuthorDate: Wed Nov 27 10:05:06 2019 +0800

    test: removed temporary data. (#829)
---
 t/node/upstream-domain.t | 56 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)

diff --git a/t/node/upstream-domain.t b/t/node/upstream-domain.t
index 5f15aa7..ca03a63 100644
--- a/t/node/upstream-domain.t
+++ b/t/node/upstream-domain.t
@@ -106,3 +106,59 @@ hello world
 [error]
 --- error_log eval
 qr/dns resolver domain: baidu.com to \d+.\d+.\d+.\d+/
+
+
+
+=== TEST 5: delete route
+--- config
+    location /t {
+        content_by_lua_block {
+            ngx.sleep(0.3)
+
+            local t = require("lib.test_admin").test
+            local code, body = t('/apisix/admin/routes/1',
+                ngx.HTTP_DELETE,
+                nil,
+                [[{"action": "delete"}]]
+            )
+
+            if code >= 300 then
+                ngx.status = code
+            end
+            ngx.say(body)
+        }
+    }
+--- request
+GET /t
+--- response_body
+passed
+--- no_error_log
+[error]
+
+
+
+=== TEST 6: delete upstream
+--- config
+    location /t {
+        content_by_lua_block {
+            ngx.sleep(0.3)
+
+            local t = require("lib.test_admin").test
+            local code, body = t('/apisix/admin/upstreams/1',
+                ngx.HTTP_DELETE,
+                nil,
+                [[{"action": "delete"}]]
+            )
+
+            if code >= 300 then
+                ngx.status = code
+            end
+            ngx.say(body)
+        }
+    }
+--- request
+GET /t
+--- response_body
+passed
+--- no_error_log
+[error]

Reply via email to