Skip to content

Commit 142ce60

Browse files
committed
DefaultApplications: logs use application v3
1 parent 7b2553f commit 142ce60

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
@@ -398,7 +398,7 @@ public Flux<Task> listTasks(ListApplicationTasksRequest request) {
398398

399399
@Override
400400
public Flux<LogMessage> logs(LogsRequest request) {
401-
return getApplicationId(request.getName())
401+
return getApplicationIdV3(request.getName())
402402
.flatMapMany(applicationId -> getLogs(applicationId, request.getRecent()))
403403
.transform(OperationsLogging.log("Get Application Logs"))
404404
.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
@@ -1338,7 +1338,7 @@ void listTasks() {
13381338

13391339
@Test
13401340
void logs() {
1341-
requestApplications(
1341+
requestApplicationsV3(
13421342
this.cloudFoundryClient,
13431343
"test-application-name",
13441344
TEST_SPACE_ID,
@@ -1355,7 +1355,7 @@ void logs() {
13551355

13561356
@Test
13571357
void logsNoApp() {
1358-
requestApplicationsEmpty(this.cloudFoundryClient, "test-application-name", TEST_SPACE_ID);
1358+
requestApplicationsEmptyV3(this.cloudFoundryClient, "test-application-name", TEST_SPACE_ID);
13591359

13601360
this.applications
13611361
.logs(LogsRequest.builder().name("test-application-name").build())
@@ -1371,7 +1371,7 @@ void logsNoApp() {
13711371

13721372
@Test
13731373
void logsRecent() {
1374-
requestApplications(
1374+
requestApplicationsV3(
13751375
this.cloudFoundryClient,
13761376
"test-application-name",
13771377
TEST_SPACE_ID,
@@ -1388,7 +1388,7 @@ void logsRecent() {
13881388

13891389
@Test
13901390
void logsRecentNotSet() {
1391-
requestApplications(
1391+
requestApplicationsV3(
13921392
this.cloudFoundryClient,
13931393
"test-application-name",
13941394
TEST_SPACE_ID,

0 commit comments

Comments
 (0)