fix wrong error handling for log_default and increase delay for k8s/tls test

This commit is contained in:
florian 2024-01-10 09:34:46 +01:00
parent 66b1c015fc
commit c8452aada6
No known key found for this signature in database
GPG key ID: 93EE47CC3D061500
2 changed files with 3 additions and 1 deletions

View file

@ -2,7 +2,7 @@
"name": "kubernetes-tls",
"kinds": ["kubernetes"],
"timeout": 60,
"delay": 120,
"delay": 180,
"tls_edit": false,
"tests": [
{

View file

@ -101,6 +101,8 @@ server {
local ok, ret = call_plugin(plugin_obj, "log_default")
if not ok then
logger:log(ERR, ret)
elseif not ret.ret then
logger:log(ERR, plugin_id .. ":log_default() call failed : " .. ret.msg)
else
logger:log(INFO, plugin_id .. ":log_default() call successful : " .. ret.msg)
end