testing: use Docker Hub registry mirror for additional tests (#25733)

This image was missed in https://github.com/hashicorp/nomad/pull/25703 and is
resulting in rate limited in tests.
This commit is contained in:
Tim Gross
2025-04-24 08:50:32 -04:00
committed by GitHub
parent 4b40e10e68
commit 4d7ed88a8d

View File

@@ -1005,8 +1005,14 @@ func TestDockerDriver_ForcePull_RepoDigest(t *testing.T) {
task, cfg, _ := dockerTask(t)
sha := "@sha256:58ac43b2cc92c687a32c8be6278e50a063579655fe3090125dcb2af0ff9e1a64"
imageName := "library/busybox" + sha
if tu.IsCI() {
imageName = "docker.mirror.hashicorp.services/busybox" + sha
}
cfg.LoadImage = ""
cfg.Image = "library/busybox@sha256:58ac43b2cc92c687a32c8be6278e50a063579655fe3090125dcb2af0ff9e1a64"
cfg.Image = imageName
cfg.ForcePull = true
cfg.Command = busyboxLongRunningCmd[0]
cfg.Args = busyboxLongRunningCmd[1:]