Пример #1
0
def given_cats_tracking_branch(tmp_path: Path, scenario_info: ScenarioInfo, test_branch: str) -> None:
    scenario_info.example = "cats"
    for name, repo in CATS_REPOS_DEFAULT.items():
        path = tmp_path / repo["path"]
        util.delete_remote_branch(path, test_branch)
        util.create_tracking_branch(path, test_branch)
        assert util.tracking_branch_exists(path, test_branch)
Пример #2
0
def given_misc_init_herd(tmp_path: Path, misc_init_herd_version_https,
                         scenario_info: ScenarioInfo) -> None:
    scenario_info.example = "misc"
    scenario_info.version = "https"
Пример #3
0
def given_misc_init_herd(tmp_path: Path, misc_init_herd,
                         scenario_info: ScenarioInfo) -> None:
    scenario_info.example = "misc"
Пример #4
0
def given_cats_clowder_repo_symlink(tmp_path: Path, cats_clowder_repo_symlink,
                                    scenario_info: ScenarioInfo) -> None:
    scenario_info.example = "cats"
Пример #5
0
def given_cats_non_symlink_yml(tmp_path: Path, cats_non_symlink_yml, scenario_info: ScenarioInfo) -> None:
    scenario_info.example = "cats"
Пример #6
0
def given_cats_ambiguous_non_symlink_yaml_files(tmp_path: Path, cats_ambiguous_non_symlink_yaml_files,
                                                scenario_info: ScenarioInfo) -> None:
    scenario_info.example = "cats"
Пример #7
0
def given_cats_init_herd(tmp_path: Path, cats_init_herd, scenario_info: ScenarioInfo) -> None:
    scenario_info.example = "cats"
Пример #8
0
def given_cats_init_herd_ssh(tmp_path: Path, cats_init_herd_ssh, scenario_info: ScenarioInfo) -> None:
    scenario_info.example = "cats"
    scenario_info.version = "ssh"
    scenario_info.protocol = "ssh"
Пример #9
0
def given_cats_no_local_branch(tmp_path: Path, scenario_info: ScenarioInfo, test_branch: str) -> None:
    scenario_info.example = "cats"
    for name, repo in CATS_REPOS_DEFAULT.items():
        path = tmp_path / repo["path"]
        util.delete_local_branch(path, test_branch)
        assert not util.local_branch_exists(path, test_branch)
Пример #10
0
def given_validate_project_tag(tmp_path: Path, project_tag: str,
                               scenario_info: ScenarioInfo) -> None:
    scenario_info.current_validation_test = project_tag
Пример #11
0
def given_validate_project_git_submodules(tmp_path: Path,
                                          project_git_submodules: str,
                                          scenario_info: ScenarioInfo) -> None:
    scenario_info.current_validation_test = project_git_submodules
Пример #12
0
def given_validate_upstream_source_url(tmp_path: Path,
                                       upstream_source_url: str,
                                       scenario_info: ScenarioInfo) -> None:
    scenario_info.current_validation_test = upstream_source_url
Пример #13
0
def given_validate_upstream_implicit(tmp_path: Path, upstream_implicit: str,
                                     scenario_info: ScenarioInfo) -> None:
    scenario_info.current_validation_test = upstream_implicit