|
26 | 26 | from packit.config.requirements import LabelRequirementsConfig, RequirementsConfig |
27 | 27 | from packit.copr_helper import CoprHelper |
28 | 28 | from packit.local_project import LocalProject, LocalProjectBuilder |
| 29 | +from packit.utils import commands |
29 | 30 | from packit.utils.koji_helper import KojiHelper |
30 | 31 |
|
31 | 32 | import packit_service.service.urls as urls |
|
65 | 66 | from packit_service.worker.helpers.testing_farm import ( |
66 | 67 | TestingFarmClient, |
67 | 68 | TestingFarmJobHelper, |
68 | | - commands, |
69 | 69 | ) |
70 | 70 | from packit_service.worker.jobs import SteveJobs |
71 | 71 | from packit_service.worker.monitoring import Pushgateway |
@@ -2676,40 +2676,6 @@ def test_koji_build_end_downstream( |
2676 | 2676 | koji_build_pr_downstream.should_receive("set_status").with_args("success").once() |
2677 | 2677 | koji_build_pr_downstream.should_receive("set_build_logs_urls") |
2678 | 2678 | koji_build_pr_downstream.should_receive("set_web_url") |
2679 | | - |
2680 | | - installability_repo = "https://github.com/fedora-ci/installability-pipeline.git" |
2681 | | - installability_hash = "f6cd4a50476d9c8ffa36472c5ab2d2c8aad6cee1" |
2682 | | - |
2683 | | - flexmock(commands).should_receive("run_command").with_args( |
2684 | | - ["git", "ls-remote", installability_repo, "HEAD"], output=True |
2685 | | - ).and_return(flexmock(stdout=f"{installability_hash}\tHEAD")) |
2686 | | - |
2687 | | - payload_installability = { |
2688 | | - "test": { |
2689 | | - "tmt": { |
2690 | | - "url": installability_repo, |
2691 | | - "ref": installability_hash, |
2692 | | - }, |
2693 | | - }, |
2694 | | - "environments": [ |
2695 | | - { |
2696 | | - "arch": "x86_64", |
2697 | | - "os": {"compose": compose}, |
2698 | | - "variables": { |
2699 | | - "PROFILE_NAME": profile, |
2700 | | - "TASK_ID": "1", |
2701 | | - }, |
2702 | | - }, |
2703 | | - ], |
2704 | | - "notification": { |
2705 | | - "webhook": { |
2706 | | - "url": "https://stg.packit.dev/api/testing-farm/results", |
2707 | | - "token": "secret token", |
2708 | | - }, |
2709 | | - }, |
2710 | | - } |
2711 | | - |
2712 | | - rpminspect_repo = "https://github.com/fedora-ci/rpminspect-pipeline.git" |
2713 | 2679 | common_payload_no_compose = { |
2714 | 2680 | "environments": [ |
2715 | 2681 | { |
@@ -2743,6 +2709,20 @@ def test_koji_build_end_downstream( |
2743 | 2709 | }, |
2744 | 2710 | } |
2745 | 2711 |
|
| 2712 | + installability_repo = "https://github.com/fedora-ci/installability-pipeline.git" |
| 2713 | + payload_installability = { |
| 2714 | + "test": { |
| 2715 | + "tmt": { |
| 2716 | + "url": installability_repo, |
| 2717 | + "ref": "master", |
| 2718 | + }, |
| 2719 | + }, |
| 2720 | + **common_payload_no_compose, |
| 2721 | + } |
| 2722 | + payload_installability = copy.deepcopy(payload_installability) |
| 2723 | + payload_installability["environments"][0]["os"] = {"compose": compose} |
| 2724 | + |
| 2725 | + rpminspect_repo = "https://github.com/fedora-ci/rpminspect-pipeline.git" |
2746 | 2726 | payload_rpminspect = { |
2747 | 2727 | "test": { |
2748 | 2728 | "tmt": { |
@@ -2839,10 +2819,6 @@ def test_koji_build_end_downstream( |
2839 | 2819 | distro, |
2840 | 2820 | ).and_return(compose) |
2841 | 2821 |
|
2842 | | - flexmock(KojiHelper).should_receive("get_candidate_tag").with_args("rawhide").and_return( |
2843 | | - "f43-updates-candidate" |
2844 | | - ) |
2845 | | - |
2846 | 2822 | pipeline_id = "5e8079d8-f181-41cf-af96-28e99774eb68" |
2847 | 2823 | flexmock(TestingFarmClient).should_receive( |
2848 | 2824 | "send_testing_farm_request", |
|
0 commit comments