Ignore deprecation warnings in Paketo system tests

Closes gh-30194
This commit is contained in:
Scott Frederick 2022-03-11 15:19:53 -06:00
parent d717614500
commit 35a9a7fee2
2 changed files with 4 additions and 3 deletions

View File

@ -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;
}

View File

@ -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)) {