Skip to content

Commit fb12c5d

Browse files
committed
DefaultApplications: logs use application v3
1 parent 13621fb commit fb12c5d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

cloudfoundry-operations/src/main/java/org/cloudfoundry/operations/applications/DefaultApplications.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ public Flux<Task> listTasks(ListApplicationTasksRequest request) {
412412

413413
@Override
414414
public Flux<LogMessage> logs(LogsRequest request) {
415-
return getApplicationId(request.getName())
415+
return getApplicationIdV3(request.getName())
416416
.flatMapMany(applicationId -> getLogs(applicationId, request.getRecent()))
417417
.transform(OperationsLogging.log("Get Application Logs"))
418418
.checkpoint();

cloudfoundry-operations/src/test/java/org/cloudfoundry/operations/applications/DefaultApplicationsTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1373,7 +1373,7 @@ void listTasks() {
13731373

13741374
@Test
13751375
void logs() {
1376-
requestApplications(
1376+
requestApplicationsV3(
13771377
this.cloudFoundryClient,
13781378
"test-application-name",
13791379
TEST_SPACE_ID,
@@ -1390,7 +1390,7 @@ void logs() {
13901390

13911391
@Test
13921392
void logsNoApp() {
1393-
requestApplicationsEmpty(this.cloudFoundryClient, "test-application-name", TEST_SPACE_ID);
1393+
requestApplicationsEmptyV3(this.cloudFoundryClient, "test-application-name", TEST_SPACE_ID);
13941394

13951395
this.applications
13961396
.logs(LogsRequest.builder().name("test-application-name").build())
@@ -1406,7 +1406,7 @@ void logsNoApp() {
14061406

14071407
@Test
14081408
void logsRecent() {
1409-
requestApplications(
1409+
requestApplicationsV3(
14101410
this.cloudFoundryClient,
14111411
"test-application-name",
14121412
TEST_SPACE_ID,
@@ -1423,7 +1423,7 @@ void logsRecent() {
14231423

14241424
@Test
14251425
void logsRecentNotSet() {
1426-
requestApplications(
1426+
requestApplicationsV3(
14271427
this.cloudFoundryClient,
14281428
"test-application-name",
14291429
TEST_SPACE_ID,

0 commit comments

Comments
 (0)