The purpose of this repository is to exercise the Cloud Foundry Java Buildpack together with its dependencies and associated services to ensure that the whole works together correctly.
The tests are JUnit tests in a gradle build which push the Java test applications submodule (in vendor/java-test-applications) to Cloud Foundry.
The Cloud Foundry Client Library from the CF Java Client repository is used to drive the Cloud Foundry Cloud Controller REST API.
The following environment variables must be set before building this project or running the tests.
| Environment Variable | Value |
|---|---|
CF_BUILDPACK |
The URI of the buildpack to use. Defaults to the "blessed buildpack" installed on the DEAs if it is not specified. |
CF_ORG |
The Cloud Foundry organization to use. |
CF_PASSWORD |
The password corresponding to the Cloud Foundry username. |
CF_SPACE |
The Cloud Foundry space to use. |
CF_TARGET |
The Cloud Foundry instance to use, Defaults to <https://api.run.pivotal.io>. |
CF_USERNAME |
A Cloud Foundry username, which often consists of an email address. |
Note: when running tests in Eclipse or IntelliJ IDEA, you can set environment variables in a run configuration.
This project is built with Gradle. Set the environment variables as described above and then issue:
./gradlew
To run the tests, set the environment variables as described above and then do the following:
./gradlewPull requests are welcome; see the contributor guidelines for details.
This project is released under version 2.0 of the Apache License.