-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Refactor `HasWriteAccess` and `HasReadAccess` to `VerfiyWriteAccess` and `VerifyReadAccess`. Both methods now only return an error instead of an error and bool. - make use of `errors.Wrapf(..)` - make use of `assert.EqualError(..)` Updated error message format: ``` [prepare] Error verifying write access to "dev.registry.pivotal.io/garbage": GET https://dev.registry.pivotal.io/service/token?scope=repository%3Agarbage%3Apush%2Cpull&service=harbor-registry: unsupported status code 500 ``` Signed-off-by: Sukhil Suresh <ssuresh@pivotal.io>
- Loading branch information
1 parent
576542f
commit e9ba538
Showing
3 changed files
with
49 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters