From c646583b8cb8fc671b57db41df6622810b7d0d30 Mon Sep 17 00:00:00 2001 From: chronolaw Date: Thu, 22 Aug 2024 16:42:19 +0800 Subject: [PATCH] update reload_flavor() --- spec/01-unit/19-hybrid/03-compat_spec.lua | 1 + spec/02-integration/05-proxy/01-proxy_spec.lua | 1 + spec/02-integration/05-proxy/06-ssl_spec.lua | 1 + spec/02-integration/05-proxy/10-balancer/06-stream_spec.lua | 1 + spec/02-integration/05-proxy/18-upstream_tls_spec.lua | 1 + spec/02-integration/05-proxy/19-grpc_proxy_spec.lua | 1 + spec/02-integration/05-proxy/21-grpc_plugins_triggering_spec.lua | 1 + spec/02-integration/05-proxy/23-context_spec.lua | 1 + spec/02-integration/05-proxy/26-udp_spec.lua | 1 + .../05-proxy/28-stream_plugins_triggering_spec.lua | 1 + 10 files changed, 10 insertions(+) diff --git a/spec/01-unit/19-hybrid/03-compat_spec.lua b/spec/01-unit/19-hybrid/03-compat_spec.lua index b2e16b07113..52d6ec83e25 100644 --- a/spec/01-unit/19-hybrid/03-compat_spec.lua +++ b/spec/01-unit/19-hybrid/03-compat_spec.lua @@ -650,6 +650,7 @@ describe("kong.clustering.compat", function() package.loaded["kong.db.schema.entities.routes"] = nil package.loaded["kong.db.schema.entities.routes_subschemas"] = nil package.loaded["spec.helpers"] = nil + package.loaded["spec.details.misc"] = nil package.loaded["kong.clustering.compat"] = nil package.loaded["kong.db.declarative"] = nil diff --git a/spec/02-integration/05-proxy/01-proxy_spec.lua b/spec/02-integration/05-proxy/01-proxy_spec.lua index 6192d3ab4e6..7a81e3b78e0 100644 --- a/spec/02-integration/05-proxy/01-proxy_spec.lua +++ b/spec/02-integration/05-proxy/01-proxy_spec.lua @@ -151,6 +151,7 @@ local function reload_router(flavor) helpers.setenv("KONG_ROUTER_FLAVOR", flavor) package.loaded["spec.helpers"] = nil + package.loaded["spec.details.misc"] = nil package.loaded["kong.global"] = nil package.loaded["kong.cache"] = nil package.loaded["kong.db"] = nil diff --git a/spec/02-integration/05-proxy/06-ssl_spec.lua b/spec/02-integration/05-proxy/06-ssl_spec.lua index 77030035441..ca85e0bac4a 100644 --- a/spec/02-integration/05-proxy/06-ssl_spec.lua +++ b/spec/02-integration/05-proxy/06-ssl_spec.lua @@ -43,6 +43,7 @@ local function reload_router(flavor) helpers.setenv("KONG_ROUTER_FLAVOR", flavor) package.loaded["spec.helpers"] = nil + package.loaded["spec.details.misc"] = nil package.loaded["kong.global"] = nil package.loaded["kong.cache"] = nil package.loaded["kong.db"] = nil diff --git a/spec/02-integration/05-proxy/10-balancer/06-stream_spec.lua b/spec/02-integration/05-proxy/10-balancer/06-stream_spec.lua index b898979d6ed..610a6914bd9 100644 --- a/spec/02-integration/05-proxy/10-balancer/06-stream_spec.lua +++ b/spec/02-integration/05-proxy/10-balancer/06-stream_spec.lua @@ -11,6 +11,7 @@ local function reload_router(flavor) helpers.setenv("KONG_ROUTER_FLAVOR", flavor) package.loaded["spec.helpers"] = nil + package.loaded["spec.details.misc"] = nil package.loaded["kong.global"] = nil package.loaded["kong.cache"] = nil package.loaded["kong.db"] = nil diff --git a/spec/02-integration/05-proxy/18-upstream_tls_spec.lua b/spec/02-integration/05-proxy/18-upstream_tls_spec.lua index 13789ccdaee..30c8eec05b0 100644 --- a/spec/02-integration/05-proxy/18-upstream_tls_spec.lua +++ b/spec/02-integration/05-proxy/18-upstream_tls_spec.lua @@ -84,6 +84,7 @@ local function reload_router(flavor) helpers.setenv("KONG_ROUTER_FLAVOR", flavor) package.loaded["spec.helpers"] = nil + package.loaded["spec.details.misc"] = nil package.loaded["kong.global"] = nil package.loaded["kong.cache"] = nil package.loaded["kong.db"] = nil diff --git a/spec/02-integration/05-proxy/19-grpc_proxy_spec.lua b/spec/02-integration/05-proxy/19-grpc_proxy_spec.lua index bc578ffd744..8523d6a0d86 100644 --- a/spec/02-integration/05-proxy/19-grpc_proxy_spec.lua +++ b/spec/02-integration/05-proxy/19-grpc_proxy_spec.lua @@ -15,6 +15,7 @@ local function reload_router(flavor) helpers.setenv("KONG_ROUTER_FLAVOR", flavor) package.loaded["spec.helpers"] = nil + package.loaded["spec.details.misc"] = nil package.loaded["kong.global"] = nil package.loaded["kong.cache"] = nil package.loaded["kong.db"] = nil diff --git a/spec/02-integration/05-proxy/21-grpc_plugins_triggering_spec.lua b/spec/02-integration/05-proxy/21-grpc_plugins_triggering_spec.lua index daaedb55d92..39f171e8cea 100644 --- a/spec/02-integration/05-proxy/21-grpc_plugins_triggering_spec.lua +++ b/spec/02-integration/05-proxy/21-grpc_plugins_triggering_spec.lua @@ -15,6 +15,7 @@ local function reload_router(flavor) helpers.setenv("KONG_ROUTER_FLAVOR", flavor) package.loaded["spec.helpers"] = nil + package.loaded["spec.details.misc"] = nil package.loaded["kong.global"] = nil package.loaded["kong.cache"] = nil package.loaded["kong.db"] = nil diff --git a/spec/02-integration/05-proxy/23-context_spec.lua b/spec/02-integration/05-proxy/23-context_spec.lua index f5e82e9e45e..bb97388e201 100644 --- a/spec/02-integration/05-proxy/23-context_spec.lua +++ b/spec/02-integration/05-proxy/23-context_spec.lua @@ -12,6 +12,7 @@ local function reload_router(flavor) helpers.setenv("KONG_ROUTER_FLAVOR", flavor) package.loaded["spec.helpers"] = nil + package.loaded["spec.details.misc"] = nil package.loaded["kong.global"] = nil package.loaded["kong.cache"] = nil package.loaded["kong.db"] = nil diff --git a/spec/02-integration/05-proxy/26-udp_spec.lua b/spec/02-integration/05-proxy/26-udp_spec.lua index f0e34293822..0941a6a12e3 100644 --- a/spec/02-integration/05-proxy/26-udp_spec.lua +++ b/spec/02-integration/05-proxy/26-udp_spec.lua @@ -14,6 +14,7 @@ local function reload_router(flavor) helpers.setenv("KONG_ROUTER_FLAVOR", flavor) package.loaded["spec.helpers"] = nil + package.loaded["spec.details.misc"] = nil package.loaded["kong.global"] = nil package.loaded["kong.cache"] = nil package.loaded["kong.db"] = nil diff --git a/spec/02-integration/05-proxy/28-stream_plugins_triggering_spec.lua b/spec/02-integration/05-proxy/28-stream_plugins_triggering_spec.lua index 3bab5d24f02..5e501477318 100644 --- a/spec/02-integration/05-proxy/28-stream_plugins_triggering_spec.lua +++ b/spec/02-integration/05-proxy/28-stream_plugins_triggering_spec.lua @@ -84,6 +84,7 @@ local function reload_router(flavor) helpers.setenv("KONG_ROUTER_FLAVOR", flavor) package.loaded["spec.helpers"] = nil + package.loaded["spec.details.misc"] = nil package.loaded["kong.global"] = nil package.loaded["kong.cache"] = nil package.loaded["kong.db"] = nil