Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Conversation

@riyazdf
Copy link
Contributor

@riyazdf riyazdf commented Aug 3, 2016

Wires up DeleteTrustData from the client library to a notary 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 riyaz.faizullabhoy@docker.com

@riyazdf riyazdf added this to the Notary 0.4 milestone Aug 3, 2016
tempFile.Close()
defer os.Remove(tempFile.Name())

// Setup certificate
Copy link
Contributor

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?

Copy link
Contributor Author

@riyazdf riyazdf Aug 3, 2016

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

@cyli
Copy link
Contributor

cyli commented Aug 3, 2016

Thanks for adding this so quickly @riyazdf! Couple of minor nits on tests, but otherwise LGTM!

@cyli
Copy link
Contributor

cyli commented Aug 3, 2016

LGTM! Thanks for fixing this so fast!

riyazdf added 2 commits August 3, 2016 18:24
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
@riyazdf riyazdf self-assigned this Aug 4, 2016
@endophage
Copy link
Contributor

LGTM! Tests look great too 👍

@endophage endophage merged commit 0a7b329 into master Aug 8, 2016
@riyazdf riyazdf deleted the delete-cli-cmd branch August 9, 2016 04:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants