github.com/lacework-dev/go-moby@v20.10.12+incompatible/integration/distribution/inspect_test.go.temp (about)

     1  package distribution
     2  
     3  import (
     4  	"context"
     5  	"testing"
     6  
     7  	"github.com/docker/docker/internal/test/request"
     8  	"gotest.tools/v3/assert"
     9  )
    10  
    11  // tagging a named image in a new unprefixed repo should work
    12  func TestUnknownManifest(t *testing.T) {
    13  	defer setupTest(t)()
    14  	client := request.NewAPIClient(t)
    15  	ctx := context.Background()
    16  
    17  	// By name
    18  	insp, err := client.DistributionInspect(ctx, "nosuchimage:latest", "")
    19  	assert.NilError(t, err)
    20  	assert.Equal(t, insp.Descriptor, nil)
    21  
    22  	//err = client.ImageTag(ctx, insp.ID, "testfoobarbaz")
    23  	//assert.NilError(t, err)
    24  }