diff --git a/spec/02-integration/02-cmd/03-reload_spec.lua b/spec/02-integration/02-cmd/03-reload_spec.lua index 884ed2fddb4b..7a2baa91346a 100644 --- a/spec/02-integration/02-cmd/03-reload_spec.lua +++ b/spec/02-integration/02-cmd/03-reload_spec.lua @@ -95,7 +95,7 @@ describe("kong reload #" .. strategy, function() helpers.clean_prefix() end) after_each(function() - helpers.stop_kong(nil, true) + helpers.stop_kong() end) it("send a 'reload' signal to a running Nginx master process", function() @@ -651,7 +651,7 @@ describe("key-auth plugin invalidation on dbless reload #off", function() finally(function() os.remove(yaml_file) - helpers.stop_kong(helpers.test_conf.prefix, true) + helpers.stop_kong(helpers.test_conf.prefix) if admin_client then admin_client:close() end diff --git a/spec/02-integration/04-admin_api/03-consumers_routes_spec.lua b/spec/02-integration/04-admin_api/03-consumers_routes_spec.lua index ad683254edab..63b14ecd57a0 100644 --- a/spec/02-integration/04-admin_api/03-consumers_routes_spec.lua +++ b/spec/02-integration/04-admin_api/03-consumers_routes_spec.lua @@ -46,7 +46,7 @@ describe("Admin API (#" .. strategy .. "): ", function() end) lazy_teardown(function() - helpers.stop_kong(nil, true) + helpers.stop_kong() end) before_each(function() diff --git a/spec/02-integration/04-admin_api/04-plugins_routes_spec.lua b/spec/02-integration/04-admin_api/04-plugins_routes_spec.lua index 549e259f8ad0..d00d959abcbc 100644 --- a/spec/02-integration/04-admin_api/04-plugins_routes_spec.lua +++ b/spec/02-integration/04-admin_api/04-plugins_routes_spec.lua @@ -24,7 +24,7 @@ for _, strategy in helpers.each_strategy() do end) lazy_teardown(function() - helpers.stop_kong(nil, true) + helpers.stop_kong() end) before_each(function() diff --git a/spec/02-integration/04-admin_api/09-routes_routes_spec.lua b/spec/02-integration/04-admin_api/09-routes_routes_spec.lua index 61bfab0301ab..54c0ace061c2 100644 --- a/spec/02-integration/04-admin_api/09-routes_routes_spec.lua +++ b/spec/02-integration/04-admin_api/09-routes_routes_spec.lua @@ -35,7 +35,7 @@ for _, strategy in helpers.each_strategy() do end) lazy_teardown(function() - helpers.stop_kong(nil, true) + helpers.stop_kong() end) before_each(function() @@ -1909,7 +1909,7 @@ for _, strategy in helpers.each_strategy() do end) lazy_teardown(function() - helpers.stop_kong(nil, true) + helpers.stop_kong() end) before_each(function() diff --git a/spec/02-integration/04-admin_api/10-services_routes_spec.lua b/spec/02-integration/04-admin_api/10-services_routes_spec.lua index e55e98004a19..4c4a114596f7 100644 --- a/spec/02-integration/04-admin_api/10-services_routes_spec.lua +++ b/spec/02-integration/04-admin_api/10-services_routes_spec.lua @@ -35,7 +35,7 @@ for _, strategy in helpers.each_strategy() do end) lazy_teardown(function() - helpers.stop_kong(nil, true) + helpers.stop_kong() end) before_each(function() diff --git a/spec/02-integration/04-admin_api/15-off_spec.lua b/spec/02-integration/04-admin_api/15-off_spec.lua index cd4b4fed1173..b8fcc5bc4d02 100644 --- a/spec/02-integration/04-admin_api/15-off_spec.lua +++ b/spec/02-integration/04-admin_api/15-off_spec.lua @@ -34,7 +34,7 @@ describe("Admin API #off", function() end) lazy_teardown(function() - helpers.stop_kong(nil, true) + helpers.stop_kong() end) before_each(function() @@ -870,7 +870,7 @@ describe("Admin API (concurrency tests) #off", function() end) after_each(function() - helpers.stop_kong(nil, true) + helpers.stop_kong() if client then client:close() @@ -991,7 +991,7 @@ describe("Admin API #off with Unique Foreign #unique", function() end) lazy_teardown(function() - helpers.stop_kong(nil, true) + helpers.stop_kong() end) before_each(function() @@ -1123,7 +1123,7 @@ describe("Admin API #off worker_consistency=eventual", function() end) lazy_teardown(function() - helpers.stop_kong(nil, true) + helpers.stop_kong() end) before_each(function() diff --git a/spec/02-integration/04-admin_api/17-foreign-entity_spec.lua b/spec/02-integration/04-admin_api/17-foreign-entity_spec.lua index 928da9c6923a..8481033b3bc4 100644 --- a/spec/02-integration/04-admin_api/17-foreign-entity_spec.lua +++ b/spec/02-integration/04-admin_api/17-foreign-entity_spec.lua @@ -51,7 +51,7 @@ for _, strategy in helpers.each_strategy() do end) lazy_teardown(function() - helpers.stop_kong(nil, true) + helpers.stop_kong() end) before_each(function() diff --git a/spec/02-integration/04-admin_api/18-worker-events.lua b/spec/02-integration/04-admin_api/18-worker-events.lua index ce1a2d5e52f5..122a644093cf 100644 --- a/spec/02-integration/04-admin_api/18-worker-events.lua +++ b/spec/02-integration/04-admin_api/18-worker-events.lua @@ -55,7 +55,7 @@ for _, strategy in helpers.each_strategy() do end) lazy_teardown(function() - helpers.stop_kong(nil, true) + helpers.stop_kong() end) before_each(function() diff --git a/spec/02-integration/04-admin_api/19-vaults_spec.lua b/spec/02-integration/04-admin_api/19-vaults_spec.lua index bb27fed6d2af..664ca5864ae5 100644 --- a/spec/02-integration/04-admin_api/19-vaults_spec.lua +++ b/spec/02-integration/04-admin_api/19-vaults_spec.lua @@ -21,7 +21,7 @@ for _, strategy in helpers.each_strategy() do end) lazy_teardown(function() - helpers.stop_kong(nil, true) + helpers.stop_kong() end) before_each(function() diff --git a/spec/02-integration/04-admin_api/21-truncated_arguments_spec.lua b/spec/02-integration/04-admin_api/21-truncated_arguments_spec.lua index 03d342edaf3d..3a4071642b27 100644 --- a/spec/02-integration/04-admin_api/21-truncated_arguments_spec.lua +++ b/spec/02-integration/04-admin_api/21-truncated_arguments_spec.lua @@ -18,7 +18,7 @@ for _, strategy in helpers.each_strategy() do end) lazy_teardown(function() - helpers.stop_kong(nil, true) + helpers.stop_kong() end) before_each(function() diff --git a/spec/02-integration/05-proxy/04-plugins_triggering_spec.lua b/spec/02-integration/05-proxy/04-plugins_triggering_spec.lua index e0384f0c2e6e..84b082e89165 100644 --- a/spec/02-integration/05-proxy/04-plugins_triggering_spec.lua +++ b/spec/02-integration/05-proxy/04-plugins_triggering_spec.lua @@ -231,7 +231,7 @@ for _, strategy in helpers.each_strategy() do lazy_teardown(function() if proxy_client then proxy_client:close() end - helpers.stop_kong(nil, true) + helpers.stop_kong() end) it("checks global configuration without credentials", function() @@ -312,7 +312,7 @@ for _, strategy in helpers.each_strategy() do proxy_client:close() end - helpers.stop_kong(nil, true) + helpers.stop_kong() db:truncate("routes") db:truncate("services") db:truncate("consumers") @@ -405,7 +405,7 @@ for _, strategy in helpers.each_strategy() do os.remove(FILE_LOG_PATH) - helpers.stop_kong(nil, true) + helpers.stop_kong() end) before_each(function() @@ -516,7 +516,7 @@ for _, strategy in helpers.each_strategy() do proxy_client:close() end - helpers.stop_kong(nil, true) + helpers.stop_kong() db:truncate("routes") db:truncate("services") @@ -563,7 +563,7 @@ for _, strategy in helpers.each_strategy() do proxy_client:close() end - helpers.stop_kong(nil, true) + helpers.stop_kong() end) it("runs without causing an internal error", function() @@ -712,7 +712,7 @@ for _, strategy in helpers.each_strategy() do lazy_teardown(function() helpers.stop_kong("servroot2") - helpers.stop_kong(nil, true) + helpers.stop_kong() end) @@ -1073,7 +1073,7 @@ for _, strategy in helpers.each_strategy() do proxy_client:close() end - helpers.stop_kong(nil, true) + helpers.stop_kong() end) it("is executed", function() @@ -1147,7 +1147,7 @@ for _, strategy in helpers.each_strategy() do admin_client:close() end - helpers.stop_kong(nil, true) + helpers.stop_kong() end) it("is executed", function() @@ -1227,7 +1227,7 @@ for _, strategy in helpers.each_strategy() do end) lazy_teardown(function() - helpers.stop_kong(nil, true) + helpers.stop_kong() end) it("certificate phase clears context, fix #7054", function() diff --git a/spec/02-integration/05-proxy/09-websockets_spec.lua b/spec/02-integration/05-proxy/09-websockets_spec.lua index b88b6b788f50..a70d8a4c5859 100644 --- a/spec/02-integration/05-proxy/09-websockets_spec.lua +++ b/spec/02-integration/05-proxy/09-websockets_spec.lua @@ -42,7 +42,7 @@ for _, strategy in helpers.each_strategy() do end) lazy_teardown(function() - helpers.stop_kong(nil, true) + helpers.stop_kong() end) local function open_socket(uri) diff --git a/spec/02-integration/05-proxy/11-handler_spec.lua b/spec/02-integration/05-proxy/11-handler_spec.lua index fbd048b2a5b9..ec374a65804c 100644 --- a/spec/02-integration/05-proxy/11-handler_spec.lua +++ b/spec/02-integration/05-proxy/11-handler_spec.lua @@ -43,7 +43,7 @@ for _, strategy in helpers.each_strategy() do lazy_teardown(function() if admin_client then admin_client:close() end - helpers.stop_kong(nil, true) + helpers.stop_kong() end) it("runs", function() @@ -101,7 +101,7 @@ for _, strategy in helpers.each_strategy() do lazy_teardown(function() if admin_client then admin_client:close() end - helpers.stop_kong(nil, true) + helpers.stop_kong() end) it("doesn't run", function() @@ -175,7 +175,7 @@ for _, strategy in helpers.each_strategy() do lazy_teardown(function() if admin_client then admin_client:close() end - helpers.stop_kong(nil, true) + helpers.stop_kong() end) it("doesn't run", function() diff --git a/spec/02-integration/05-proxy/13-error_handlers_spec.lua b/spec/02-integration/05-proxy/13-error_handlers_spec.lua index d63f43daf9d2..fd78481ee1cc 100644 --- a/spec/02-integration/05-proxy/13-error_handlers_spec.lua +++ b/spec/02-integration/05-proxy/13-error_handlers_spec.lua @@ -11,7 +11,7 @@ describe("Proxy error handlers", function() end) lazy_teardown(function() - helpers.stop_kong(nil, true) + helpers.stop_kong() end) before_each(function() diff --git a/spec/02-integration/05-proxy/25-upstream_keepalive_spec.lua b/spec/02-integration/05-proxy/25-upstream_keepalive_spec.lua index 1848d9d4eb6b..eda46e12408e 100644 --- a/spec/02-integration/05-proxy/25-upstream_keepalive_spec.lua +++ b/spec/02-integration/05-proxy/25-upstream_keepalive_spec.lua @@ -104,7 +104,7 @@ describe("#postgres upstream keepalive", function() proxy_client:close() end - helpers.stop_kong(nil, true) + helpers.stop_kong() end) diff --git a/spec/02-integration/06-invalidations/02-core_entities_invalidations_spec.lua b/spec/02-integration/06-invalidations/02-core_entities_invalidations_spec.lua index c570665dc5e5..eb670e8f3751 100644 --- a/spec/02-integration/06-invalidations/02-core_entities_invalidations_spec.lua +++ b/spec/02-integration/06-invalidations/02-core_entities_invalidations_spec.lua @@ -88,8 +88,8 @@ for _, strategy in helpers.each_strategy() do end) lazy_teardown(function() - helpers.stop_kong("servroot1", true) - helpers.stop_kong("servroot2", true) + helpers.stop_kong("servroot1") + helpers.stop_kong("servroot2") end) before_each(function() @@ -1110,8 +1110,8 @@ for _, strategy in helpers.each_strategy() do end) lazy_teardown(function() - helpers.stop_kong("servroot1", true) - helpers.stop_kong("servroot2", true) + helpers.stop_kong("servroot1") + helpers.stop_kong("servroot2") end) before_each(function() @@ -1256,8 +1256,8 @@ for _, strategy in helpers.each_strategy() do end) lazy_teardown(function() - helpers.stop_kong("servroot1", true) - helpers.stop_kong("servroot2", true) + helpers.stop_kong("servroot1") + helpers.stop_kong("servroot2") end) before_each(function() diff --git a/spec/02-integration/11-dbless/01-respawn_spec.lua b/spec/02-integration/11-dbless/01-respawn_spec.lua index 2c2065f31fe0..7fdf287e0f32 100644 --- a/spec/02-integration/11-dbless/01-respawn_spec.lua +++ b/spec/02-integration/11-dbless/01-respawn_spec.lua @@ -13,7 +13,7 @@ describe("worker respawn", function() end) lazy_teardown(function() - helpers.stop_kong(nil, true) + helpers.stop_kong() end) before_each(function() diff --git a/spec/02-integration/11-dbless/02-workers_spec.lua b/spec/02-integration/11-dbless/02-workers_spec.lua index f45ba0944dea..0b1c77a09514 100644 --- a/spec/02-integration/11-dbless/02-workers_spec.lua +++ b/spec/02-integration/11-dbless/02-workers_spec.lua @@ -29,7 +29,7 @@ describe("Workers initialization #off", function() lazy_teardown(function() admin_client:close() proxy_client:close() - helpers.stop_kong(nil, true) + helpers.stop_kong() end) it("restarts worker correctly without issues on the init_worker phase when config includes 1000+ plugins", function() diff --git a/spec/03-plugins/19-hmac-auth/04-invalidations_spec.lua b/spec/03-plugins/19-hmac-auth/04-invalidations_spec.lua index f9eb0f21af19..b552fc96cf6c 100644 --- a/spec/03-plugins/19-hmac-auth/04-invalidations_spec.lua +++ b/spec/03-plugins/19-hmac-auth/04-invalidations_spec.lua @@ -58,7 +58,7 @@ for _, strategy in helpers.each_strategy() do admin_client:close() end - helpers.stop_kong(nil, true) + helpers.stop_kong() end) local function hmac_sha1_binary(secret, data) diff --git a/spec/03-plugins/20-ldap-auth/02-invalidations_spec.lua b/spec/03-plugins/20-ldap-auth/02-invalidations_spec.lua index 27bf8764b543..41ce53dc883a 100644 --- a/spec/03-plugins/20-ldap-auth/02-invalidations_spec.lua +++ b/spec/03-plugins/20-ldap-auth/02-invalidations_spec.lua @@ -64,7 +64,7 @@ for _, ldap_strategy in pairs(ldap_strategies) do end) lazy_teardown(function() - helpers.stop_kong(nil, true) + helpers.stop_kong() end) local function cache_key(conf, username, password) diff --git a/spec/03-plugins/23-rate-limiting/03-api_spec.lua b/spec/03-plugins/23-rate-limiting/03-api_spec.lua index f6bc24ab1222..084b735718ae 100644 --- a/spec/03-plugins/23-rate-limiting/03-api_spec.lua +++ b/spec/03-plugins/23-rate-limiting/03-api_spec.lua @@ -21,7 +21,7 @@ for _, strategy in helpers.each_strategy() do admin_client:close() end - helpers.stop_kong(nil, true) + helpers.stop_kong() end) describe("POST", function() diff --git a/spec/03-plugins/24-response-rate-limiting/04-access_spec.lua b/spec/03-plugins/24-response-rate-limiting/04-access_spec.lua index e1e8af62ee4b..703a2f0c33eb 100644 --- a/spec/03-plugins/24-response-rate-limiting/04-access_spec.lua +++ b/spec/03-plugins/24-response-rate-limiting/04-access_spec.lua @@ -329,7 +329,7 @@ describe(fmt("#flaky Plugin: response-ratelimiting (access) with policy: #%s [#% end) lazy_teardown(function() - helpers.stop_kong(nil, true) + helpers.stop_kong() end) describe("Without authentication (IP address)", function() @@ -567,7 +567,7 @@ describe(fmt("#flaky Plugin: response-ratelimiting (expirations) with policy: #% end) lazy_teardown(function() - helpers.stop_kong(nil, true) + helpers.stop_kong() end) it("expires a counter", function() @@ -638,7 +638,7 @@ describe(fmt("#flaky Plugin: response-ratelimiting (access - global for single c end) lazy_teardown(function() - helpers.stop_kong(nil, true) + helpers.stop_kong() end) it("blocks when the consumer exceeds their quota, no matter what service/route used", function() @@ -675,7 +675,7 @@ describe(fmt("#flaky Plugin: response-ratelimiting (access - global) with policy end) lazy_teardown(function() - helpers.stop_kong(nil, true) + helpers.stop_kong() end) before_each(function() @@ -753,7 +753,7 @@ describe(fmt("#flaky Plugin: response-ratelimiting (fault tolerance) with policy end) after_each(function() - helpers.stop_kong(nil, true) + helpers.stop_kong() end) it("does not work if an error occurs", function() @@ -848,7 +848,7 @@ describe(fmt("#flaky Plugin: response-ratelimiting (fault tolerance) with policy end) after_each(function() - helpers.stop_kong(nil, true) + helpers.stop_kong() end) it("does not work if an error occurs", function() 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 3c917bdc26ac..4ba6f319dc0b 100644 --- a/spec/03-plugins/31-proxy-cache/02-access_spec.lua +++ b/spec/03-plugins/31-proxy-cache/02-access_spec.lua @@ -270,7 +270,7 @@ do admin_client:close() end - helpers.stop_kong(nil, true) + helpers.stop_kong() end) it("caches a simple request", function() diff --git a/spec/03-plugins/31-proxy-cache/03-api_spec.lua b/spec/03-plugins/31-proxy-cache/03-api_spec.lua index 684e77334009..afa423724305 100644 --- a/spec/03-plugins/31-proxy-cache/03-api_spec.lua +++ b/spec/03-plugins/31-proxy-cache/03-api_spec.lua @@ -64,7 +64,7 @@ describe("Plugin: proxy-cache", function() end) teardown(function() - helpers.stop_kong(nil, true) + helpers.stop_kong() end) describe("(schema)", function() diff --git a/spec/03-plugins/31-proxy-cache/04-invalidations_spec.lua b/spec/03-plugins/31-proxy-cache/04-invalidations_spec.lua index ed2085b6635b..d44f23405a8d 100644 --- a/spec/03-plugins/31-proxy-cache/04-invalidations_spec.lua +++ b/spec/03-plugins/31-proxy-cache/04-invalidations_spec.lua @@ -92,8 +92,8 @@ describe("proxy-cache invalidations via: " .. strategy, function() end) teardown(function() - helpers.stop_kong("servroot1", true) - helpers.stop_kong("servroot2", true) + helpers.stop_kong("servroot1") + helpers.stop_kong("servroot2") end) before_each(function()