-
Notifications
You must be signed in to change notification settings - Fork 511
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
notary delete CLI command #895
Conversation
tempFile.Close() | ||
defer os.Remove(tempFile.Name()) | ||
|
||
// Setup certificate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non-blocking nitpick - setting up the cert and adding a delegation role + target to the delegation seems to also be done by TestPurge
and TestClientDelegationsInteraction
and TestClientDelegationsPublishing
, although this one doesn't need the key ID of the cert. I was wondering if we could factor this logic out to a helper function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea - added a helper to generate a private key, cert, and keyID
Thanks for adding this so quickly @riyazdf! Couple of minor nits on tests, but otherwise LGTM! |
LGTM! Thanks for fixing this so fast! |
Signed-off-by: Riyaz Faizullabhoy <[email protected]>
Signed-off-by: Riyaz Faizullabhoy <[email protected]>
LGTM! Tests look great too 👍 |
Wires up
DeleteTrustData
from the client library to anotary delete
command, which will delete all local TUF metadata by default and additionally the remote metadata if the--remote
flag is given.Closes #710
Signed-off-by: Riyaz Faizullabhoy [email protected]