Merged
Conversation
| err = ociDest.PutManifest([]byte(m)) | ||
| require.Error(t, err) | ||
| assert.Contains(t, `Unrecognized manifest media type: "application/vnd.docker.distribution.manifest.v1+prettyjws"`, err.Error()) | ||
| assert.Equal(t, `can't create an OCI manifest from Docker V2 schema 1 manifest`, err.Error()) |
Member
Author
There was a problem hiding this comment.
I think it's ok not to differentiate between signed and not-signed here
Collaborator
There was a problem hiding this comment.
Yes; the users don’t even want to know about schema versions, let alone the pointless signatures.
Collaborator
That’s a good point; OTOH the set of MIME types detected by |
Member
Author
you are right, fixing it! |
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
38f9a6b to
e9c5a80
Compare
Member
Author
|
@mtrmac fixed PTAL |
Member
Author
Collaborator
runcom
added a commit
to runcom/skopeo-1
that referenced
this pull request
Sep 12, 2016
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
runcom
added a commit
to containers/skopeo
that referenced
this pull request
Sep 12, 2016
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
alright @mtrmac this should be the right fix for containers/skopeo#198 - note that `GuessManifestMIMEType cannot actually return a meaningful string to be printed when the mime type isn't recognized so - we may just debug print the manifest.