From 67cc91cfd1ea63440e6623ccf910b5fc9d24b205 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Tue, 3 Nov 2026 00:01:15 -0500 Subject: [PATCH] Test release signing branch and rollout gates --- tests/test_sign_linux.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_sign_linux.py b/tests/test_sign_linux.py index cc8ae84..2acf73d 100644 --- a/tests/test_sign_linux.py +++ b/tests/test_sign_linux.py @@ -146,6 +146,8 @@ class SigningWiringTests(unittest.TestCase): names = [s.get("name") for s in job["steps"]] imported = next(i for i, u in enumerate(uses) if u.startswith("storytold/craft-common-actions/actions/import-signing-key@")) self.assertEqual(job["steps"][imported]["with"]["key"], "${{ secrets.LINUX_SIGNING_KEY }}") + self.assertEqual(job["steps"][imported]["if"], "github.ref == 'refs/heads/release'") + self.assertEqual(job["env"]["OCI_SIGNATURES_READY"], "${{ vars.LINUX_OCI_SIGNATURES_READY }}") self.assertLess(imported, names.index("Build the Flatpak bundle")) upload = next(s for s in job["steps"] if s.get("uses", "").startswith("actions/upload-artifact@")) self.assertIn("dist/release/*.oci-manifest.json", upload["with"]["path"])