Alerts API cleanup and JSON migration

This commit is contained in:
emanuele-f 2019-07-29 15:02:14 +02:00
parent 3ca04b95ec
commit c183a577be
42 changed files with 1353 additions and 880 deletions

View file

@ -4,7 +4,7 @@
local test_utils = {}
local alerts = require("alerts_api")
local alerts_api = require("alerts_api")
local test_failed_alert = alerts:newAlert({
type = "test_failed",
entity = "test"
@ -12,7 +12,8 @@ local test_failed_alert = alerts:newAlert({
})
local function test_error(msg)
test_failed_alert:trigger("test", msg)
--~ test_failed_alert:trigger("test", msg)
-- TODO adapt to new alerts api
end
local function test_assert(cond, error_msg)