integration/client: replace hardcoded strings for OCI-spec consts

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2023-10-17 12:30:31 +02:00
parent d3f5e0c90e
commit b006f1c159
2 changed files with 31 additions and 31 deletions

View File

@@ -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" {