From cfe843298046f510ac3a7916b45aace7f62033c5 Mon Sep 17 00:00:00 2001 From: Frantisek Lachman Date: Mon, 26 Sep 2022 15:47:00 +0200 Subject: [PATCH] Fix the tests after the job rename Signed-off-by: Frantisek Lachman --- tests/integration/test_check_rerun.py | 4 ++-- tests/integration/test_handler.py | 2 +- tests/unit/test_koji_build.py | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/integration/test_check_rerun.py b/tests/integration/test_check_rerun.py index e80c5437e..79d6d702b 100644 --- a/tests/integration/test_check_rerun.py +++ b/tests/integration/test_check_rerun.py @@ -72,7 +72,7 @@ def check_rerun_event_koji_build(): event = json.loads( (DATA_DIR / "webhooks" / "github" / "checkrun_rerequested.json").read_text() ) - event["check_run"]["name"] = "production-build:f34" + event["check_run"]["name"] = "koji-build:f34" return event @@ -650,7 +650,7 @@ def test_check_rerun_release_copr_build_handler( [ { "trigger": "release", - "job": "production_build", + "job": "upstream_koji_build", "metadata": {"targets": "fedora-all", "scratch": "true"}, } ] diff --git a/tests/integration/test_handler.py b/tests/integration/test_handler.py index 6afe14dd6..fd389fc56 100644 --- a/tests/integration/test_handler.py +++ b/tests/integration/test_handler.py @@ -213,7 +213,7 @@ def test_precheck_koji_build_non_scratch(github_pr_event): flexmock(StatusReporterGithubChecks).should_receive("set_status").with_args( state=BaseCommitStatus.neutral, description="Non-scratch builds not possible from upstream.", - check_name="production-build:bright-future", + check_name="koji-build:bright-future", url=KOJI_PRODUCTION_BUILDS_ISSUE, links_to_external_services=None, markdown_content=None, diff --git a/tests/unit/test_koji_build.py b/tests/unit/test_koji_build.py index 9b83f5e10..844e4cdc7 100644 --- a/tests/unit/test_koji_build.py +++ b/tests/unit/test_koji_build.py @@ -71,7 +71,7 @@ def build_helper( jobs = jobs or [] jobs.append( JobConfig( - type=JobType.production_build, + type=JobType.upstream_koji_build, trigger=trigger or JobConfigTriggerType.pull_request, _targets=_targets, owner=owner, @@ -122,7 +122,7 @@ def test_koji_build_check_names(github_pr_event): flexmock(StatusReporter).should_receive("set_status").with_args( state=BaseCommitStatus.running, description="Building SRPM ...", - check_name="production-build:bright-future", + check_name="koji-build:bright-future", url="", links_to_external_services=None, markdown_content=None, @@ -130,7 +130,7 @@ def test_koji_build_check_names(github_pr_event): flexmock(StatusReporter).should_receive("set_status").with_args( state=BaseCommitStatus.running, description="Building RPM ...", - check_name="production-build:bright-future", + check_name="koji-build:bright-future", url=koji_build_url, links_to_external_services=None, markdown_content=None,