-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Description
copying from in #130 (comment)
We probably should modify RepositorySimulator so that it signs metadata explicitly (and not magically at request time as it now does)
Potential design:
- keep
mdsdictionary for storing the "current metadata working set" - remove
signed_roots, addsigned_mds: dict[str, list[bytes]]where key is rolename - remove
publish_root()andbump_root_by_one(), add something likepublish(role: str, bump_version: bool = True)that bumps version if requested, makes a copy of roles current metadata frommds, signs it, adds bytes to signed_mds fetch_metadata()now looks up data only fromsigned_mds(and can return old versions)- There's plenty of potential test changes, every test needs to be reviewed:
- any test that modifies any targets role likely needs to
publish(role)at least once - same for any tests that modify timestamp or snapshot without calling
update_*()afterwards - old metadata versions are now available from repository (this is more realistic so sounds good)
- anything else?
- any test that modifies any targets role likely needs to
Metadata
Metadata
Assignees
Labels
No labels