def test_ria_postclonecfg(): if not has_symlink_capability(): # This is needed to create an ORA remote using an URL for upload, # that is then invalidated later on (delete the symlink it's based on). raise SkipTest("Can't create symlinks") from datalad.utils import make_tempfile from datalad.tests.utils import HTTPPath with make_tempfile(mkdir=True) as lcl, make_tempfile(mkdir=True) as store: id = _postclonetest_prepare(lcl, store) # test cloning via ria+file:// yield _test_ria_postclonecfg, Path(store).as_uri(), id # Note: HTTP disabled for now. Requires proper implementation in ORA # remote. See # https://github.com/datalad/datalad/pull/4203#discussion_r410284649 # # test cloning via ria+http:// # with HTTPPath(store) as url: # yield _test_ria_postclonecfg, url, id # test cloning via ria+ssh:// yield skip_ssh(_test_ria_postclonecfg), \ "ssh://datalad-test:{}".format(Path(store).as_posix()), id
def test_target_ssh_inherit(): skip_if_on_windows() # create_sibling incompatible with win servers # TODO: was waiting for resolution on # https://github.com/datalad/datalad/issues/1274 # which is now closed but this one is failing ATM, thus leaving as TODO # yield _test_target_ssh_inherit, None # no wanted etc # Takes too long so one will do with UI and another one without yield skip_ssh(_test_target_ssh_inherit), 'manual', True, True # manual -- no load should be annex copied yield _test_target_ssh_inherit, 'backup', False, False # backup -- all data files
def test_create_simple(): yield _test_create_store, None # TODO: Skipped due to gh-4436 yield skip_if_on_windows(skip_ssh(_test_create_store)), 'datalad-test'
def test_create_simple(): yield _test_create_store, None yield skip_ssh(_test_create_store), 'datalad-test'
def test_skip_ssh(): with patch_config({'datalad.tests.ssh': False}): with assert_raises(SkipTest): skip_ssh(lambda: False)()
def test_check_exists_interactive(): skip_if_on_windows() yield skip_ssh(check_exists_interactive), True yield check_exists_interactive, False
def test_replace_and_relative_sshpath(): skip_if_on_windows() yield skip_ssh(check_replace_and_relative_sshpath), True yield check_replace_and_relative_sshpath, False
def test_failon_no_permissions(): yield skip_ssh(check_failon_no_permissions), True yield check_failon_no_permissions, False
def test_target_ssh_since(): skip_if_on_windows() yield skip_ssh(check_target_ssh_since), True yield check_target_ssh_since, False
def test_target_ssh_recursive(): skip_if_on_windows() yield skip_ssh(check_target_ssh_recursive), True yield check_target_ssh_recursive, False
def test_setup_store(): yield _test_setup_store, LocalIO, [] yield skip_ssh(_test_setup_store), SSHRemoteIO, ['datalad-test']
def test_failon_no_permissions(): skip_if_on_windows() yield skip_ssh(check_failon_no_permissions), True yield check_failon_no_permissions, False