mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Implements deletion of alert endpoint recipients
This commit is contained in:
parent
31b09206c9
commit
bc8a4ea73d
3 changed files with 63 additions and 7 deletions
|
|
@ -152,8 +152,10 @@ local recipient_params = {
|
|||
res = notification_endpoint_recipients.add_endpoint_recipient("ntop_email", "sysadmins", recipient_params)
|
||||
assert(res["status"] == "OK")
|
||||
|
||||
recipient_params["garbage"] = "trash"
|
||||
res = notification_endpoint_recipients.add_endpoint_recipient("ntop_email", "sysadmins", recipient_params)
|
||||
assert(res["status"] == "failed" and res["error"]["type"] == "endpoint_recipient_already_existing")
|
||||
|
||||
recipient_params["garbage"] = "trash"
|
||||
|
||||
dofile(dirs.installdir .. "/scripts/lua/inc/footer.lua")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue