mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Update Paketo tests for Platform API 0.10
See gh-32949
This commit is contained in:
parent
f8a2e68a5d
commit
39ad955969
@ -21,7 +21,6 @@ import java.io.FileWriter;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.PrintWriter;
|
import java.io.PrintWriter;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collections;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.function.Consumer;
|
import java.util.function.Consumer;
|
||||||
import java.util.function.Predicate;
|
import java.util.function.Predicate;
|
||||||
@ -299,10 +298,8 @@ class PaketoBuilderTests {
|
|||||||
metadata.buildpacks().contains("paketo-buildpacks/ca-certificates",
|
metadata.buildpacks().contains("paketo-buildpacks/ca-certificates",
|
||||||
"paketo-buildpacks/bellsoft-liberica", "paketo-buildpacks/executable-jar",
|
"paketo-buildpacks/bellsoft-liberica", "paketo-buildpacks/executable-jar",
|
||||||
"paketo-buildpacks/spring-boot", "paketo-buildpacks/native-image");
|
"paketo-buildpacks/spring-boot", "paketo-buildpacks/native-image");
|
||||||
metadata.processOfType("web").extracting("command")
|
metadata.processOfType("web").containsExactly("/workspace/example.ExampleApplication");
|
||||||
.isEqualTo(Collections.singletonList("/workspace/example.ExampleApplication"));
|
metadata.processOfType("native-image").containsExactly("/workspace/example.ExampleApplication");
|
||||||
metadata.processOfType("native-image").extracting("command")
|
|
||||||
.isEqualTo(Collections.singletonList("/workspace/example.ExampleApplication"));
|
|
||||||
});
|
});
|
||||||
assertImageHasDependenciesSbomLayer(imageReference, config, "native-image");
|
assertImageHasDependenciesSbomLayer(imageReference, config, "native-image");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user