added test for initial oci schema version
Signed-off-by: Mike Brown <brownwm@us.ibm.com>
This commit is contained in:
parent
5f588fbf9b
commit
20aecf1d7b
@ -475,6 +475,10 @@ func testOCIManifestStorage(t *testing.T, testname string, includeMediaTypes boo
|
|||||||
t.Fatalf("%s: unexpected MediaType for result, %s", testname, fetchedManifest.MediaType)
|
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()
|
payloadMediaType, _, err := fromStore.Payload()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("%s: error getting payload %v", testname, err)
|
t.Fatalf("%s: error getting payload %v", testname, err)
|
||||||
|
Loading…
Reference in New Issue
Block a user