Compare commits

..
2 changed files with 11 additions and 2 deletions
+9 -1
View File
@@ -95,7 +95,15 @@
"unsigned_artifact_name": "nightly-unsigned-linux-x86_64",
"trust": {
"fingerprint": "2B76741B414AAD6CD33E631213A005C0B9D7C3ED"
}
},
"package_formats": [
"appimage",
"arch",
"deb",
"flatpak",
"oci",
"rpm"
]
},
"macos-aarch64": {
"unsigned_artifact_name": "nightly-unsigned-macos-aarch64",
+2 -1
View File
@@ -420,7 +420,8 @@ class NightlyInstalledPolicy(unittest.TestCase):
for platform, (field, value) in NIGHTLY_TRUST.items():
row = self.policy["platforms"][platform]
with self.subTest(platform=platform):
self.assertEqual(set(row), {"unsigned_artifact_name", "trust"})
expected_keys = {"unsigned_artifact_name", "trust", "package_formats"} if platform == "linux-x86_64" and "package_formats" in row else {"unsigned_artifact_name", "trust"}
self.assertEqual(set(row), expected_keys)
self.assertEqual(row["unsigned_artifact_name"], f"nightly-unsigned-{platform}")
self.assertEqual(row["trust"], {field: value})