mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
Return command_line and node_directory via the controller
This commit is contained in:
167 files changed
+5280
-33
No files matched your search
@@ -63,7 +63,7 @@ def test_json(vm, project):
|
||||
'aux': vm.aux,
|
||||
'start_command': vm.start_command,
|
||||
'environment': vm.environment,
|
||||
'vm_directory': vm.working_dir
|
||||
'node_directory': vm.working_dir
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ def test_vm_adapter_add_nio_binding_adapter_not_exist(loop, vm, manager, free_co
|
||||
|
||||
|
||||
def test_json(vm, tmpdir, project):
|
||||
assert vm.__json__()["vm_directory"] is None
|
||||
assert vm.__json__()["node_directory"] is None
|
||||
project._path = str(tmpdir)
|
||||
vm._linked_clone = True
|
||||
assert vm.__json__()["vm_directory"] is not None
|
||||
assert vm.__json__()["node_directory"] is not None
|
||||
@@ -45,10 +45,10 @@ def test_vm(project, manager, vm):
|
||||
|
||||
|
||||
def test_json(vm, tmpdir, project):
|
||||
assert vm.__json__()["vm_directory"] is not None
|
||||
assert vm.__json__()["node_directory"] is not None
|
||||
project._path = str(tmpdir)
|
||||
vm._linked_clone = True
|
||||
assert vm.__json__()["vm_directory"] is not None
|
||||
assert vm.__json__()["node_directory"] is not None
|
||||
|
||||
|
||||
def test_start_capture(vm, tmpdir, manager, free_console_port, loop):
|
||||
|
||||
Reference in new issue
Block a user