mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Tests endpoint recipients deletion
This commit is contained in:
parent
bc8a4ea73d
commit
e96d8a6b09
2 changed files with 13 additions and 0 deletions
|
|
@ -155,7 +155,18 @@ assert(res["status"] == "OK")
|
|||
res = notification_endpoint_recipients.add_endpoint_recipient("ntop_email", "sysadmins", recipient_params)
|
||||
assert(res["status"] == "failed" and res["error"]["type"] == "endpoint_recipient_already_existing")
|
||||
|
||||
res = notification_endpoint_recipients.delete_endpoint_recipient("sysadmins")
|
||||
assert(res["status"] == "OK")
|
||||
|
||||
res = notification_endpoint_recipients.delete_endpoint_recipient("sysadmins")
|
||||
assert(res["status"] == "failed" and res["error"]["type"] == "endpoint_recipient_not_existing")
|
||||
|
||||
recipient_params["garbage"] = "trash"
|
||||
|
||||
res = notification_endpoint_recipients.add_endpoint_recipient("ntop_email", "sysadmins", recipient_params)
|
||||
assert(res["status"] == "OK")
|
||||
|
||||
|
||||
|
||||
dofile(dirs.installdir .. "/scripts/lua/inc/footer.lua")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue