Exemplo n.º 1
0
def test_example_report_status4_2(example_hydra_results):
    bldcfgs, reps = example_hydra_results
    assert StatusReport(status=1,
                        project='Repo1',
                        strategy='standard',
                        branchtype="pullreq",
                        branch="master",
                        buildname='PR2-master.standard-ghc881',
                        bldvars=[
                            BldVariable(project='Repo1',
                                        varname='ghcver',
                                        varvalue='ghc881')
                        ],
                        blddesc=PR_Solo('Repo1', '2')) in reps
Exemplo n.º 2
0
def test_example_internal_pr2r1_standard(generated_bldconfigs):
    for each in [
            BldConfig(projectname="Repo1",
                      branchtype="pullreq",
                      branchname="master",
                      strategy="standard",
                      description=PR_Solo("Repo1", "2"),
                      blds=[
                          BldRepoRev("Repo1", "master", "2"),
                          BldRepoRev("Repo2", "master", "project_primary"),
                          BldRepoRev("Repo3", "master", "project_primary"),
                      ],
                      bldvars=[BldVariable("Repo1", "ghcver", G)]) for G in GS
    ]:
        assert each in generated_bldconfigs.cfg_build_configs
Exemplo n.º 3
0
        bldvars=[
            BldVariable(project='Repo1', varname='ghcver', varvalue='ghc865')
        ],
        blddesc=PR_Grouped('foo'),
    ),
    StatusReport(
        status='failed',
        project='Repo1',
        strategy='standard',
        branchtype="pullreq",
        branch="master",
        buildname='PR1-master.standard-ghc865',
        bldvars=[
            BldVariable(project='Repo1', varname='ghcver', varvalue='ghc865')
        ],
        blddesc=PR_Solo('master', '1'),
    ),
    StatusReport(
        status='succeeded',
        project='Repo1',
        strategy='standard',
        branchtype="regular",
        branch="master",
        buildname='master.standard-ghc881',
        bldvars=[
            BldVariable(project='Repo1', varname='ghcver', varvalue='ghc881')
        ],
        blddesc=BranchReq('Repo1', 'master'),
    ),
]