diff --git a/tests/plugins/test_flag_ci_pr.py b/tests/plugins/test_flag_ci_pr.py index 0326bff..d37315d 100644 --- a/tests/plugins/test_flag_ci_pr.py +++ b/tests/plugins/test_flag_ci_pr.py @@ -139,7 +139,7 @@ class TestFlagCIPRToddler: "artifact": { "id": 456, "commit_hash": "abcdefghijklmnopqrst", - "repository": "namespace/name", + "repository": "https://host.c/namespace/name", }, "run": {"url": "https://example.com/testing",}, } @@ -154,6 +154,7 @@ class TestFlagCIPRToddler: == None ) assert ( - caplog.records[-2].message == "Request to https://pagure.io returned: 200" + caplog.records[-3].message == "Request to https://pagure.io returned: 200" ) - assert caplog.records[-1].message == "All clear" + assert caplog.records[-2].message == "All clear" + assert caplog.records[-1].message == "User-URL: https://host.c/namespace/namepull-request/456" diff --git a/tests/plugins/test_flag_commit_build.py b/tests/plugins/test_flag_commit_build.py index 6bb82b0..bfb05fc 100644 --- a/tests/plugins/test_flag_commit_build.py +++ b/tests/plugins/test_flag_commit_build.py @@ -286,7 +286,8 @@ class TestFlagCommitBuildToddler: == None ) assert ( - caplog.records[-2].message + caplog.records[-3].message == "Request to https://src.fedoraproject.org returned: 200" ) - assert caplog.records[-1].message == "All clear" + assert caplog.records[-2].message == "All clear" + assert caplog.records[-1].message == "User-URL: https://src.fedoraproject.org/rpms/guake/c/commit_hash123" diff --git a/toddlers/plugins/flag_ci_pr.py b/toddlers/plugins/flag_ci_pr.py index ae7fcc8..4c6aa24 100644 --- a/toddlers/plugins/flag_ci_pr.py +++ b/toddlers/plugins/flag_ci_pr.py @@ -143,7 +143,7 @@ class FlagCIPR(ToddlerBase): return 1 else: _log.info("All clear") - _log.debug( + _log.info( "User-URL: %s" % msg["artifact"]["repository"] + "/".join(["pull-request", pr_id]) ) diff --git a/toddlers/plugins/flag_commit_build.py b/toddlers/plugins/flag_commit_build.py index a246e15..f2cb869 100644 --- a/toddlers/plugins/flag_commit_build.py +++ b/toddlers/plugins/flag_commit_build.py @@ -150,7 +150,7 @@ class FlagCommitBuild(ToddlerBase): # raise Exception("Did not successfully flag the build in dist-git") else: _log.info("All clear") - _log.debug( + _log.info( "User-URL: %s" % pagure_url + "/" + "/".join(["rpms", msg["name"], "c", commit])