From 1d05b71bb887a2d35049f8a86e66007046d58e31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Garcia?= Date: Mon, 22 Jan 2024 20:35:59 +0100 Subject: [PATCH] add field suspended for orgs and tests (#2735) --- api/cloudcontroller/ccv3/organization_test.go | 4 ++++ resources/organization_resource.go | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/api/cloudcontroller/ccv3/organization_test.go b/api/cloudcontroller/ccv3/organization_test.go index dcdab99d486..20023cfe5c0 100644 --- a/api/cloudcontroller/ccv3/organization_test.go +++ b/api/cloudcontroller/ccv3/organization_test.go @@ -450,6 +450,7 @@ var _ = Describe("Organizations", func() { expectedBody := map[string]interface{}{ "name": "some-org-name", + "suspended": false, } server.AppendHandlers( @@ -485,6 +486,7 @@ var _ = Describe("Organizations", func() { expectedBody := map[string]interface{}{ "name": "some-org-name", + "suspended": false, } server.AppendHandlers( @@ -525,6 +527,7 @@ var _ = Describe("Organizations", func() { expectedBody := map[string]interface{}{ "name": "some-org-name", + "suspended": false, } server.AppendHandlers( @@ -584,6 +587,7 @@ var _ = Describe("Organizations", func() { expectedBody := map[string]interface{}{ "name": "some-org-name", + "suspended": false, "metadata": map[string]interface{}{ "labels": map[string]string{ "k1": "v1", diff --git a/resources/organization_resource.go b/resources/organization_resource.go index 187bb1beb7c..7db5e720560 100644 --- a/resources/organization_resource.go +++ b/resources/organization_resource.go @@ -12,7 +12,8 @@ type Organization struct { Name string `json:"name"` // QuotaGUID is the GUID of the organization Quota applied to this Organization QuotaGUID string `json:"-"` - + // Suspended is the status of the organization applied to this Organization + Suspended bool `json:"suspended"` // Metadata is used for custom tagging of API resources Metadata *Metadata `json:"metadata,omitempty"` }