Add documentation about notifications

This commit is contained in:
Julien Duponchelle committed 2016-06-30 11:08:01 +02:00
1 parent 543b423e03
commit 758a427a76
145 files changed
+777 -424

No files matched your search

+7
View File
@@ -112,3 +112,10 @@ def test_dispatch_node_updated(async_run, controller, node, project):
assert action == "node.updated"
assert event["name"] == "hello"
assert event["properties"]["startup_config"] == "ip 192"
def test_various_notification(controller):
notif = controller.notification
notif.emit("log.info", {"message": "Image uploaded"})
notif.emit("log.warning", {"message": "Warning ASA 8 is not officialy supported by GNS3"})
notif.emit("log.error", {"message": "Permission denied on /tmp"})