You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by we...@apache.org on 2020/12/18 00:31:04 UTC

[apisix] branch master updated: test: remove useless skywalking mock (#3066)

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/apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new 81c8d80  test: remove useless skywalking mock (#3066)
81c8d80 is described below

commit 81c8d806a352d6487bf49dde1a312ad10ded701f
Author: 罗泽轩 <sp...@gmail.com>
AuthorDate: Fri Dec 18 08:30:55 2020 +0800

    test: remove useless skywalking mock (#3066)
    
    Now we connect to real skywalking for test.
    
    Signed-off-by: spacewander <sp...@gmail.com>
---
 t/lib/server.lua | 26 --------------------------
 1 file changed, 26 deletions(-)

diff --git a/t/lib/server.lua b/t/lib/server.lua
index 6dae39b..e5edde9 100644
--- a/t/lib/server.lua
+++ b/t/lib/server.lua
@@ -157,32 +157,6 @@ function _M.with_header()
 end
 
 
-function _M.mock_skywalking_v2_service_register()
-    ngx.say('[{"key":"APISIX","value":1}]')
-end
-
-
-function _M.mock_skywalking_v2_instance_register()
-    ngx.req.read_body()
-    local data = ngx.req.get_body_data()
-    data = json_decode(data)
-    local key = data['instances'][1]['instanceUUID']
-    local ret = {}
-    ret[1] = {key = key, value = 1}
-    ngx.say(json_encode(ret))
-end
-
-
-function _M.mock_skywalking_v2_instance_heartbeat()
-    ngx.say('skywalking heartbeat ok')
-end
-
-
-function _M.mock_skywalking_v2_segments()
-    ngx.say('skywalking segments ok')
-end
-
-
 function _M.mock_zipkin()
     ngx.req.read_body()
     local data = ngx.req.get_body_data()