Skip to content

Commit

Permalink
add field suspended for orgs and tests (#2735)
Browse files Browse the repository at this point in the history
  • Loading branch information
fredga authored Jan 22, 2024
1 parent fbd410d commit 1d05b71
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions api/cloudcontroller/ccv3/organization_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ var _ = Describe("Organizations", func() {

expectedBody := map[string]interface{}{
"name": "some-org-name",
"suspended": false,
}

server.AppendHandlers(
Expand Down Expand Up @@ -485,6 +486,7 @@ var _ = Describe("Organizations", func() {

expectedBody := map[string]interface{}{
"name": "some-org-name",
"suspended": false,
}

server.AppendHandlers(
Expand Down Expand Up @@ -525,6 +527,7 @@ var _ = Describe("Organizations", func() {

expectedBody := map[string]interface{}{
"name": "some-org-name",
"suspended": false,
}

server.AppendHandlers(
Expand Down Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion resources/organization_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
Expand Down

0 comments on commit 1d05b71

Please sign in to comment.