mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-05 00:56:58 +08:00
Ignore deprecation warnings in Paketo system tests
Closes gh-30194
This commit is contained in:
parent
d717614500
commit
35a9a7fee2
@ -80,7 +80,7 @@ public class GradleBuild {
|
||||
|
||||
private GradleVersion expectDeprecationWarnings;
|
||||
|
||||
private String[] expectedDeprecationMessages;
|
||||
private List<String> expectedDeprecationMessages = new ArrayList<>();
|
||||
|
||||
private boolean configurationCache = false;
|
||||
|
||||
@ -155,7 +155,7 @@ public class GradleBuild {
|
||||
}
|
||||
|
||||
public GradleBuild expectDeprecationMessages(String... messages) {
|
||||
this.expectedDeprecationMessages = messages;
|
||||
this.expectedDeprecationMessages.addAll(Arrays.asList(messages));
|
||||
return this;
|
||||
}
|
||||
|
||||
|
@ -67,6 +67,7 @@ class PaketoBuilderTests {
|
||||
void configureGradleBuild() {
|
||||
this.gradleBuild.scriptProperty("systemTestMavenRepository",
|
||||
new File("build/system-test-maven-repository").getAbsoluteFile().toURI().toASCIIString());
|
||||
this.gradleBuild.expectDeprecationMessages("BPL_SPRING_CLOUD_BINDINGS_ENABLED.*true.*Deprecated");
|
||||
}
|
||||
|
||||
@Test
|
||||
@ -122,7 +123,7 @@ class PaketoBuilderTests {
|
||||
container.waitingFor(Wait.forHttp("/test")).start();
|
||||
container.stop();
|
||||
}
|
||||
this.gradleBuild.expectDeprecationMessages("BOM table is deprecated in this buildpack api version");
|
||||
this.gradleBuild.expectDeprecationMessages("BOM table is deprecated");
|
||||
result = buildImage(imageName);
|
||||
assertThat(result.task(":bootBuildImage").getOutcome()).isEqualTo(TaskOutcome.SUCCESS);
|
||||
try (GenericContainer<?> container = new GenericContainer<>(imageName).withExposedPorts(8080)) {
|
||||
|
Loading…
Reference in New Issue
Block a user