|
29 | 29 | import java.nio.charset.Charset;
|
30 | 30 | import java.time.Duration;
|
31 | 31 | import java.util.Collections;
|
32 |
| -import org.cloudfoundry.client.v3.BuildpackData; |
33 |
| -import org.cloudfoundry.client.v3.Checksum; |
34 |
| -import org.cloudfoundry.client.v3.ChecksumType; |
35 |
| -import org.cloudfoundry.client.v3.KpackData; |
36 |
| -import org.cloudfoundry.client.v3.Lifecycle; |
37 |
| -import org.cloudfoundry.client.v3.LifecycleType; |
38 |
| -import org.cloudfoundry.client.v3.Link; |
39 |
| -import org.cloudfoundry.client.v3.Pagination; |
40 |
| -import org.cloudfoundry.client.v3.Relationship; |
41 |
| -import org.cloudfoundry.client.v3.ToOneRelationship; |
| 32 | +import org.cloudfoundry.client.v3.*; |
42 | 33 | import org.cloudfoundry.client.v3.droplets.Buildpack;
|
43 | 34 | import org.cloudfoundry.client.v3.droplets.DropletResource;
|
44 | 35 | import org.cloudfoundry.client.v3.droplets.DropletState;
|
@@ -497,7 +488,7 @@ void listDroplets() {
|
497 | 488 | ListPackageDropletsResponse.builder()
|
498 | 489 | .pagination(
|
499 | 490 | Pagination.builder()
|
500 |
| - .totalResults(3) |
| 491 | + .totalResults(4) |
501 | 492 | .totalPages(1)
|
502 | 493 | .first(
|
503 | 494 | Link.builder()
|
@@ -627,6 +618,61 @@ void listDroplets() {
|
627 | 618 | .method("PATCH")
|
628 | 619 | .build())
|
629 | 620 | .build())
|
| 621 | + .resource( |
| 622 | + DropletResource.builder() |
| 623 | + .id("e351a2f2-dfc6-454b-8777-60ed2ff98edb") |
| 624 | + .state(DropletState.STAGED) |
| 625 | + .error(null) |
| 626 | + .lifecycle( |
| 627 | + Lifecycle.builder() |
| 628 | + .type(LifecycleType.CNB) |
| 629 | + .data(CnbData.builder().build()) |
| 630 | + .build()) |
| 631 | + .image(null) |
| 632 | + .executionMetadata("PRIVATE DATA HIDDEN") |
| 633 | + .processType( |
| 634 | + "redacted_message", |
| 635 | + "[PRIVATE DATA HIDDEN IN LISTS]") |
| 636 | + .checksum( |
| 637 | + Checksum.builder() |
| 638 | + .type(ChecksumType.SHA256) |
| 639 | + .value( |
| 640 | + "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855") |
| 641 | + .build()) |
| 642 | + .buildpack( |
| 643 | + Buildpack.builder() |
| 644 | + .name("ruby_buildpack") |
| 645 | + .detectOutput("ruby 1.6.14") |
| 646 | + .build()) |
| 647 | + .stack("cflinuxfs2") |
| 648 | + .createdAt("2016-03-28T23:39:34Z") |
| 649 | + .updatedAt("2016-03-28T23:39:47Z") |
| 650 | + .link( |
| 651 | + "self", |
| 652 | + Link.builder() |
| 653 | + .href( |
| 654 | + "https://api.example.org/v3/droplets/e351a2f2-dfc6-454b-8777-60ed2ff98edb") |
| 655 | + .build()) |
| 656 | + .link( |
| 657 | + "package", |
| 658 | + Link.builder() |
| 659 | + .href( |
| 660 | + "https://api.example.org/v3/packages/45c63fe0-f5f4-4f23-963e-a8311193d11e") |
| 661 | + .build()) |
| 662 | + .link( |
| 663 | + "app", |
| 664 | + Link.builder() |
| 665 | + .href( |
| 666 | + "https://api.example.org/v3/apps/7b34f1cf-7e73-428a-bb5a-8a17a8058398") |
| 667 | + .build()) |
| 668 | + .link( |
| 669 | + "assign_current_droplet", |
| 670 | + Link.builder() |
| 671 | + .href( |
| 672 | + "https://api.example.org/v3/apps/7b34f1cf-7e73-428a-bb5a-8a17a8058398/relationships/current_droplet") |
| 673 | + .method("PATCH") |
| 674 | + .build()) |
| 675 | + .build()) |
630 | 676 | .resource(
|
631 | 677 | DropletResource.builder()
|
632 | 678 | .id("fdf3851c-def8-4de1-87f1-6d4543189e22")
|
|
0 commit comments