Exemplo n.º 1
0
def test_aux(project, manager, port_manager):
    aux = port_manager.get_free_tcp_port(project)
    port_manager.release_tcp_port(aux, project)

    vm = DockerVM("test", "00010203-0405-0607-0809-0a0b0c0d0e0f", project, manager, "ubuntu", aux=aux)
    assert vm.aux == aux
    vm.aux = None
    assert vm.aux is None
Exemplo n.º 2
0
def test_aux(project, manager, port_manager):
    aux = port_manager.get_free_tcp_port(project)
    port_manager.release_tcp_port(aux, project)

    vm = DockerVM("test",
                  "00010203-0405-0607-0809-0a0b0c0d0e0f",
                  project,
                  manager,
                  "ubuntu",
                  aux=aux)
    assert vm.aux == aux
    vm.aux = None
    assert vm.aux is None