def test_console(project, manager): node = VPCSVM("test", "00010203-0405-0607-0809-0a0b0c0d0e0f", project, manager) node.console = 5011 assert node.console == 5011 node.console = None assert node.console is None
def test_console_vnc_invalid(compute_project, manager): node = VPCSVM("test", "00010203-0405-0607-0809-0a0b0c0d0e0f", compute_project, manager) node._console_type = "vnc" with pytest.raises(NodeError): node.console = 2012
def test_console_vnc_invalid(project, manager): node = VPCSVM("test", "00010203-0405-0607-0809-0a0b0c0d0e0f", project, manager) node._console_type = "vnc" with pytest.raises(NodeError): node.console = 2012
def test_console(project, manager): node = VPCSVM("test", "00010203-0405-0607-0809-0a0b0c0d0e0f", project, manager) node.console = 5011 assert node.console == 5011 node.console = None assert node.console is None