Ejemplo n.º 1
0
def cats_non_symlink_yaml(tmp_path: Path,
                          cats_non_symlink_yaml_session: Path) -> None:
    util.copy_directory(cats_non_symlink_yaml_session, to=tmp_path)
    clowder_repo = tmp_path / ".clowder"
    clowder_yaml = tmp_path / "clowder.yaml"
    clowder_yml = tmp_path / "clowder.yml"

    assert not clowder_repo.exists()

    assert not clowder_yml.is_symlink()
    assert not clowder_yml.is_file()
    assert not clowder_yaml.is_symlink()
    assert clowder_yaml.exists()
Ejemplo n.º 2
0
def cats_clowder_repo_symlink(tmp_path: Path,
                              cats_clowder_repo_symlink_session: Path) -> None:
    util.copy_directory(cats_clowder_repo_symlink_session, to=tmp_path)
    clowder_repo = tmp_path / ".clowder"
    clowder_yaml = tmp_path / "clowder.yaml"
    clowder_yml = tmp_path / "clowder.yml"
    target = Path("clowder-symlink-source-dir")
    assert (tmp_path / target).exists()
    util.symlink_to(clowder_repo, target)
    assert clowder_repo.is_symlink()
    assert clowder_repo.exists()
    assert not clowder_yml.is_symlink()
    assert not clowder_yml.exists()
    assert not clowder_yaml.is_symlink()
    assert not clowder_yaml.exists()
Ejemplo n.º 3
0
def cats_init_ssh(tmp_path: Path, cats_init_ssh_session: Path) -> None:
    util.copy_directory(cats_init_ssh_session, to=tmp_path)
Ejemplo n.º 4
0
def cats_init_extension(tmp_path: Path, cats_init_extension_session: Path) -> None:
    util.copy_directory(cats_init_extension_session, to=tmp_path)
Ejemplo n.º 5
0
def cats_non_symlink_yml(tmp_path: Path,
                         cats_non_symlink_yml_session: Path) -> None:
    util.copy_directory(cats_non_symlink_yml_session, to=tmp_path)
    clowder_repo = tmp_path / ".clowder"
    assert not clowder_repo.exists()
    assert util.has_clowder_yaml_file(tmp_path)
Ejemplo n.º 6
0
def validation_init_herd(tmp_path: Path, validation_init_session: Path,
                         scenario_info: ScenarioInfo) -> None:
    path = validation_init_session / scenario_info.current_validation_test
    util.copy_directory(path, to=tmp_path)
    util.run_command("clowder link", tmp_path, check=True)
    util.run_command("clowder herd", tmp_path, check=True)
Ejemplo n.º 7
0
def misc_init(tmp_path: Path, misc_init_session: Path) -> None:
    util.copy_directory(misc_init_session, to=tmp_path)