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

Add permission to ConfigureRepo function #1315

Merged
merged 1 commit into from
Apr 9, 2018

Conversation

molepigeon
Copy link
Contributor

Fixes #1308

Signed-off-by: Michael Hough michaelh@uk.ibm.com

@docker-jenkins
Copy link

Can one of the admins verify this patch?

@molepigeon
Copy link
Contributor Author

I think this could use a unit test to prevent a similar regression, but I'm not familiar enough with the existing tests to see something I could modify to test this. Could someone point me in the right direction, and I'll write one 🙂

@justincormack
Copy link
Contributor

I think it would be fine to have a test that uses the public docker notary instance (maybe behind a test flag in case people want to disable this) - it seems hard to set up anything more localised.

@justincormack
Copy link
Contributor

Aside from test LGTM.

@endophage
Copy link
Contributor

Jenkins test this please

@HuKeping
Copy link
Contributor

seems rebase needed :-)

@molepigeon molepigeon force-pushed the permissions branch 2 times, most recently from edbb9bb to bf8d95f Compare March 27, 2018 16:08
@molepigeon
Copy link
Contributor Author

molepigeon commented Mar 27, 2018

Rebased and added tests. Sorry for taking a while to get back!

Copy link
Contributor

@cyli cyli left a comment

Choose a reason for hiding this comment

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

Thank you so much for adding the test setup @molepigeon! I would not block on this, as we would like to get this fix out quickly, but it might make sense for the tests to test the individual commands instead, since if someone changes the permissions passed to ConfigureRepo, there are no tests for that particular regression.

If you wanted to make the change, I think something like https://github.com/theupdateframework/notary/blob/master/cmd/notary/integration_test.go#L122 might be used.

Otherwise, I'm ok with merging this as is, and then fixing the tests in a different PR.

@justincormack
Copy link
Contributor

This needs a rebase. @cyli @molepigeon can we get this merged!

Fixes notaryproject#1308

Signed-off-by: Michael Hough <michaelh@uk.ibm.com>
@molepigeon
Copy link
Contributor Author

@justincormack @cyli rebase done. IMO it'd be best to go with fixing the tests in a separate PR, to avoid blocking this any further.

Copy link
Contributor

@endophage endophage left a comment

Choose a reason for hiding this comment

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

LGTM

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.

6 participants