Skip to content

Commit 60e1dc1

Browse files
David O'Sullivananthonydahanne
authored andcommitted
formatting fix
1 parent 5ca7ff2 commit 60e1dc1

File tree

1 file changed

+34
-25
lines changed

1 file changed

+34
-25
lines changed

integration-test/src/test/java/org/cloudfoundry/client/v3/ProcessesTest.java

Lines changed: 34 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -237,38 +237,47 @@ private static Mono<Void> createApplication(
237237
.name(name)
238238
.path(path)
239239
.noStart(false)
240+
.build());
240241
}
241242

242243
@Test
243244
public void updateReadinessHealthCheckType() throws IOException {
244245
String applicationName = this.nameFactory.getApplicationName();
245-
Path path = new ClassPathResource("test-application.zip").getFile().toPath();
246+
Path path = new ClassPathResource("test-application.zip").getFile().toPath();
246247

247248
createApplication(this.cloudFoundryOperations, applicationName, path)
248-
.then(getApplicationId(this.cloudFoundryOperations, applicationName))
249-
.flatMap(applicationId -> getProcessId(this.cloudFoundryClient, applicationId))
250-
.flatMap(processId -> this.cloudFoundryClient.processes()
251-
.update(UpdateProcessRequest.builder()
252-
.readinessHealthCheck(ReadinessHealthCheck
253-
.builder()
254-
.data(Data
255-
.builder()
256-
.endpoint("/test_endpoint")
257-
.invocationTimeout(1)
258-
.interval(2)
259-
.build())
260-
.type(ReadinessHealthCheckType.PORT)
261-
.build())
262-
.processId(processId)
263-
.build())
264-
.then(Mono.just(processId)))
265-
.flatMap(processId -> requestGetProcess(this.cloudFoundryClient, processId))
266-
.map(GetProcessResponse::getReadinessHealthCheck)
267-
.map(ReadinessHealthCheck::getType)
268-
.as(StepVerifier::create)
269-
.expectNext(ReadinessHealthCheckType.PORT)
270-
.expectComplete()
271-
.verify(Duration.ofMinutes(5));
249+
.then(getApplicationId(this.cloudFoundryOperations, applicationName))
250+
.flatMap(applicationId -> getProcessId(this.cloudFoundryClient, applicationId))
251+
.flatMap(
252+
processId ->
253+
this.cloudFoundryClient
254+
.processes()
255+
.update(
256+
UpdateProcessRequest.builder()
257+
.readinessHealthCheck(
258+
ReadinessHealthCheck.builder()
259+
.data(
260+
Data.builder()
261+
.endpoint(
262+
"/test_endpoint")
263+
.invocationTimeout(
264+
1)
265+
.interval(2)
266+
.build())
267+
.type(
268+
ReadinessHealthCheckType
269+
.PORT)
270+
.build())
271+
.processId(processId)
272+
.build())
273+
.then(Mono.just(processId)))
274+
.flatMap(processId -> requestGetProcess(this.cloudFoundryClient, processId))
275+
.map(GetProcessResponse::getReadinessHealthCheck)
276+
.map(ReadinessHealthCheck::getType)
277+
.as(StepVerifier::create)
278+
.expectNext(ReadinessHealthCheckType.PORT)
279+
.expectComplete()
280+
.verify(Duration.ofMinutes(5));
272281
}
273282

274283
private static Mono<String> getApplicationId(

0 commit comments

Comments
 (0)