Use test harness for image building integration tests

This commit modifies the integration tests for the Maven and Gradle
image building goal and task to use a custom builder as a test harness
to verify that the plugins invoke the builder as expected.

Fixes gh-25838
This commit is contained in:
Scott Frederick
2021-03-30 16:44:36 -05:00
parent e94f8bba62
commit da9d8d6055
26 changed files with 285 additions and 145 deletions

View File

@@ -0,0 +1,18 @@
# Buildpacks to include in builder
[[buildpacks]]
id = "spring-boot/test-info"
version = "0.0.1"
uri = "../buildpacks/test-info"
# Order used for detection
[[order]]
[[order.group]]
id = "spring-boot/test-info"
version = "0.0.1"
# Stack that will be used by the builder
[stack]
id = "io.paketo.stacks.tiny"
build-image = "index.docker.io/paketobuildpacks/build:1.2.2-tiny-cnb"
run-image = "index.docker.io/paketobuildpacks/run:tiny-cnb"
run-image-mirrors = ["gcr.io/paketo-buildpacks/run:tiny-cnb"]