blob: 5a821f64156480eb0dfc15c4cc5cb0d66e1d3d6b [file] [log] [blame]
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)
}