Skip to content

tests: Refactor key rotation in simulator - #1766

Merged
lukpueh merged 1 commit into
theupdateframework:developfrom
jku:tests-sim-add-key-rotation
Feb 3, 2022
Merged

tests: Refactor key rotation in simulator#1766
lukpueh merged 1 commit into
theupdateframework:developfrom
jku:tests-sim-add-key-rotation

Conversation

@jku

@jkujku commented Jan 11, 2022

Copy link
Copy Markdown
Member

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 jkukkonen@vmware.com

@jku
jku requested a review from kairoaraujoJanuary 11, 2022 17:24
@coveralls

coveralls commented Jan 11, 2022

Copy link
Copy Markdown

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%

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

💛 - Coveralls

@kairoaraujokairoaraujo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Very nice refactoring.

Comment threadtests/repository_simulator.py Outdated
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 <jkukkonen@vmware.com>
@jku
jkuforce-pushed the tests-sim-add-key-rotation branch from b11b3b3 to a38bf7cCompareJanuary 12, 2022 07:34
@jku

jku commented Jan 12, 2022

Copy link
Copy Markdown
MemberAuthor

improved variable names as Kairo suggested, no other changes

@jkujku mentioned this pull request Jan 28, 2022

@MVrachevMVrachev left a comment

Copy link
Copy Markdown
Collaborator

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.

@lukpuehlukpueh left a comment

Copy link
Copy Markdown
Member

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:developFeb 3, 2022
@jku
jku deleted the tests-sim-add-key-rotation branch December 30, 2024 09:11
Sign up for freeto 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

@jku@coveralls@kairoaraujo@lukpueh@MVrachev