|
19 | 19 | import org.cloudfoundry.client.v3.BuildpackData;
|
20 | 20 | import org.cloudfoundry.client.v3.Checksum;
|
21 | 21 | import org.cloudfoundry.client.v3.ChecksumType;
|
| 22 | +import org.cloudfoundry.client.v3.KpackData; |
22 | 23 | import org.cloudfoundry.client.v3.Lifecycle;
|
23 | 24 | import org.cloudfoundry.client.v3.LifecycleType;
|
24 | 25 | import org.cloudfoundry.client.v3.Link;
|
@@ -380,7 +381,7 @@ public void listDroplets() {
|
380 | 381 | .as(StepVerifier::create)
|
381 | 382 | .expectNext(ListPackageDropletsResponse.builder()
|
382 | 383 | .pagination(Pagination.builder()
|
383 |
| - .totalResults(2) |
| 384 | + .totalResults(3) |
384 | 385 | .totalPages(1)
|
385 | 386 | .first(Link.builder()
|
386 | 387 | .href("https://api.example.org/v3/packages/7b34f1cf-7e73-428a-bb5a-8a17a8058396/droplets?page=1&per_page=50")
|
@@ -426,6 +427,44 @@ public void listDroplets() {
|
426 | 427 | .method("PATCH")
|
427 | 428 | .build())
|
428 | 429 | .build())
|
| 430 | + .resource(DropletResource.builder() |
| 431 | + .id("585bc3c1-3743-497d-88b0-403ad6b56d17") |
| 432 | + .state(DropletState.STAGED) |
| 433 | + .error(null) |
| 434 | + .lifecycle(Lifecycle.builder() |
| 435 | + .type(LifecycleType.KPACK) |
| 436 | + .data(KpackData.builder() |
| 437 | + .buildpacks("foo", "bar") |
| 438 | + .build()) |
| 439 | + .build()) |
| 440 | + .image(null) |
| 441 | + .executionMetadata("PRIVATE DATA HIDDEN") |
| 442 | + .processType("redacted_message", "[PRIVATE DATA HIDDEN IN LISTS]") |
| 443 | + .checksum(Checksum.builder() |
| 444 | + .type(ChecksumType.SHA256) |
| 445 | + .value("e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855") |
| 446 | + .build()) |
| 447 | + .buildpack(Buildpack.builder() |
| 448 | + .name("ruby_buildpack") |
| 449 | + .detectOutput("ruby 1.6.14") |
| 450 | + .build()) |
| 451 | + .stack("cflinuxfs2") |
| 452 | + .createdAt("2016-03-28T23:39:34Z") |
| 453 | + .updatedAt("2016-03-28T23:39:47Z") |
| 454 | + .link("self", Link.builder() |
| 455 | + .href("https://api.example.org/v3/droplets/585bc3c1-3743-497d-88b0-403ad6b56d17") |
| 456 | + .build()) |
| 457 | + .link("package", Link.builder() |
| 458 | + .href("https://api.example.org/v3/packages/8222f76a-9e09-4360-b3aa-1ed329945e93") |
| 459 | + .build()) |
| 460 | + .link("app", Link.builder() |
| 461 | + .href("https://api.example.org/v3/apps/7b34f1cf-7e73-428a-bb5a-8a17a8058397") |
| 462 | + .build()) |
| 463 | + .link("assign_current_droplet", Link.builder() |
| 464 | + .href("https://api.example.org/v3/apps/7b34f1cf-7e73-428a-bb5a-8a17a8058397/relationships/current_droplet") |
| 465 | + .method("PATCH") |
| 466 | + .build()) |
| 467 | + .build()) |
429 | 468 | .resource(DropletResource.builder()
|
430 | 469 | .id("fdf3851c-def8-4de1-87f1-6d4543189e22")
|
431 | 470 | .state(DropletState.STAGED)
|
|
0 commit comments