Search in sources :

Example 1 with ApplicationManifest

use of org.cloudfoundry.operations.applications.ApplicationManifest in project cf-java-client by cloudfoundry.

the class ApplicationsTest method getManifest.

@Test
public void getManifest() throws IOException {
    String applicationName = this.nameFactory.getApplicationName();
    createApplication(this.cloudFoundryOperations, new ClassPathResource("test-application.zip").getFile().toPath(), applicationName, true).then(this.cloudFoundryOperations.applications().getApplicationManifest(GetApplicationManifestRequest.builder().name(applicationName).build())).map(ApplicationManifest::getName).as(StepVerifier::create).expectNext(applicationName).expectComplete().verify(Duration.ofMinutes(5));
}
Also used : ApplicationManifest(org.cloudfoundry.operations.applications.ApplicationManifest) ClassPathResource(org.springframework.core.io.ClassPathResource) AbstractIntegrationTest(org.cloudfoundry.AbstractIntegrationTest) Test(org.junit.Test)

Example 2 with ApplicationManifest

use of org.cloudfoundry.operations.applications.ApplicationManifest in project cf-java-client by cloudfoundry.

the class ApplicationsTest method getManifestForTcpRoute.

@Test
public void getManifestForTcpRoute() throws IOException {
    String applicationName = this.nameFactory.getApplicationName();
    createApplication(this.cloudFoundryOperations, new ClassPathResource("test-application.zip").getFile().toPath(), applicationName, true).then(this.cloudFoundryOperations.applications().getApplicationManifest(GetApplicationManifestRequest.builder().name(applicationName).build())).map(ApplicationManifest::getName).as(StepVerifier::create).expectNext(applicationName).expectComplete().verify(Duration.ofMinutes(5));
}
Also used : ApplicationManifest(org.cloudfoundry.operations.applications.ApplicationManifest) ClassPathResource(org.springframework.core.io.ClassPathResource) AbstractIntegrationTest(org.cloudfoundry.AbstractIntegrationTest) Test(org.junit.Test)

Aggregations

AbstractIntegrationTest (org.cloudfoundry.AbstractIntegrationTest)2 ApplicationManifest (org.cloudfoundry.operations.applications.ApplicationManifest)2 Test (org.junit.Test)2 ClassPathResource (org.springframework.core.io.ClassPathResource)2