diff --git a/api/cloudcontroller/ccv3/requester_test.go b/api/cloudcontroller/ccv3/requester_test.go index 6b078ece01..c0e493e1cd 100644 --- a/api/cloudcontroller/ccv3/requester_test.go +++ b/api/cloudcontroller/ccv3/requester_test.go @@ -358,6 +358,7 @@ var _ = Describe("shared request helpers", func() { expectedBody := map[string]interface{}{ "name": "some-app-name", + "guid": "some-app-guid", "lifecycle": map[string]interface{}{ "type": "buildpack", "data": map[string]interface{}{ @@ -489,6 +490,7 @@ var _ = Describe("shared request helpers", func() { expectedBody := map[string]interface{}{ "name": "some-app-name", + "guid": "some-app-guid", "lifecycle": map[string]interface{}{ "type": "buildpack", "data": map[string]interface{}{ diff --git a/resources/application_resource.go b/resources/application_resource.go index 2212c19a73..2da1ee7401 100644 --- a/resources/application_resource.go +++ b/resources/application_resource.go @@ -40,6 +40,7 @@ type ApplicationNameOnly struct { // MarshalJSON converts an Application into a Cloud Controller Application. func (a Application) MarshalJSON() ([]byte, error) { ccApp := ccApplication{ + GUID: a.GUID, Name: a.Name, Metadata: a.Metadata, }