mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-11-16 08:44:52 +02:00
Fix issues when generating docs
This commit is contained in:
parent
470f13f448
commit
218522b08c
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