Adapt Paketo system tests to changes in the Tomcat buildpack

Closes gh-35148
pull/35401/head
Scott Frederick 2 years ago
parent 90952a2dd9
commit 963542e7fc

@ -21,7 +21,6 @@ import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.function.Consumer;
@ -276,10 +275,16 @@ class PaketoBuilderTests {
"paketo-buildpacks/spring-boot");
metadata.processOfType("web")
.extracting("command", "args")
.containsExactly("bash", Arrays.asList("catalina.sh", "run"));
.satisfiesExactly((command) -> assertThat(command).asString().endsWith("sh"),
(args) -> assertThat(args).asList()
.satisfiesExactly((arg) -> assertThat(arg).asString().endsWith("catalina.sh"),
(arg) -> assertThat(arg).asString().isEqualTo("run")));
metadata.processOfType("tomcat")
.extracting("command", "args")
.containsExactly("bash", Arrays.asList("catalina.sh", "run"));
.satisfiesExactly((command) -> assertThat(command).asString().endsWith("sh"),
(args) -> assertThat(args).asList()
.satisfiesExactly((arg) -> assertThat(arg).asString().endsWith("catalina.sh"),
(arg) -> assertThat(arg).asString().isEqualTo("run")));
});
assertImageHasSbomLayer(imageReference, config, "apache-tomcat");
DigestCapturingCondition digest = new DigestCapturingCondition();

Loading…
Cancel
Save