From 20aecf1d7b8c975e22679bb5e5b6502c49c111b5 Mon Sep 17 00:00:00 2001 From: Mike Brown Date: Thu, 19 Jul 2018 19:41:31 -0500 Subject: [PATCH] added test for initial oci schema version Signed-off-by: Mike Brown --- registry/storage/manifeststore_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/registry/storage/manifeststore_test.go b/registry/storage/manifeststore_test.go index c6a2ba06..7c9b9edf 100644 --- a/registry/storage/manifeststore_test.go +++ b/registry/storage/manifeststore_test.go @@ -475,6 +475,10 @@ func testOCIManifestStorage(t *testing.T, testname string, includeMediaTypes boo t.Fatalf("%s: unexpected MediaType for result, %s", testname, fetchedManifest.MediaType) } + if fetchedManifest.SchemaVersion != ocischema.SchemaVersion.SchemaVersion { + t.Fatalf("%s: unexpected schema version for result, %d", testname, fetchedManifest.SchemaVersion) + } + payloadMediaType, _, err := fromStore.Payload() if err != nil { t.Fatalf("%s: error getting payload %v", testname, err)