From 70c2fa9c74dbfc473dbe52689af54c303dba2772 Mon Sep 17 00:00:00 2001 From: chronolaw Date: Thu, 11 Jan 2024 18:24:37 +0800 Subject: [PATCH] remove paths added in #12261 --- spec/02-integration/01-helpers/01-helpers_spec.lua | 1 - spec/02-integration/05-proxy/02-router_spec.lua | 2 -- spec/02-integration/05-proxy/03-upstream_headers_spec.lua | 1 - spec/02-integration/05-proxy/14-server_tokens_spec.lua | 1 - spec/03-plugins/03-http-log/01-log_spec.lua | 2 -- spec/03-plugins/07-loggly/01-log_spec.lua | 1 - spec/03-plugins/13-cors/01-access_spec.lua | 1 - spec/03-plugins/25-oauth2/04-invalidations_spec.lua | 1 - spec/03-plugins/31-proxy-cache/02-access_spec.lua | 1 - 9 files changed, 11 deletions(-) diff --git a/spec/02-integration/01-helpers/01-helpers_spec.lua b/spec/02-integration/01-helpers/01-helpers_spec.lua index ccc0232afce..e267935e066 100644 --- a/spec/02-integration/01-helpers/01-helpers_spec.lua +++ b/spec/02-integration/01-helpers/01-helpers_spec.lua @@ -26,7 +26,6 @@ for _, strategy in helpers.each_strategy() do bp.routes:insert { hosts = { "mock_upstream" }, protocols = { "http" }, - paths = { "/" }, service = service } diff --git a/spec/02-integration/05-proxy/02-router_spec.lua b/spec/02-integration/05-proxy/02-router_spec.lua index 26ba41a4617..74d4f491bee 100644 --- a/spec/02-integration/05-proxy/02-router_spec.lua +++ b/spec/02-integration/05-proxy/02-router_spec.lua @@ -881,7 +881,6 @@ for _, strategy in helpers.each_strategy() do routes = insert_routes(bp, { { hosts = { "mock_upstream" }, - paths = { "/" }, }, }) end) @@ -1302,7 +1301,6 @@ for _, strategy in helpers.each_strategy() do routes = insert_routes(bp, { { protocols = { "https" }, - paths = { "/" }, snis = { "www.example.org" }, service = { name = "service_behind_www.example.org" diff --git a/spec/02-integration/05-proxy/03-upstream_headers_spec.lua b/spec/02-integration/05-proxy/03-upstream_headers_spec.lua index c78203d3b5f..3132d0a6bfd 100644 --- a/spec/02-integration/05-proxy/03-upstream_headers_spec.lua +++ b/spec/02-integration/05-proxy/03-upstream_headers_spec.lua @@ -278,7 +278,6 @@ for _, strategy in helpers.each_strategy() do assert(bp.routes:insert { hosts = { "headers-charset.test" }, - paths = { "/" }, service = service, }) diff --git a/spec/02-integration/05-proxy/14-server_tokens_spec.lua b/spec/02-integration/05-proxy/14-server_tokens_spec.lua index 3de5077db9d..6cee745a135 100644 --- a/spec/02-integration/05-proxy/14-server_tokens_spec.lua +++ b/spec/02-integration/05-proxy/14-server_tokens_spec.lua @@ -291,7 +291,6 @@ describe("headers [#" .. strategy .. "]", function() return function() bp.routes:insert { hosts = { "headers-inspect.test" }, - paths = { "/" }, } local service = bp.services:insert({ diff --git a/spec/03-plugins/03-http-log/01-log_spec.lua b/spec/03-plugins/03-http-log/01-log_spec.lua index 4a69c9b221d..55591eb85dd 100644 --- a/spec/03-plugins/03-http-log/01-log_spec.lua +++ b/spec/03-plugins/03-http-log/01-log_spec.lua @@ -59,7 +59,6 @@ for _, strategy in helpers.each_strategy() do local route1 = bp.routes:insert { hosts = { "http_logging.test" }, - paths = { "/" }, service = service1 } @@ -628,7 +627,6 @@ for _, strategy in helpers.each_strategy() do local route = bp.routes:insert { hosts = { "http_queue_logging.test" }, - paths = { "/" }, service = service } diff --git a/spec/03-plugins/07-loggly/01-log_spec.lua b/spec/03-plugins/07-loggly/01-log_spec.lua index 4987cbb1d9a..dd5e35a0199 100644 --- a/spec/03-plugins/07-loggly/01-log_spec.lua +++ b/spec/03-plugins/07-loggly/01-log_spec.lua @@ -19,7 +19,6 @@ for _, strategy in helpers.each_strategy() do local route1 = bp.routes:insert { hosts = { "logging.test" }, - paths = { "/" }, } local route2 = bp.routes:insert { diff --git a/spec/03-plugins/13-cors/01-access_spec.lua b/spec/03-plugins/13-cors/01-access_spec.lua index 42692a43089..7bba3a82ce8 100644 --- a/spec/03-plugins/13-cors/01-access_spec.lua +++ b/spec/03-plugins/13-cors/01-access_spec.lua @@ -237,7 +237,6 @@ for _, strategy in helpers.each_strategy() do local route1 = bp.routes:insert({ hosts = { "cors1.test" }, - paths = { "/" }, }) local route2 = bp.routes:insert({ diff --git a/spec/03-plugins/25-oauth2/04-invalidations_spec.lua b/spec/03-plugins/25-oauth2/04-invalidations_spec.lua index 18218b6cfdb..90f7b25bf85 100644 --- a/spec/03-plugins/25-oauth2/04-invalidations_spec.lua +++ b/spec/03-plugins/25-oauth2/04-invalidations_spec.lua @@ -43,7 +43,6 @@ for _, strategy in helpers.each_strategy() do route = assert(admin_api.routes:insert { hosts = { "oauth2.com" }, protocols = { "http", "https" }, - paths = { "/" }, service = service, }) diff --git a/spec/03-plugins/31-proxy-cache/02-access_spec.lua b/spec/03-plugins/31-proxy-cache/02-access_spec.lua index 67e026d9e32..aa8b350773d 100644 --- a/spec/03-plugins/31-proxy-cache/02-access_spec.lua +++ b/spec/03-plugins/31-proxy-cache/02-access_spec.lua @@ -38,7 +38,6 @@ do local route1 = assert(bp.routes:insert { hosts = { "route-1.test" }, - paths = { "/" }, }) local route2 = assert(bp.routes:insert { hosts = { "route-2.test" },