Skip to content

Commit

Permalink
Update docs and test
Browse files Browse the repository at this point in the history
  • Loading branch information
mik-ky committed Nov 18, 2024
1 parent bfcfaf9 commit aab4453
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/data-sources/tenants.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ Read-Only:
- `id` (String) The unique ID for this resource.
- `name` (String) The name of this resource.
- `space_id` (String) The space ID associated with this tenant.
- `tenant_tags` (List of String) A list of tenant tags associated with this resource.
- `tenant_tags` (Set of String) A list of tenant tags associated with this resource.


2 changes: 1 addition & 1 deletion docs/resources/tenant.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This resource manages tenants in Octopus Deploy.
- `cloned_from_tenant_id` (String) The ID of the tenant from which this tenant was cloned.
- `description` (String) The description of this tenant.
- `space_id` (String) The space ID associated with this tenant.
- `tenant_tags` (List of String) A list of tenant tags associated with this resource.
- `tenant_tags` (Set of String) A list of tenant tags associated with this resource.

### Read-Only

Expand Down
7 changes: 3 additions & 4 deletions octopusdeploy_framework/resource_tenant_migration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ package octopusdeploy_framework

import (
"fmt"
"os"
"testing"

"github.com/hashicorp/terraform-plugin-testing/helper/acctest"
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
"github.com/hashicorp/terraform-plugin-testing/plancheck"
"github.com/hashicorp/terraform-plugin-testing/terraform"
"github.com/stretchr/testify/assert"
"os"
"sort"
"testing"
)

func TestTenantResource_UpgradeFromSDK_ToPluginFramework(t *testing.T) {
Expand Down Expand Up @@ -95,7 +95,6 @@ func testTenantResourceUpdated(t *testing.T, name string) resource.TestCheckFunc
if err != nil {
return fmt.Errorf("failed to retrieve tenant by ID: %s", err)
}
sort.Strings(tenant.TenantTags)

assert.NotEmpty(t, "Tenant ID did not match expected value", tenant.ID)
assert.Equal(t, fmt.Sprintf("Updated description"), tenant.Description)
Expand Down

0 comments on commit aab4453

Please sign in to comment.