Skip to content

Commit

Permalink
Merge pull request opencontainers#580 from q384566678/descr-test
Browse files Browse the repository at this point in the history
descriptor-test: add test
  • Loading branch information
jonboulle authored Mar 8, 2017
2 parents b36dbc4 + a2dab39 commit d2cd44a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions schema/descriptor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,21 @@ func TestDescriptor(t *testing.T) {
"size": 7682,
"digest": "sha256:5B0BCABD1ED22E9FB1310CF6C2DEC7CDEF19F0AD69EFA1F392E94A4333501270"
}
`,
fail: true,
},

// expected failure: urls does not match format (invalide url characters)
{
descriptor: `
{
"mediaType": "application/vnd.oci.image.manifest.v1+json",
"size": 7682,
"digest": "sha256:5b0bcabd1ed22e9fb1310cf6c2dec7cdef19f0ad69efa1f392e94a4333501270",
"urls": [
"value"
]
}
`,
fail: true,
},
Expand Down

0 comments on commit d2cd44a

Please sign in to comment.