Skip to content

Commit 8fe9aa4

Browse files
Fix Missing GUID in CloudController Application Type (#3549)
Signed-off-by: Dilip Tadepalli <[email protected]>
1 parent 15c39fa commit 8fe9aa4

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

api/cloudcontroller/ccv3/requester_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ var _ = Describe("shared request helpers", func() {
358358

359359
expectedBody := map[string]interface{}{
360360
"name": "some-app-name",
361+
"guid": "some-app-guid",
361362
"lifecycle": map[string]interface{}{
362363
"type": "buildpack",
363364
"data": map[string]interface{}{
@@ -489,6 +490,7 @@ var _ = Describe("shared request helpers", func() {
489490

490491
expectedBody := map[string]interface{}{
491492
"name": "some-app-name",
493+
"guid": "some-app-guid",
492494
"lifecycle": map[string]interface{}{
493495
"type": "buildpack",
494496
"data": map[string]interface{}{

resources/application_resource.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ type ApplicationNameOnly struct {
4040
// MarshalJSON converts an Application into a Cloud Controller Application.
4141
func (a Application) MarshalJSON() ([]byte, error) {
4242
ccApp := ccApplication{
43+
GUID: a.GUID,
4344
Name: a.Name,
4445
Metadata: a.Metadata,
4546
}

0 commit comments

Comments
 (0)