github.com/ttys3/engine@v17.12.1-ce-rc2+incompatible/client/distribution_inspect_test.go (about) 1 package client 2 3 import ( 4 "net/http" 5 "testing" 6 7 "github.com/stretchr/testify/assert" 8 "golang.org/x/net/context" 9 ) 10 11 func TestDistributionInspectUnsupported(t *testing.T) { 12 client := &Client{ 13 version: "1.29", 14 client: &http.Client{}, 15 } 16 _, err := client.DistributionInspect(context.Background(), "foobar:1.0", "") 17 assert.EqualError(t, err, `"distribution inspect" requires API version 1.30, but the Docker daemon API version is 1.29`) 18 }