← Back to team overview

canonical-ubuntu-qa team mailing list archive

[Merge] ~andersson123/autopkgtest-cloud:test-request-link-to-run into autopkgtest-cloud:master

 

Tim Andersson has proposed merging ~andersson123/autopkgtest-cloud:test-request-link-to-run into autopkgtest-cloud:master.

Requested reviews:
  Canonical's Ubuntu QA (canonical-ubuntu-qa)

For more details, see:
https://code.launchpad.net/~andersson123/autopkgtest-cloud/+git/autopkgtest-cloud/+merge/472558
-- 
Your team Canonical's Ubuntu QA is requested to review the proposed merge of ~andersson123/autopkgtest-cloud:test-request-link-to-run into autopkgtest-cloud:master.
diff --git a/charms/focal/autopkgtest-web/webcontrol/request/app.py b/charms/focal/autopkgtest-web/webcontrol/request/app.py
index 4fca679..2a5526f 100644
--- a/charms/focal/autopkgtest-web/webcontrol/request/app.py
+++ b/charms/focal/autopkgtest-web/webcontrol/request/app.py
@@ -261,7 +261,6 @@ def index_root():
             os.path.expanduser("~/github-status-credentials.txt"),
             params["package"],
         )
-
         success = SUCCESS.format(
             EMPTY.join(ROW.format(key, val) for key, val in params.items())
         )
@@ -305,6 +304,11 @@ def index_root():
             )
             params["Result history"] = '<a href="{}">{}</a>'.format(url, url)
             params["UUID"] = uuid
+            params["Result url"] = os.path.join(
+                request.host_url,
+                "run",
+                uuid,
+            )
         success = SUCCESS.format(
             EMPTY.join(
                 ROW.format(key, val) for key, val in sorted(params.items())

Follow ups