mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 01:08:19 +00:00
Fix issues when generating docs
This commit is contained in:
parent
9e1a1337d4
commit
2789b3802a
3
docs/api/notifications/node.deleted.json
Normal file
3
docs/api/notifications/node.deleted.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"a": "b"
|
||||
}
|
3
docs/api/notifications/node.updated.json
Normal file
3
docs/api/notifications/node.updated.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"a": "b"
|
||||
}
|
@ -576,7 +576,7 @@ Read :doc:`project_notifications` for more information.
|
||||
|
||||
|
||||
Where to find the endpoints?
|
||||
###########################
|
||||
############################
|
||||
|
||||
A list of all endpoints is available: :doc:`endpoints`
|
||||
|
||||
|
@ -105,7 +105,7 @@ snapshot.restored
|
||||
|
||||
A snapshot has been restored
|
||||
|
||||
.. literalinclude:: api/notifications/project.snapshot_restored.json
|
||||
.. literalinclude:: api/notifications/snapshot.restored.json
|
||||
|
||||
log.error
|
||||
---------
|
||||
|
@ -186,7 +186,9 @@ async def test_notification(controller_api, http_client, project, controller):
|
||||
assert b'"cpu_usage_percent"' in response.body
|
||||
assert b'{"action": "node.created", "event": {"a": "b"}}\n' in response.body
|
||||
assert project.status == "opened"
|
||||
|
||||
controller.notification.project_emit("node.updated", {"a": "b"})
|
||||
controller.notification.project_emit("node.deleted", {"a": "b"})
|
||||
controller.notification.project_emit("snapshot.restored", {"a": "b"})
|
||||
|
||||
async def test_notification_invalid_id(controller_api):
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user