fix(plugin): fail closed on incomplete certification records

This commit is contained in:
RockChinQ
2026-09-25 13:13:35 +00:00
parent 9f296bd57e
commit 300f5825bb
5 changed files with 126 additions and 27 deletions
@@ -60,6 +60,8 @@ async def test_install_plugin_admits_archive_before_persistence_and_applies_sele
assert persisted_info['_certification']['runtime_profile'] == expected_profile
assert persisted_info['_certification']['artifact_digest'] == hashlib.sha256(package).hexdigest()
assert persisted_info['_certification']['normalized_digest'] == _normalized_digest(package)
if archive_kind == 'signed_shared':
assert persisted_info['_certification']['certificate_id'] == 'ephemeral'
connector.handler.apply_plugin_installation.assert_awaited_once_with(
binding,
artifact_package=package,