Skip to content

Conversation

jku
Copy link
Member

@jku jku commented Jan 11, 2022

Add a method to rotate roles keys into RepositorySimulator (only
top-level roles are supported for now). Rotation is used in four
places already and this refactoring makes the tests easier to
understand.

Signed-off-by: Jussi Kukkonen [email protected]

@jku jku requested a review from kairoaraujo January 11, 2022 17:24
@coveralls
Copy link

coveralls commented Jan 11, 2022

Pull Request Test Coverage Report for Build 1683754305

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+1.0%) to 98.676%

Totals Coverage Status
Change from base Build 1683264892: 1.0%
Covered Lines: 3936
Relevant Lines: 3959

💛 - Coveralls

Copy link
Contributor

@kairoaraujo kairoaraujo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice refactoring.

Add a method to rotate roles keys into RepositorySimulator (only
top-level roles are supported for now). Rotation is used in four
places already and this refactoring makes the tests easier to
understand.

Signed-off-by: Jussi Kukkonen <[email protected]>
@jku jku force-pushed the tests-sim-add-key-rotation branch from b11b3b3 to a38bf7c Compare January 12, 2022 07:34
@jku
Copy link
Member Author

jku commented Jan 12, 2022

improved variable names as Kairo suggested, no other changes

@jku jku mentioned this pull request Jan 28, 2022
Copy link
Collaborator

@MVrachev MVrachev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree with Kairo.
Great refactoring.

Copy link
Member

@lukpueh lukpueh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice DRY, @jku!

@lukpueh lukpueh merged commit 215073e into theupdateframework:develop Feb 3, 2022
@jku jku deleted the tests-sim-add-key-rotation branch December 30, 2024 09:11
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.

5 participants