Merge branch '2.7.x'

pull/30220/head
Scott Frederick 3 years ago
commit 040afdeafe

@ -80,7 +80,7 @@ public class GradleBuild {
private GradleVersion expectDeprecationWarnings; private GradleVersion expectDeprecationWarnings;
private String[] expectedDeprecationMessages; private List<String> expectedDeprecationMessages = new ArrayList<>();
private boolean configurationCache = false; private boolean configurationCache = false;
@ -155,7 +155,7 @@ public class GradleBuild {
} }
public GradleBuild expectDeprecationMessages(String... messages) { public GradleBuild expectDeprecationMessages(String... messages) {
this.expectedDeprecationMessages = messages; this.expectedDeprecationMessages.addAll(Arrays.asList(messages));
return this; return this;
} }

@ -68,6 +68,7 @@ class PaketoBuilderTests {
void configureGradleBuild() { void configureGradleBuild() {
this.gradleBuild.scriptProperty("systemTestMavenRepository", this.gradleBuild.scriptProperty("systemTestMavenRepository",
new File("build/system-test-maven-repository").getAbsoluteFile().toURI().toASCIIString()); new File("build/system-test-maven-repository").getAbsoluteFile().toURI().toASCIIString());
this.gradleBuild.expectDeprecationMessages("BPL_SPRING_CLOUD_BINDINGS_ENABLED.*true.*Deprecated");
} }
@Test @Test
@ -125,7 +126,7 @@ class PaketoBuilderTests {
container.waitingFor(Wait.forHttp("/test")).start(); container.waitingFor(Wait.forHttp("/test")).start();
container.stop(); container.stop();
} }
this.gradleBuild.expectDeprecationMessages("BOM table is deprecated in this buildpack api version"); this.gradleBuild.expectDeprecationMessages("BOM table is deprecated");
result = buildImage(imageName); result = buildImage(imageName);
assertThat(result.task(":bootBuildImage").getOutcome()).isEqualTo(TaskOutcome.SUCCESS); assertThat(result.task(":bootBuildImage").getOutcome()).isEqualTo(TaskOutcome.SUCCESS);
try (GenericContainer<?> container = new GenericContainer<>(imageName).withExposedPorts(8080)) { try (GenericContainer<?> container = new GenericContainer<>(imageName).withExposedPorts(8080)) {

Loading…
Cancel
Save