integration-cli: TestPullFailsWithAlteredLayer: 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:56:35 +02:00
parent fd47ccef7b
commit ac9d5a6068

View File

@@ -9,7 +9,6 @@ import (
"strings"
"testing"
"github.com/docker/distribution/manifest/schema2"
"github.com/docker/docker/api/types/image"
"github.com/docker/docker/integration-cli/cli"
"github.com/docker/docker/integration-cli/cli/build"
@@ -565,7 +564,7 @@ func (s *DockerRegistrySuite) TestPullFailsWithAlteredLayer(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)