Skip to content

Commit

Permalink
Merge pull request #446 from xiekeyang/manifest-unit-test
Browse files Browse the repository at this point in the history
manifest test case should involve required fields
  • Loading branch information
jonboulle authored Nov 17, 2016
2 parents b716c40 + fb409fd commit f40938c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion schema/manifest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,19 @@ func TestManifest(t *testing.T) {
manifest: `
{
"schemaVersion": 2,
"mediaType": "invalid"
"mediaType": "invalid",
"config": {
"mediaType": "application/vnd.oci.image.config.v1+json",
"size": 1470,
"digest": "sha256:c86f7763873b6c0aae22d963bab59b4f5debbed6685761b5951584f6efb0633b"
},
"layers": [
{
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
"size": 148,
"digest": "sha256:c57089565e894899735d458f0fd4bb17a0f1e0df8d72da392b85c9b35ee777cd"
}
]
}
`,
fail: true,
Expand Down

0 comments on commit f40938c

Please sign in to comment.