integration-cli: TestPullFailsWithAlteredManifest: use OCI manifest

The OCI types should be able to unmarshal the image manifest (regardless
if it was created from the legacy distribution types or otherwise), so
we can drop the use of the legacy distribution types here.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-07-05 17:52:48 +02:00
parent 4e818970e2
commit fd47ccef7b

View File

@@ -15,6 +15,7 @@ import (
"github.com/docker/docker/integration-cli/cli/build"
"github.com/docker/docker/internal/lazyregexp"
"github.com/opencontainers/go-digest"
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"
"gotest.tools/v3/skip"
@@ -518,7 +519,7 @@ func (s *DockerRegistrySuite) TestPullFailsWithAlteredManifest(t *testing.T) {
// Load the target manifest blob.
manifestBlob := s.reg.ReadBlobContents(t, manifestDigest)
var imgManifest schema2.Manifest
var imgManifest ocispec.Manifest
err = json.Unmarshal(manifestBlob, &imgManifest)
assert.NilError(t, err, "unable to decode image manifest from blob")