1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/integration/distribution/inspect_test.go.temp
2020-02-11 00:06:42 +01:00

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)
}