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

feat: update notation cert list command output #798

Merged
merged 7 commits into from
Oct 11, 2023

Conversation

Two-Hearts
Copy link
Contributor

@Two-Hearts Two-Hearts commented Oct 10, 2023

This PR updates the output format of notation cert list command.
Example output,

STORE TYPE         STORE NAME         CERTIFICATE   
ca                 myStore            myCert.pem    
ca                 myStore            myCert2.pem    
ca                 anotherStore       myCert3.crt    

Resolves #609
Resolves #772

Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
@codecov-commenter
Copy link

codecov-commenter commented Oct 10, 2023

Codecov Report

Merging #798 (52213ae) into main (93e6853) will increase coverage by 64.07%.
The diff coverage is 50.00%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@            Coverage Diff            @@
##           main     #798       +/-   ##
=========================================
+ Coverage      0   64.07%   +64.07%     
=========================================
  Files         0       40       +40     
  Lines         0     2285     +2285     
=========================================
+ Hits          0     1464     +1464     
- Misses        0      699      +699     
- Partials      0      122      +122     
Files Coverage Δ
cmd/notation/internal/truststore/truststore.go 29.41% <100.00%> (ø)
internal/ioutil/print.go 56.86% <80.00%> (ø)
cmd/notation/cert/list.go 48.95% <20.68%> (ø)

... and 37 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@Two-Hearts Two-Hearts self-assigned this Oct 10, 2023
@Two-Hearts Two-Hearts added the enhancement New feature or request label Oct 10, 2023
@Two-Hearts Two-Hearts added this to the 1.1.0 milestone Oct 10, 2023
@Two-Hearts
Copy link
Contributor Author

Two-Hearts commented Oct 10, 2023

@toddysm @sozercan This PR intends to solve issue #609 and #772. Does the update look good to you? /cc: @yizha1

JeyJeyGao
JeyJeyGao previously approved these changes Oct 10, 2023
Copy link
Contributor

@JeyJeyGao JeyJeyGao left a comment

Choose a reason for hiding this comment

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

LGTM

@FeynmanZhou
Copy link
Member

The output looks much cleaner and straightforward than before. LGTM

@shizhMSFT shizhMSFT changed the title enhance: update notation cert list command output feat: update notation cert list command output Oct 10, 2023
internal/ioutil/print.go Show resolved Hide resolved
cmd/notation/internal/truststore/truststore.go Outdated Show resolved Hide resolved
internal/ioutil/print.go Show resolved Hide resolved
internal/ioutil/print.go Show resolved Hide resolved
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
yizha1
yizha1 previously approved these changes Oct 11, 2023
Copy link
Contributor

@yizha1 yizha1 left a comment

Choose a reason for hiding this comment

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

Thanks @Two-Hearts

Updates on certificate.md LGTM

priteshbandi
priteshbandi previously approved these changes Oct 11, 2023
Copy link
Contributor

@priteshbandi priteshbandi left a comment

Choose a reason for hiding this comment

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

LGTM

shizhMSFT
shizhMSFT previously approved these changes Oct 11, 2023
Copy link
Contributor

@shizhMSFT shizhMSFT left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
@Two-Hearts
Copy link
Contributor Author

Code cleaned up based on @shizhMSFT's suggestions.

Copy link
Contributor

@shizhMSFT shizhMSFT left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@priteshbandi priteshbandi left a comment

Choose a reason for hiding this comment

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

LGTM

@priteshbandi priteshbandi merged commit f205e6b into notaryproject:main Oct 11, 2023
5 checks passed
@Two-Hearts Two-Hearts deleted the cert branch October 12, 2023 03:25
@shizhMSFT shizhMSFT mentioned this pull request Nov 6, 2023
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
7 participants