@@ -752,13 +752,15 @@ describe("Entities Schemas", function()
752
752
753
753
-- tests for failure
754
754
local tests = {
755
- {{ active = { timeout = - 1 }}, " greater than or equal to 0" },
755
+ {{ active = { timeout = - 1 }}, " between 0 and 65535" },
756
+ {{ active = { timeout = 1e + 42 }}, " between 0 and 65535" },
756
757
{{ active = { concurrency = 0.5 }}, " must be an integer" },
757
758
{{ active = { concurrency = 0 }}, " must be an integer" },
758
759
{{ active = { concurrency = - 10 }}, " must be an integer" },
759
760
{{ active = { http_path = " " }}, " is empty" },
760
761
{{ active = { http_path = " ovo" }}, " must be prefixed with slash" },
761
- {{ active = { healthy = { interval = - 1 }}}, " greater than or equal to 0" },
762
+ {{ active = { healthy = { interval = - 1 }}}, " between 0 and 65535" },
763
+ {{ active = { healthy = { interval = 1e + 42 }}}, " between 0 and 65535" },
762
764
{{ active = { healthy = { http_statuses = 404 }}}, " not an array" },
763
765
{{ active = { healthy = { http_statuses = { " ovo" }}}}, " not a number" },
764
766
{{ active = { healthy = { http_statuses = { - 1 }}}}, " status code" },
@@ -768,7 +770,8 @@ describe("Entities Schemas", function()
768
770
{{ active = { healthy = { successes = 0.5 }}}, " must be 0 (disabled), or an integer" },
769
771
-- {{ active = { healthy = { successes = 0 }}}, "must be an integer" },
770
772
{{ active = { healthy = { successes = - 1 }}}, " an integer between" },
771
- {{ active = { unhealthy = { interval = - 1 }}}, " greater than or equal to 0" },
773
+ {{ active = { unhealthy = { interval = - 1 }}}, " between 0 and 65535" },
774
+ {{ active = { unhealthy = { interval = 1e + 42 }}}, " between 0 and 65535" },
772
775
{{ active = { unhealthy = { http_statuses = 404 }}}, " not an array" },
773
776
{{ active = { unhealthy = { http_statuses = { " ovo" }}}}, " not a number" },
774
777
{{ active = { unhealthy = { http_statuses = { - 1 }}}}, " status code" },
0 commit comments