From 0b2e16e575d5ddc7ff06f1a2f9268fab9eb67429 Mon Sep 17 00:00:00 2001 From: Scott Frederick Date: Mon, 8 May 2023 12:50:43 -0500 Subject: [PATCH] Adapt Paketo system tests to changes in the native buildpack Closes gh-35355 --- .../boot/image/paketo/PaketoBuilderTests.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spring-boot-system-tests/spring-boot-image-tests/src/systemTest/java/org/springframework/boot/image/paketo/PaketoBuilderTests.java b/spring-boot-system-tests/spring-boot-image-tests/src/systemTest/java/org/springframework/boot/image/paketo/PaketoBuilderTests.java index 6286df1a75..d610f44ff3 100644 --- a/spring-boot-system-tests/spring-boot-image-tests/src/systemTest/java/org/springframework/boot/image/paketo/PaketoBuilderTests.java +++ b/spring-boot-system-tests/spring-boot-image-tests/src/systemTest/java/org/springframework/boot/image/paketo/PaketoBuilderTests.java @@ -312,8 +312,10 @@ class PaketoBuilderTests { .contains("paketo-buildpacks/ca-certificates", "paketo-buildpacks/bellsoft-liberica", "paketo-buildpacks/executable-jar", "paketo-buildpacks/spring-boot", "paketo-buildpacks/native-image"); - metadata.processOfType("web").containsExactly("/workspace/example.ExampleApplication"); - metadata.processOfType("native-image").containsExactly("/workspace/example.ExampleApplication"); + metadata.processOfType("web") + .satisfiesExactly((command) -> assertThat(command).endsWith("/example.ExampleApplication")); + metadata.processOfType("native-image") + .satisfiesExactly((command) -> assertThat(command).endsWith("/example.ExampleApplication")); }); assertImageHasDependenciesSbomLayer(imageReference, config, "native-image"); }