From 7a89b22f33a9095f23acec54cbec316e345d8fdc Mon Sep 17 00:00:00 2001 From: Aapo Talvensaari Date: Tue, 22 Sep 2020 17:38:00 +0300 Subject: [PATCH] chore(deps) bump resty.healthcheck from 1.3.0 to 2.0.0 ### Summary * BREAKING: fallback for deprecated top-level field `type` is now removed (deprecated since `0.5.0`) [#56](https://github.com/Kong/lua-resty-healthcheck/pull/56) * BREAKING: Bump `lua-resty-worker-events` dependency to `2.0.0`. This makes a lot of the APIs in this library asynchronous as the worker events `post` and `post_local` won't anymore call `poll` on a running worker automatically, for more information, see: https://github.com/Kong/lua-resty-worker-events#200-16-september-2020 * BREAKING: tcp_failures can no longer be 0 on http(s) checks (unless http(s)_failures are also set to 0) [#55](https://github.com/Kong/lua-resty-healthcheck/pull/55) * feature: Added support for https_sni [#49](https://github.com/Kong/lua-resty-healthcheck/pull/49) * fix: properly log line numbers by using tail calls [#29](https://github.com/Kong/lua-resty-healthcheck/pull/29) * fix: when not providing a hostname, use IP [#48](https://github.com/Kong/lua-resty-healthcheck/pull/48) * fix: makefile; make install * feature: added a status version field [#54](https://github.com/Kong/lua-resty-healthcheck/pull/54) * feature: add headers for probe request [#54](https://github.com/Kong/lua-resty-healthcheck/pull/54) * fix: exit early when reloading during a probe [#47](https://github.com/Kong/lua-resty-healthcheck/pull/47) * fix: prevent target-list from being nil, due to async behaviour [#44](https://github.com/Kong/lua-resty-healthcheck/pull/44) * fix: replace timer and node-wide locks with resty-timer, to prevent interval skips [#59](https://github.com/Kong/lua-resty-healthcheck/pull/59) * change: added additional logging on posting events [#25](https://github.com/Kong/lua-resty-healthcheck/issues/25) * fix: do not run out of timers during init/init_worker when adding a vast amount of targets [#57](https://github.com/Kong/lua-resty-healthcheck/pull/57) * fix: do not call on the module table, but use a method for locks. Also in [#57](https://github.com/Kong/lua-resty-healthcheck/pull/57) --- kong-2.1.4-0.rockspec | 2 +- spec/01-unit/09-balancer_spec.lua | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/kong-2.1.4-0.rockspec b/kong-2.1.4-0.rockspec index 13e1ea687e0b..66de045aa517 100644 --- a/kong-2.1.4-0.rockspec +++ b/kong-2.1.4-0.rockspec @@ -31,7 +31,7 @@ dependencies = { "lua-resty-dns-client == 5.1.0", "lua-resty-worker-events == 1.0.0", "lua-resty-mediador == 0.1.2", - "lua-resty-healthcheck == 1.3.0", + "lua-resty-healthcheck == 2.0.0", "lua-resty-cookie == 0.1.0", "lua-resty-mlcache == 2.4.1", "lua-messagepack == 0.5.2", diff --git a/spec/01-unit/09-balancer_spec.lua b/spec/01-unit/09-balancer_spec.lua index 26f0690e9348..9032ed8a82d4 100644 --- a/spec/01-unit/09-balancer_spec.lua +++ b/spec/01-unit/09-balancer_spec.lua @@ -112,6 +112,7 @@ for _, consistency in ipairs({"strict", "eventual"}) do local passive_hc = utils.deep_copy(hc_defaults) passive_hc.passive.healthy.successes = 1 + passive_hc.passive.unhealthy.tcp_failures = 1 -- 1 = required because http failures is 1 as well passive_hc.passive.unhealthy.http_failures = 1 UPSTREAMS_FIXTURES = {