diff --git a/kong/init.lua b/kong/init.lua index dca089b6ce4..16a9ad35bc4 100644 --- a/kong/init.lua +++ b/kong/init.lua @@ -885,6 +885,8 @@ function Kong.init_worker() end kong.core_cache = core_cache + -- Some random changes in a file + kong.db:set_events_handler(worker_events) if kong.configuration.admin_gui_listeners then @@ -967,6 +969,7 @@ function Kong.init_worker() end end + -- Some random changes in a file --- 222 ok, err = runloop.update_plugins_iterator() if not ok then stash_init_worker_error("failed to build the plugins iterator: " .. err) @@ -1055,6 +1058,7 @@ function Kong.ssl_client_hello() ctx.KONG_PHASE = PHASES.client_hello end +-- Some random changes in a file --- 333 function Kong.preread() local ctx = get_ctx_table(fetch_table(CTX_NS, CTX_NARR, CTX_NREC)) if not ctx.KONG_PROCESSING_START then diff --git a/spec/01-unit/01-db/06-postgres_spec.lua b/spec/01-unit/01-db/06-postgres_spec.lua index 04382b14482..f31f7cc6b8e 100644 --- a/spec/01-unit/01-db/06-postgres_spec.lua +++ b/spec/01-unit/01-db/06-postgres_spec.lua @@ -34,6 +34,7 @@ describe("kong.db [#postgres] connector", function() db_readonly = false, }, infos) + -- Some random changes in a file --- 111 infos = connector.infos{ major_version = 9.5, major_minor_version = "9.5.1", config = config } assert.same({ db_desc = "database", @@ -360,7 +361,7 @@ describe("kong.db [#postgres] connector", function() assert.same({ "cluster_events", "clustering_rpc_requests", "a", "workspaces", "services" }, ts({ services, a, workspaces })) end) - +-- Some random changes in a file --- 222 it("returns an error if cycles are found", function() local a = schema_new({ name = "a", diff --git a/spec/01-unit/27-queue_spec.lua b/spec/01-unit/27-queue_spec.lua index e91c6891e51..ce0e6b97f26 100644 --- a/spec/01-unit/27-queue_spec.lua +++ b/spec/01-unit/27-queue_spec.lua @@ -28,7 +28,7 @@ local function wait_until_queue_done(name) return not Queue._exists(name) end, 10) end - +-- Some random changes in a file --- 11 describe("plugin queue", function() lazy_setup(function() 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 a6a3f83ca05..ddb8fdf37ff 100644 --- a/spec/03-plugins/23-rate-limiting/03-api_spec.lua +++ b/spec/03-plugins/23-rate-limiting/03-api_spec.lua @@ -23,7 +23,7 @@ for _, strategy in helpers.each_strategy() do helpers.stop_kong() end) - + -- Some random changes in a file --- 11 describe("POST", function() local route, route2 diff --git a/spec/03-plugins/23-rate-limiting/04-access_spec.lua b/spec/03-plugins/23-rate-limiting/04-access_spec.lua index 64299d6d0d3..b5b8b0f2cb7 100644 --- a/spec/03-plugins/23-rate-limiting/04-access_spec.lua +++ b/spec/03-plugins/23-rate-limiting/04-access_spec.lua @@ -52,7 +52,6 @@ local function GET(url, opt) return res end - local function client_requests(n, proxy_fn) local ret = { minute_limit = {}, @@ -90,7 +89,7 @@ local function client_requests(n, proxy_fn) return ret end - +-- Some random changes in a file --- 222 local function validate_headers(headers, check_minute, check_hour) if check_minute then assert.same({ @@ -219,7 +218,7 @@ local function setup_rl_plugin(admin_client, conf, service, consumer) return cjson.decode(assert.res_status(201, plugin)) end - +-- Some random changes in a file --- 333 local function setup_key_auth_plugin(admin_client, conf, service) local plugin