From 7b8364d2489818c752d1f7ec307102db01840e7c Mon Sep 17 00:00:00 2001 From: Scott Frederick Date: Thu, 11 Jul 2024 17:07:23 -0500 Subject: [PATCH] Fix LifecycleTests on Windows See gh-gh-41352 --- .../boot/buildpack/platform/build/LifecycleTests.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/build/LifecycleTests.java b/spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/build/LifecycleTests.java index 83eabfdf98..9769c1bf0b 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/build/LifecycleTests.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/build/LifecycleTests.java @@ -344,11 +344,11 @@ class LifecycleTests { assertPhaseWasRun("creator", withExpectedConfig("lifecycle-creator-security-opts.json", true)); } else { - assertPhaseWasRun("analyzer", withExpectedConfig("lifecycle-analyzer-security-opts.json")); + assertPhaseWasRun("analyzer", withExpectedConfig("lifecycle-analyzer-security-opts.json", true)); assertPhaseWasRun("detector", withExpectedConfig("lifecycle-detector.json")); - assertPhaseWasRun("restorer", withExpectedConfig("lifecycle-restorer-security-opts.json")); + assertPhaseWasRun("restorer", withExpectedConfig("lifecycle-restorer-security-opts.json", true)); assertPhaseWasRun("builder", withExpectedConfig("lifecycle-builder.json")); - assertPhaseWasRun("exporter", withExpectedConfig("lifecycle-exporter-security-opts.json")); + assertPhaseWasRun("exporter", withExpectedConfig("lifecycle-exporter-security-opts.json", true)); } assertThat(this.out.toString()).contains("Successfully built image 'docker.io/library/my-application:latest'"); }