Skip to content

Commit da1bef5

Browse files
committed
Adjust tests
Signed-off-by: Cristian Le <git@lecris.dev>
1 parent b1b883f commit da1bef5

1 file changed

Lines changed: 13 additions & 34 deletions

File tree

tests/integration/test_listen_to_fedmsg.py

Lines changed: 13 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2676,40 +2676,6 @@ def test_koji_build_end_downstream(
26762676
koji_build_pr_downstream.should_receive("set_status").with_args("success").once()
26772677
koji_build_pr_downstream.should_receive("set_build_logs_urls")
26782678
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"
27132679
common_payload_no_compose = {
27142680
"environments": [
27152681
{
@@ -2743,6 +2709,19 @@ def test_koji_build_end_downstream(
27432709
},
27442710
}
27452711

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["environments"][0]["os"] = {"compose": compose}
2723+
2724+
rpminspect_repo = "https://github.com/fedora-ci/rpminspect-pipeline.git"
27462725
payload_rpminspect = {
27472726
"test": {
27482727
"tmt": {

0 commit comments

Comments
 (0)