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));
}
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));
}
Aggregations