9f0b3f5609
full diff: https://github.com/gotestyourself/gotest.tools/compare/v2.3.0...v3.0.1 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
24 lines
557 B
Text
24 lines
557 B
Text
package distribution
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
"github.com/docker/docker/internal/test/request"
|
|
"gotest.tools/v3/assert"
|
|
)
|
|
|
|
// tagging a named image in a new unprefixed repo should work
|
|
func TestUnknownManifest(t *testing.T) {
|
|
defer setupTest(t)()
|
|
client := request.NewAPIClient(t)
|
|
ctx := context.Background()
|
|
|
|
// By name
|
|
insp, err := client.DistributionInspect(ctx, "nosuchimage:latest", "")
|
|
assert.NilError(t, err)
|
|
assert.Equal(t, insp.Descriptor, nil)
|
|
|
|
//err = client.ImageTag(ctx, insp.ID, "testfoobarbaz")
|
|
//assert.NilError(t, err)
|
|
}
|