You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by sp...@apache.org on 2022/06/10 07:51:32 UTC
[apisix] branch master updated: test: remove unused required etcd (#7225)
This is an automated email from the ASF dual-hosted git repository.
spacewander 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 5bdab0767 test: remove unused required etcd (#7225)
5bdab0767 is described below
commit 5bdab07676e4c2130c5578949d1303be6c11ece0
Author: 罗泽轩 <sp...@gmail.com>
AuthorDate: Fri Jun 10 15:51:24 2022 +0800
test: remove unused required etcd (#7225)
They are introduced by Copy & Paste
Signed-off-by: spacewander <sp...@gmail.com>
---
t/admin/plugin-configs.t | 2 --
t/admin/proto.t | 4 ----
t/admin/stream-routes.t | 1 -
t/cli/test_main.sh | 1 +
t/plugin/grpc-transcode2.t | 2 --
t/xrpc/pingpong2.t | 1 -
t/xrpc/redis.t | 4 ----
t/xrpc/redis2.t | 1 -
8 files changed, 1 insertion(+), 15 deletions(-)
diff --git a/t/admin/plugin-configs.t b/t/admin/plugin-configs.t
index a98220376..1f0da8a2a 100644
--- a/t/admin/plugin-configs.t
+++ b/t/admin/plugin-configs.t
@@ -286,7 +286,6 @@ passed
location /t {
content_by_lua_block {
local t = require("lib.test_admin").test
- local etcd = require("apisix.core.etcd")
local code, body = t('/apisix/admin/plugin_configs/1',
ngx.HTTP_PUT,
[[{
@@ -413,7 +412,6 @@ passed
location /t {
content_by_lua_block {
local t = require("lib.test_admin").test
- local etcd = require("apisix.core.etcd")
local code, body = t('/apisix/admin/plugin_configs/1',
ngx.HTTP_PUT,
[[{
diff --git a/t/admin/proto.t b/t/admin/proto.t
index bab49c933..3a05a26df 100644
--- a/t/admin/proto.t
+++ b/t/admin/proto.t
@@ -43,7 +43,6 @@ __DATA__
location /t {
content_by_lua_block {
local t = require("lib.test_admin").test
- local etcd = require("apisix.core.etcd")
local code, message = t('/apisix/admin/proto/1',
ngx.HTTP_PUT,
[[{
@@ -89,7 +88,6 @@ __DATA__
location /t {
content_by_lua_block {
local t = require("lib.test_admin").test
- local etcd = require("apisix.core.etcd")
local code, message = t('/apisix/admin/proto/1',
ngx.HTTP_DELETE,
nil,
@@ -117,7 +115,6 @@ __DATA__
location /t {
content_by_lua_block {
local t = require("lib.test_admin").test
- local etcd = require("apisix.core.etcd")
local code, message = t('/apisix/admin/proto/2',
ngx.HTTP_PUT,
[[{
@@ -210,7 +207,6 @@ __DATA__
location /t {
content_by_lua_block {
local t = require("lib.test_admin").test
- local etcd = require("apisix.core.etcd")
local code, message = t('/apisix/admin/proto/1',
ngx.HTTP_PUT,
[[{
diff --git a/t/admin/stream-routes.t b/t/admin/stream-routes.t
index 6552165b5..01062fbc8 100644
--- a/t/admin/stream-routes.t
+++ b/t/admin/stream-routes.t
@@ -605,7 +605,6 @@ xrpc:
location /t {
content_by_lua_block {
local t = require("lib.test_admin").test
- local etcd = require("apisix.core.etcd")
for _, case in ipairs({
{input = {
name = "xxx",
diff --git a/t/cli/test_main.sh b/t/cli/test_main.sh
index 73202a8f3..ea54c53b8 100755
--- a/t/cli/test_main.sh
+++ b/t/cli/test_main.sh
@@ -705,6 +705,7 @@ fi
./bin/apisix stop
sleep 0.5
+rm logs/nginx.pid || true
# check no corresponding process
make run
diff --git a/t/plugin/grpc-transcode2.t b/t/plugin/grpc-transcode2.t
index e9c6c0396..7c8286650 100644
--- a/t/plugin/grpc-transcode2.t
+++ b/t/plugin/grpc-transcode2.t
@@ -41,7 +41,6 @@ __DATA__
location /t {
content_by_lua_block {
local t = require("lib.test_admin").test
- local etcd = require("apisix.core.etcd")
local code, body = t('/apisix/admin/proto/1',
ngx.HTTP_PUT,
[[{
@@ -136,7 +135,6 @@ Content-Type: application/json
location /t {
content_by_lua_block {
local t = require("lib.test_admin").test
- local etcd = require("apisix.core.etcd")
local code, body = t('/apisix/admin/proto/2',
ngx.HTTP_PUT,
[[{
diff --git a/t/xrpc/pingpong2.t b/t/xrpc/pingpong2.t
index cdcf367c2..fc77fa148 100644
--- a/t/xrpc/pingpong2.t
+++ b/t/xrpc/pingpong2.t
@@ -110,7 +110,6 @@ __DATA__
location /t {
content_by_lua_block {
local t = require("lib.test_admin").test
- local etcd = require("apisix.core.etcd")
local code, body = t('/apisix/admin/stream_routes/1',
ngx.HTTP_PUT,
{
diff --git a/t/xrpc/redis.t b/t/xrpc/redis.t
index 2d7c276c3..afb2f40e6 100644
--- a/t/xrpc/redis.t
+++ b/t/xrpc/redis.t
@@ -60,7 +60,6 @@ __DATA__
location /t {
content_by_lua_block {
local t = require("lib.test_admin").test
- local etcd = require("apisix.core.etcd")
local code, body = t('/apisix/admin/stream_routes/1',
ngx.HTTP_PUT,
{
@@ -265,7 +264,6 @@ hget animals: bark
location /t {
content_by_lua_block {
local t = require("lib.test_admin").test
- local etcd = require("apisix.core.etcd")
local code, body = t('/apisix/admin/stream_routes/1',
ngx.HTTP_PUT,
{
@@ -365,7 +363,6 @@ ok
location /t {
content_by_lua_block {
local t = require("lib.test_admin").test
- local etcd = require("apisix.core.etcd")
local code, body = t('/apisix/admin/stream_routes/1',
ngx.HTTP_PUT,
{
@@ -464,7 +461,6 @@ ok
location /t {
content_by_lua_block {
local t = require("lib.test_admin").test
- local etcd = require("apisix.core.etcd")
local code, body = t('/apisix/admin/stream_routes/1',
ngx.HTTP_PUT,
{
diff --git a/t/xrpc/redis2.t b/t/xrpc/redis2.t
index aad5c2fb8..65ca9829c 100644
--- a/t/xrpc/redis2.t
+++ b/t/xrpc/redis2.t
@@ -103,7 +103,6 @@ passed
location /t {
content_by_lua_block {
local t = require("lib.test_admin").test
- local etcd = require("apisix.core.etcd")
local code, body = t('/apisix/admin/stream_routes/1',
ngx.HTTP_PUT,
{