Use single-arch image to test platform mismatch detection
See gh-44059
This commit is contained in:
parent
92a063faca
commit
24854f469c
|
@ -518,7 +518,7 @@ class BootBuildImageIntegrationTests {
|
|||
writeMainClass();
|
||||
BuildResult result = this.gradleBuild.buildAndFail("bootBuildImage");
|
||||
assertThat(result.getOutput()).contains(
|
||||
"Image platform mismatch detected. The configured platform 'invalid/platform' is not supported by the image 'ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1'. Requested platform 'invalid/platform' but got 'linux/amd64'");
|
||||
"Image platform mismatch detected. The configured platform 'invalid/platform' is not supported by the image 'ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.3-amd64'. Requested platform 'invalid/platform' but got 'linux/amd64'");
|
||||
}
|
||||
|
||||
private void writeMainClass() throws IOException {
|
||||
|
|
|
@ -4,8 +4,6 @@ plugins {
|
|||
}
|
||||
|
||||
bootBuildImage {
|
||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||
runImage = "paketobuildpacks/run-jammy-tiny"
|
||||
buildpacks = ["ghcr.io/spring-io/spring-boot-test-info:0.0.1"]
|
||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.3-amd64"
|
||||
imagePlatform = "invalid/platform"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue