From fb409fd192cfbff7c6dce91f72dc5f2595757c2f Mon Sep 17 00:00:00 2001 From: xiekeyang Date: Fri, 4 Nov 2016 17:59:35 +0800 Subject: [PATCH] manifest test case should involve required fields Signed-off-by: xiekeyang --- schema/manifest_test.go | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/schema/manifest_test.go b/schema/manifest_test.go index f1cb51d02..2de950785 100644 --- a/schema/manifest_test.go +++ b/schema/manifest_test.go @@ -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,