Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More cleanup, refactor some rollback tests #129

Merged
merged 2 commits into from
Aug 13, 2024

Conversation

jku
Copy link
Member

@jku jku commented Aug 12, 2024

  • Remove RepositorySimulator.downgrade_*() methods: they don't seem to provide much value
  • Rename add_target() (to make it clear it's about artifacts, not metadata)
  • Fix add_key() so it supports other delegators
  • Rollback tests:
    • Add comments, docstrings and return value asserts to rollback tests
    • Remove a few update_timestamp() calls that do not seem valuable to the rollback tests

jku added 2 commits August 12, 2024 19:27
Calling the downgrade_*() methods does not seem to do anything more than
decrease the version (since the meta contents are already correct): do
that instead.

Add comments, docstrings and return value asserts.

Remove a few update_timestamp() calls that do not seem valuable to the
test.

Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
* Remove unused methods
* Make add_key() support delegating roles other than root
* Rename add_target -> add_artifact (to make it clear this is artifacts
  and not targets the role

Also remove unused simple_server.py

Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
@jku jku merged commit 3b8fdcc into theupdateframework:main Aug 13, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RepositorySimulator.add_key() only works for top level roles
2 participants