mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user