You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add real Spring Boot integration test fixtures (SB3 + SB4) via java-test-applications #1357
java-buildpack has no real Spring Boot fixture — every current integration fixture is a fake com.sun.net.httpserver.HttpServer stub with a fake spring-boot-*.jar used only to trip detection. So no integration test can exercise actual Spring Boot runtime behavior (active profiles, VCAP_SERVICES → property mapping, autoconfiguration, framework injection, …). This blocks meaningful end-to-end coverage of the (Spring Boot) Java frameworks.
Proposal
Stand up genuine Spring Boot fixtures — both SB3 and SB4 — reusing cloudfoundry/java-test-applications instead of committing built jars:
java-test-applications: modernize java-main-application + core + spring-common to SB3 and SB4 variants (currently Spring Boot 2.6.7 / JDK 8), expose small observability endpoints (e.g. /active-profiles → Environment#getActiveProfiles(), extend the existing /environment-variables), and publish the built jars as a GitHub release.
java-buildpack: download the pinned released jars in a BeforeSuite, deploy via switchblade with bound services, and assert on the app's HTTP responses.
Fat-jar wiring is compatible: the buildpack unwraps Spring Boot and launches -cp ${CLASSPATH}:$HOME/BOOT-INF/lib/* (not java -jar), so buildpack-injected jars and their spring.factories load normally.
First use case: verify java-cfenv activates the cloud profile (SB3 → java-cfenv 3.x, SB4 → 4.0.0) — closes the runtime gap left by #1352. The same fixtures then enable further SB feature tests (service property mapping, autoconfiguration, agent/framework behavior).
Activity
chore: modernize project — remove outdated modules, upgrade to Spring…
chore: modernize project — remove outdated modules, upgrade to Spring…
feat: add java-task-application for CF run-task testing
ci: add snapshot release workflow
ci: add snapshot release workflow
feat(integration): add real Spring Boot 3.x/4.x integration tests (cl…
feat(integration): add real Spring Boot 3.x/4.x integration tests (cl…
feat(integration): add real Spring Boot 3.x/4.x integration tests (cl…
feat(integration): add real Spring Boot 3.x/4.x integration tests (cl…
feat(integration): add real Spring Boot 3.x/4.x integration tests (cl…
feat(integration): add real Spring Boot 3.x/4.x integration tests (cl…
feat(integration): add real Spring Boot 3.x/4.x integration tests (cl…
fix(integration): add missing container detection test file and fixtures