Skip to content

Commit

Permalink
remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
theweakgod committed Jan 25, 2024
1 parent f62e84c commit b0c6792
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 42 deletions.
4 changes: 0 additions & 4 deletions apisix/schema_def.lua
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,6 @@ local health_checker = {
enum = {"http", "https", "tcp"},
default = "http"
},
body_match_str = {
type = "string",
default = ""
},
timeout = {type = "number", default = 1},
concurrency = {type = "integer", default = 10},
host = host_def,
Expand Down
38 changes: 0 additions & 38 deletions t/admin/health-check.t
Original file line number Diff line number Diff line change
Expand Up @@ -519,41 +519,3 @@ passed
}
--- response_body
passed
=== TEST 15: test body_match_str
--- config
location /t {
content_by_lua_block {
local t = require("lib.test_admin").test
req_data.upstream.checks = json.decode([[{
"active": {
"http_path": "/status",
"host": "foo.com",
"healthy": {
"interval": 2,
"successes": 1
},
"unhealthy": {
"interval": 1,
"http_failures": 2
},
"body_match_str": "pass"
}
}]])
exp_data.value.upstream.checks = req_data.upstream.checks
local code, body, res = t('/apisix/admin/routes/1',
ngx.HTTP_PUT,
req_data,
exp_data
)
ngx.status = code
ngx.say(body)
}
}
--- response_body
passed

0 comments on commit b0c6792

Please sign in to comment.