Skip to content

Commit

Permalink
Merge pull request #6075 from dmcgowan/1.4-update-test-images
Browse files Browse the repository at this point in the history
[release/1.4] Update test images to use Github package registry
  • Loading branch information
estesp committed Sep 30, 2021
2 parents 8848fdb + 3cd12c7 commit 8a3cfaf
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ func TestImagePullAllPlatforms(t *testing.T) {
defer cancel()

cs := client.ContentStore()
img, err := client.Fetch(ctx, "docker.io/library/busybox:latest")
img, err := client.Fetch(ctx, "ghcr.io/containerd/busybox:latest")
if err != nil {
t.Fatal(err)
}
Expand Down
12 changes: 6 additions & 6 deletions client_unix_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,17 @@ var (
func init() {
switch runtime.GOARCH {
case "386":
testImage = "docker.io/i386/alpine:latest"
testImage = "ghcr.io/containerd/alpine:latest-i386"
case "arm":
testImage = "docker.io/arm32v6/alpine:latest"
testImage = "ghcr.io/containerd/alpine:latest-arm32v6"
case "arm64":
testImage = "docker.io/arm64v8/alpine:latest"
testImage = "ghcr.io/containerd/alpine:latest-arm64v8"
case "ppc64le":
testImage = "docker.io/ppc64le/alpine:latest"
testImage = "ghcr.io/containerd/alpine:latest-ppc64le"
case "s390x":
testImage = "docker.io/s390x/alpine:latest"
testImage = "ghcr.io/containerd/alpine:latest-s390x"
default:
testImage = "docker.io/library/alpine:latest"
testImage = "ghcr.io/containerd/alpine:latest"
}
}

Expand Down
4 changes: 2 additions & 2 deletions image_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func TestImageIsUnpacked(t *testing.T) {
t.Skip()
}

const imageName = "docker.io/library/busybox:latest"
const imageName = "ghcr.io/containerd/busybox:latest"
ctx, cancel := testContext(t)
defer cancel()

Expand Down Expand Up @@ -140,7 +140,7 @@ func TestImageUsage(t *testing.T) {
t.Skip()
}

imageName := "docker.io/library/busybox:latest"
imageName := "ghcr.io/containerd/busybox:latest"
ctx, cancel := testContext(t)
defer cancel()

Expand Down
2 changes: 1 addition & 1 deletion lease_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func TestLeaseResources(t *testing.T) {
defer ls.Delete(ctx, l, leases.SynchronousDelete)

// step 1: download image
imageName := "docker.io/library/busybox:1.25"
imageName := "ghcr.io/containerd/busybox:1.28"

image, err := client.Pull(ctx, imageName, WithPullUnpack, WithPullSnapshotter("native"))
if err != nil {
Expand Down

0 comments on commit 8a3cfaf

Please sign in to comment.