Skip to content
This repository was archived by the owner on Sep 12, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@
import static com.sap.cloudfoundry.client.facade.IntegrationTestConstants.HEALTH_CHECK_ENDPOINT;
import static com.sap.cloudfoundry.client.facade.IntegrationTestConstants.HEALTH_CHECK_TIMEMOUT;
import static com.sap.cloudfoundry.client.facade.IntegrationTestConstants.JAVA_BUILDPACK;
import static com.sap.cloudfoundry.client.facade.IntegrationTestConstants.JAVA_BUILDPACK_URL;
import static com.sap.cloudfoundry.client.facade.IntegrationTestConstants.MEMORY_IN_MB;
import static com.sap.cloudfoundry.client.facade.IntegrationTestConstants.NODEJS_BUILDPACK;
import static com.sap.cloudfoundry.client.facade.IntegrationTestConstants.NODEJS_BUILDPACK_URL;
import static com.sap.cloudfoundry.client.facade.IntegrationTestConstants.STATICFILE_APPLICATION_CONTENT;
import static com.sap.cloudfoundry.client.facade.IntegrationTestConstants.STATICFILE_BUILDPACK;
import static org.junit.jupiter.api.Assertions.assertEquals;
Expand Down Expand Up @@ -233,7 +235,7 @@ void getAppInstances() {
}

@Test
@DisplayName("Create application and verify its GUID")
@DisplayName("Create an application, rename it, and verify its GUID")
void renameApplication() {
String applicationName = "test-application-8";
String newApplicationName = "new-test-application-8";
Expand Down Expand Up @@ -426,9 +428,11 @@ void createApplicationWithBuildpacks() {
@DisplayName("Create application with CNB lifecycle and verify attributes")
void createCnbApplication() {
String applicationName = "test-app-17";
List<String> buildpacks = List.of(JAVA_BUILDPACK_URL, NODEJS_BUILDPACK_URL);

Staging staging = ImmutableStaging.builder()
.lifecycleType(LifecycleType.CNB)
.addBuildpacks(JAVA_BUILDPACK, STATICFILE_BUILDPACK)
.addAllBuildpacks(buildpacks)
.build();
CloudRoute route = getImmutableCloudRoute();
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ private IntegrationTestConstants() {
public static final String DEFAULT_DOMAIN = "deploy-service.custom.domain.for.integration.tests";
public static final String APPLICATION_HOST = "test-application-hostname-ztana-test";
public static final String STATICFILE_APPLICATION_CONTENT = "staticfile.zip";
public static final String JAVA_BUILDPACK_URL = "https://github.com/paketo-buildpacks/java";
public static final String NODEJS_BUILDPACK_URL = "https://github.com/paketo-buildpacks/nodejs";

// Service broker constants
public static final int SERVICE_BROKER_DISK_IN_MB = 256;
Expand Down