Skip to content
This repository was archived by the owner on Sep 12, 2025. It is now read-only.

Commit b9da8b1

Browse files
committed
Fix CNB integration test
LMCROSSITXSADEPLOY-3220
1 parent b68b69c commit b9da8b1

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/test/java/com/sap/cloudfoundry/client/facade/ApplicationsCloudControllerClientIntegrationTest.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@
4141
import static com.sap.cloudfoundry.client.facade.IntegrationTestConstants.HEALTH_CHECK_ENDPOINT;
4242
import static com.sap.cloudfoundry.client.facade.IntegrationTestConstants.HEALTH_CHECK_TIMEMOUT;
4343
import static com.sap.cloudfoundry.client.facade.IntegrationTestConstants.JAVA_BUILDPACK;
44+
import static com.sap.cloudfoundry.client.facade.IntegrationTestConstants.JAVA_BUILDPACK_URL;
4445
import static com.sap.cloudfoundry.client.facade.IntegrationTestConstants.MEMORY_IN_MB;
4546
import static com.sap.cloudfoundry.client.facade.IntegrationTestConstants.NODEJS_BUILDPACK;
47+
import static com.sap.cloudfoundry.client.facade.IntegrationTestConstants.NODEJS_BUILDPACK_URL;
4648
import static com.sap.cloudfoundry.client.facade.IntegrationTestConstants.STATICFILE_APPLICATION_CONTENT;
4749
import static com.sap.cloudfoundry.client.facade.IntegrationTestConstants.STATICFILE_BUILDPACK;
4850
import static org.junit.jupiter.api.Assertions.assertEquals;
@@ -233,7 +235,7 @@ void getAppInstances() {
233235
}
234236

235237
@Test
236-
@DisplayName("Create application and verify its GUID")
238+
@DisplayName("Create an application, rename it, and verify its GUID")
237239
void renameApplication() {
238240
String applicationName = "test-application-8";
239241
String newApplicationName = "new-test-application-8";
@@ -426,9 +428,11 @@ void createApplicationWithBuildpacks() {
426428
@DisplayName("Create application with CNB lifecycle and verify attributes")
427429
void createCnbApplication() {
428430
String applicationName = "test-app-17";
431+
List<String> buildpacks = List.of(JAVA_BUILDPACK_URL, NODEJS_BUILDPACK_URL);
432+
429433
Staging staging = ImmutableStaging.builder()
430434
.lifecycleType(LifecycleType.CNB)
431-
.addBuildpacks(JAVA_BUILDPACK, STATICFILE_BUILDPACK)
435+
.addAllBuildpacks(buildpacks)
432436
.build();
433437
CloudRoute route = getImmutableCloudRoute();
434438
try {

src/test/java/com/sap/cloudfoundry/client/facade/IntegrationTestConstants.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ private IntegrationTestConstants() {
1515
public static final String DEFAULT_DOMAIN = "deploy-service.custom.domain.for.integration.tests";
1616
public static final String APPLICATION_HOST = "test-application-hostname-ztana-test";
1717
public static final String STATICFILE_APPLICATION_CONTENT = "staticfile.zip";
18+
public static final String JAVA_BUILDPACK_URL = "https://github.com/paketo-buildpacks/java";
19+
public static final String NODEJS_BUILDPACK_URL = "https://github.com/paketo-buildpacks/nodejs";
1820

1921
// Service broker constants
2022
public static final int SERVICE_BROKER_DISK_IN_MB = 256;

0 commit comments

Comments
 (0)