Skip to content

Commit d1673ad

Browse files
committed
Merge branch '3.4.x'
Closes gh-45611
2 parents e872a8f + aa9e75e commit d1673ad

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/dockerTest/java/org/springframework/boot/buildpack/platform/docker/DockerApiIntegrationTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -36,7 +36,7 @@ class DockerApiIntegrationTests {
3636
@Test
3737
void pullImage() throws IOException {
3838
this.docker.image()
39-
.pull(ImageReference.of("gcr.io/paketo-buildpacks/builder:base"), null,
39+
.pull(ImageReference.of("docker.io/paketobuildpacks/builder:base"), null,
4040
new TotalProgressPullListener(new TotalProgressBar("Pulling: ")));
4141
}
4242

spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/build/BuilderTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
class BuilderTests {
6969

7070
private static final ImageReference PAKETO_BUILDPACKS_BUILDER = ImageReference
71-
.of("gcr.io/paketo-buildpacks/builder");
71+
.of("docker.io/paketobuildpacks/builder");
7272

7373
private static final ImageReference LATEST_PAKETO_BUILDPACKS_BUILDER = PAKETO_BUILDPACKS_BUILDER.inTaggedForm();
7474

spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/docker/DockerApiTests.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,9 @@ void pullWhenListenerIsNullThrowsException() {
205205

206206
@Test
207207
void pullPullsImageAndProducesEvents() throws Exception {
208-
ImageReference reference = ImageReference.of("gcr.io/paketo-buildpacks/builder:base");
209-
URI createUri = new URI(IMAGES_URL + "/create?fromImage=gcr.io%2Fpaketo-buildpacks%2Fbuilder%3Abase");
210-
URI imageUri = new URI(IMAGES_URL + "/gcr.io/paketo-buildpacks/builder:base/json");
208+
ImageReference reference = ImageReference.of("docker.io/paketobuildpacks/builder:base");
209+
URI createUri = new URI(IMAGES_URL + "/create?fromImage=docker.io%2Fpaketobuildpacks%2Fbuilder%3Abase");
210+
URI imageUri = new URI(IMAGES_URL + "/docker.io/paketobuildpacks/builder:base/json");
211211
given(http().post(eq(createUri), isNull())).willReturn(responseOf("pull-stream.json"));
212212
given(http().get(imageUri)).willReturn(responseOf("type/image.json"));
213213
Image image = this.api.pull(reference, null, this.pullListener);
@@ -220,9 +220,9 @@ void pullPullsImageAndProducesEvents() throws Exception {
220220

221221
@Test
222222
void pullWithRegistryAuthPullsImageAndProducesEvents() throws Exception {
223-
ImageReference reference = ImageReference.of("gcr.io/paketo-buildpacks/builder:base");
224-
URI createUri = new URI(IMAGES_URL + "/create?fromImage=gcr.io%2Fpaketo-buildpacks%2Fbuilder%3Abase");
225-
URI imageUri = new URI(IMAGES_URL + "/gcr.io/paketo-buildpacks/builder:base/json");
223+
ImageReference reference = ImageReference.of("docker.io/paketobuildpacks/builder:base");
224+
URI createUri = new URI(IMAGES_URL + "/create?fromImage=docker.io%2Fpaketobuildpacks%2Fbuilder%3Abase");
225+
URI imageUri = new URI(IMAGES_URL + "/docker.io/paketobuildpacks/builder:base/json");
226226
given(http().post(eq(createUri), eq("auth token"))).willReturn(responseOf("pull-stream.json"));
227227
given(http().get(imageUri)).willReturn(responseOf("type/image.json"));
228228
Image image = this.api.pull(reference, null, this.pullListener, "auth token");
@@ -384,17 +384,17 @@ void inspectWhenReferenceIsNullThrowsException() {
384384

385385
@Test
386386
void inspectInspectImage() throws Exception {
387-
ImageReference reference = ImageReference.of("gcr.io/paketo-buildpacks/builder:base");
388-
URI imageUri = new URI(IMAGES_URL + "/gcr.io/paketo-buildpacks/builder:base/json");
387+
ImageReference reference = ImageReference.of("docker.io/paketobuildpacks/builder:base");
388+
URI imageUri = new URI(IMAGES_URL + "/docker.io/paketobuildpacks/builder:base/json");
389389
given(http().get(imageUri)).willReturn(responseOf("type/image.json"));
390390
Image image = this.api.inspect(reference);
391391
assertThat(image.getLayers()).hasSize(46);
392392
}
393393

394394
@Test
395395
void exportLayersExportsLayerTars() throws Exception {
396-
ImageReference reference = ImageReference.of("gcr.io/paketo-buildpacks/builder:base");
397-
URI exportUri = new URI(IMAGES_URL + "/gcr.io/paketo-buildpacks/builder:base/get");
396+
ImageReference reference = ImageReference.of("docker.io/paketobuildpacks/builder:base");
397+
URI exportUri = new URI(IMAGES_URL + "/docker.io/paketobuildpacks/builder:base/get");
398398
given(DockerApiTests.this.http.get(exportUri)).willReturn(responseOf("export.tar"));
399399
MultiValueMap<String, String> contents = new LinkedMultiValueMap<>();
400400
this.api.exportLayers(reference, (name, archive) -> {
@@ -421,8 +421,8 @@ void exportLayersExportsLayerTars() throws Exception {
421421

422422
@Test
423423
void exportLayersWithSymlinksExportsLayerTars() throws Exception {
424-
ImageReference reference = ImageReference.of("gcr.io/paketo-buildpacks/builder:base");
425-
URI exportUri = new URI(IMAGES_URL + "/gcr.io/paketo-buildpacks/builder:base/get");
424+
ImageReference reference = ImageReference.of("docker.io/paketobuildpacks/builder:base");
425+
URI exportUri = new URI(IMAGES_URL + "/docker.io/paketobuildpacks/builder:base/get");
426426
given(DockerApiTests.this.http.get(exportUri)).willReturn(responseOf("export-symlinks.tar"));
427427
MultiValueMap<String, String> contents = new LinkedMultiValueMap<>();
428428
this.api.exportLayers(reference, (name, archive) -> {

spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/test/resources/org/springframework/boot/buildpack/platform/docker/type/image-archive-index.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"size": 529,
88
"annotations": {
99
"containerd.io/distribution.source.gcr.io": "paketo-buildpacks/adoptium",
10-
"io.containerd.image.name": "gcr.io/paketo-buildpacks/adoptium:latest",
10+
"io.containerd.image.name": "docker.io/paketobuildpacks/adoptium:latest",
1111
"org.opencontainers.image.ref.name": "latest"
1212
}
1313
}

0 commit comments

Comments
 (0)