Skip to content

Support modifying role thresholds#135

Merged
trishankatdatadog merged 4 commits intotheupdateframework:masterfrom
asraa:set-threshold
Jun 30, 2021
Merged

Support modifying role thresholds#135
trishankatdatadog merged 4 commits intotheupdateframework:masterfrom
asraa:set-threshold

Conversation

@asraa
Copy link
Copy Markdown
Contributor

@asraa asraa commented Jun 24, 2021

Adds the ability to modify role thresholds in the CLI

Fixes #6

Question: are there CLI tests?

Signed-off-by: Asra Ali [email protected]

Copy link
Copy Markdown
Collaborator

@mnm678 mnm678 left a comment

Choose a reason for hiding this comment

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

My go skills are a bit rusty (no pun intended), but this looks good to me. There's a couple of bits that would need to change for delegations, but I don't think that's a blocker.

asraa added 3 commits June 24, 2021 12:28
Signed-off-by: Asra Ali <[email protected]>
Signed-off-by: Asra Ali <[email protected]>
Copy link
Copy Markdown
Contributor

@trishankatdatadog trishankatdatadog 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 functionality, thanks! Clearly the code will need to change when we add delegations, but this is very much needed.

@trishankatdatadog
Copy link
Copy Markdown
Contributor

I am happy with merging. Marina?

@mnm678
Copy link
Copy Markdown
Collaborator

mnm678 commented Jun 30, 2021

I am happy with merging. Marina?

LGTM, but I'm not a maintainer

@trishankatdatadog trishankatdatadog merged commit 22a9481 into theupdateframework:master Jun 30, 2021
@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 978833412

  • 19 of 34 (55.88%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 67.393%

Changes Missing Coverage Covered Lines Changed/Added Lines %
repo.go 19 34 55.88%
Totals Coverage Status
Change from base Build 453172856: 0.2%
Covered Lines: 1577
Relevant Lines: 2340

💛 - Coveralls

mnm678 pushed a commit to mnm678/go-tuf that referenced this pull request Oct 21, 2021
* Support modifying role thresholds

Signed-off-by: Asra Ali <[email protected]>

* add getter

Signed-off-by: Asra Ali <[email protected]>

* error condition when delegation

Signed-off-by: Asra Ali <[email protected]>

* fix valid manifest

Signed-off-by: Asra Ali <[email protected]>
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.

Support modifying role thresholds via the CLI

4 participants