integration/client: replace hardcoded strings for OCI-spec consts
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -171,10 +171,10 @@ func assertOCITar(t *testing.T, r io.Reader, docker bool) {
|
||||
t.Error(err)
|
||||
continue
|
||||
}
|
||||
if h.Name == "oci-layout" {
|
||||
if h.Name == ocispec.ImageLayoutFile {
|
||||
foundOCILayout = true
|
||||
}
|
||||
if h.Name == "index.json" {
|
||||
if h.Name == ocispec.ImageIndexFile {
|
||||
foundIndexJSON = true
|
||||
}
|
||||
if h.Name == "manifest.json" {
|
||||
|
||||
Reference in New Issue
Block a user