Exemplo n.º 1
0
def test_endpoint_validation():
    client = _min_client("remote_transfer")
    mapper = FileActionMapper(client)
    exception_found = False
    try:
        mapper.action({'path': '/opt/galaxy/tools/filters/catWrapper.py'}, 'input')
    except Exception as e:
        exception_found = True
        assert "files_endpoint" in str(e)
    assert exception_found
Exemplo n.º 2
0
def test_endpoint_validation():
    client = _min_client("remote_transfer")
    mapper = FileActionMapper(client)
    exception_found = False
    try:
        mapper.action('/opt/galaxy/tools/filters/catWrapper.py', 'input')
    except Exception as e:
        exception_found = True
        assert "files_endpoint" in str(e)
    assert exception_found
Exemplo n.º 3
0
def test_ssh_key_validation():
    client = _min_client("remote_rsync_transfer")
    mapper = FileActionMapper(client)
    exception_found = False
    try:
        mapper.action({'path': '/opt/galaxy/tools/filters/catWrapper.py'}, 'input')
    except Exception as e:
        exception_found = True
        assert "ssh_key" in str(e)
    assert exception_found
Exemplo n.º 4
0
def test_ssh_key_validation():
    client = _min_client("remote_rsync_transfer")
    mapper = FileActionMapper(client)
    exception_found = False
    try:
        mapper.action("/opt/galaxy/tools/filters/catWrapper.py", "input")
    except Exception as e:
        exception_found = True
        assert "ssh_key" in str(e)
    assert exception_found
Exemplo n.º 5
0
def test_endpoint_validation():
    client = _min_client("remote_transfer")
    mapper = FileActionMapper(client)
    exception_found = False
    try:
        mapper.action("/opt/galaxy/tools/filters/catWrapper.py", "input")
    except Exception as e:
        exception_found = True
        assert "files_endpoint" in e.message
    assert exception_found
Exemplo n.º 6
0
def test_ssh_key_defaults():
    client = _client("remote_rsync_transfer")
    mapper = FileActionMapper(client)
    action = mapper.action('/opt/galaxy/tools/filters/catWrapper.py', 'input')
    action.to_dict()
Exemplo n.º 7
0
def test_ssh_key_defaults():
    client = _client("remote_rsync_transfer")
    mapper = FileActionMapper(client)
    action = mapper.action({'path': '/opt/galaxy/tools/filters/catWrapper.py'}, 'input')
    action.to_dict()