|
9 | 9 | "strings" |
10 | 10 | "testing" |
11 | 11 |
|
12 | | - "github.com/docker/docker/api/types" |
13 | 12 | imagetypes "github.com/docker/docker/api/types/image" |
14 | 13 | "github.com/docker/docker/errdefs" |
15 | 14 | "github.com/docker/docker/image" |
@@ -48,7 +47,7 @@ func TestImportExtremelyLargeImageWorks(t *testing.T) { |
48 | 47 | reference := strings.ToLower(t.Name()) + ":v42" |
49 | 48 |
|
50 | 49 | _, err = client.ImageImport(ctx, |
51 | | - types.ImageImportSource{Source: imageRdr, SourceName: "-"}, |
| 50 | + imagetypes.ImportSource{Source: imageRdr, SourceName: "-"}, |
52 | 51 | reference, |
53 | 52 | imagetypes.ImportOptions{}) |
54 | 53 | assert.NilError(t, err) |
@@ -111,7 +110,7 @@ func TestImportWithCustomPlatform(t *testing.T) { |
111 | 110 | reference := "import-with-platform:tc-" + strconv.Itoa(i) |
112 | 111 |
|
113 | 112 | _, err = client.ImageImport(ctx, |
114 | | - types.ImageImportSource{Source: imageRdr, SourceName: "-"}, |
| 113 | + imagetypes.ImportSource{Source: imageRdr, SourceName: "-"}, |
115 | 114 | reference, |
116 | 115 | imagetypes.ImportOptions{Platform: tc.platform}) |
117 | 116 | assert.NilError(t, err) |
@@ -177,7 +176,7 @@ func TestImportWithCustomPlatformReject(t *testing.T) { |
177 | 176 | ctx := testutil.StartSpan(ctx, t) |
178 | 177 | reference := "import-with-platform:tc-" + strconv.Itoa(i) |
179 | 178 | _, err = client.ImageImport(ctx, |
180 | | - types.ImageImportSource{Source: imageRdr, SourceName: "-"}, |
| 179 | + imagetypes.ImportSource{Source: imageRdr, SourceName: "-"}, |
181 | 180 | reference, |
182 | 181 | imagetypes.ImportOptions{Platform: tc.platform}) |
183 | 182 |
|
|
0 commit comments