mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-25 16:28:11 +00:00
Delete a node work
This commit is contained in:
parent
be1efe8327
commit
885d93be02
@ -105,7 +105,7 @@ class BaseNode:
|
||||
def status(self, status):
|
||||
|
||||
self._node_status = status
|
||||
self._project.emit("node.{}".format(status), self)
|
||||
self._project.emit("node.updated", self)
|
||||
|
||||
@property
|
||||
def command_line(self):
|
||||
|
@ -148,7 +148,7 @@ def test_termination_callback(vm, async_run):
|
||||
async_run(queue.get(0)) # Ping
|
||||
|
||||
(action, event, kwargs) = async_run(queue.get(0))
|
||||
assert action == "node.stopped"
|
||||
assert action == "node.updated"
|
||||
assert event == vm
|
||||
|
||||
|
||||
@ -167,7 +167,7 @@ def test_termination_callback_error(vm, tmpdir, async_run):
|
||||
async_run(queue.get(0)) # Ping
|
||||
|
||||
(action, event, kwargs) = queue.get_nowait()
|
||||
assert action == "node.stopped"
|
||||
assert action == "node.updated"
|
||||
assert event == vm
|
||||
|
||||
(action, event, kwargs) = queue.get_nowait()
|
||||
|
@ -112,7 +112,7 @@ def test_start(loop, vm, async_run):
|
||||
assert vm.is_running()
|
||||
assert vm.command_line == ' '.join(mock_exec.call_args[0])
|
||||
(action, event, kwargs) = async_run(queue.get(0))
|
||||
assert action == "node.started"
|
||||
assert action == "node.updated"
|
||||
assert event == vm
|
||||
|
||||
|
||||
@ -177,7 +177,7 @@ def test_stop(loop, vm, async_run):
|
||||
async_run(queue.get(0)) # Started
|
||||
|
||||
(action, event, kwargs) = async_run(queue.get(0))
|
||||
assert action == "node.stopped"
|
||||
assert action == "node.updated"
|
||||
assert event == vm
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user