Skip to content

Commit 03aafaa

Browse files
committed
Update the integration test.
Signed-off-by: Lantao Liu <[email protected]>
1 parent 60f73b6 commit 03aafaa

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

client_unix_test.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ package containerd
2020

2121
import (
2222
"runtime"
23+
"testing"
24+
25+
"github.com/containerd/containerd/platforms"
2326
)
2427

2528
const (
@@ -48,3 +51,20 @@ func init() {
4851
testImage = "docker.io/library/alpine:latest"
4952
}
5053
}
54+
55+
func TestImagePullSchema1WithEmptyLayers(t *testing.T) {
56+
client, err := newClient(t, address)
57+
if err != nil {
58+
t.Fatal(err)
59+
}
60+
defer client.Close()
61+
62+
ctx, cancel := testContext(t)
63+
defer cancel()
64+
65+
schema1TestImageWithEmptyLayers := "gcr.io/google-containers/busybox@sha256:d8d3bc2c183ed2f9f10e7258f84971202325ee6011ba137112e01e30f206de67"
66+
_, err = client.Pull(ctx, schema1TestImageWithEmptyLayers, WithPlatform(platforms.DefaultString()), WithSchema1Conversion, WithPullUnpack)
67+
if err != nil {
68+
t.Fatal(err)
69+
}
70+
}

0 commit comments

Comments
 (0)