Skip to content

Commit

Permalink
Add username_password_account resource
Browse files Browse the repository at this point in the history
  • Loading branch information
HuyPhanNguyen committed Aug 8, 2024
1 parent 7fade05 commit 35b821b
Show file tree
Hide file tree
Showing 10 changed files with 235 additions and 203 deletions.
4 changes: 2 additions & 2 deletions docs/resources/username_password_account.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ resource "octopusdeploy_username_password_account" "example" {

### Required

- `name` (String) The name of this resource.
- `name` (String) The name of the username-password account.
- `username` (String, Sensitive) The username associated with this resource.

### Optional

- `description` (String) The description of this username/password account.
- `description` (String) The description of this username/password resource.
- `environments` (List of String) A list of environment IDs associated with this resource.
- `id` (String) The unique ID for this resource.
- `password` (String, Sensitive) The password associated with this resource.
Expand Down
1 change: 0 additions & 1 deletion octopusdeploy/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ func Provider() *schema.Provider {
"octopusdeploy_token_account": resourceTokenAccount(),
"octopusdeploy_user": resourceUser(),
"octopusdeploy_user_role": resourceUserRole(),
"octopusdeploy_username_password_account": resourceUsernamePasswordAccount(),
},
Schema: map[string]*schema.Schema{
"address": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,13 @@ func testAccKubernetesClusterDeploymentTargetBasic(accountLocalName string, acco
}`, localName, clusterURL, environmentID, name, userRoleID, usernamePasswordAccountID)
}

func testUsernamePasswordMinimum(localName string, name string, username string) string {
return fmt.Sprintf(`resource "octopusdeploy_username_password_account" "%s" {
name = "%s"
username = "%s"
}`, localName, name, username)
}

func testAccKubernetesClusterDeploymentTargetGcp(
accountLocalName string,
accountName string,
Expand Down
95 changes: 0 additions & 95 deletions octopusdeploy/resource_username_password_account.go

This file was deleted.

90 changes: 0 additions & 90 deletions octopusdeploy/schema_username_password_account.go

This file was deleted.

1 change: 1 addition & 0 deletions octopusdeploy_framework/framework_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ func (p *octopusDeployFrameworkProvider) Resources(ctx context.Context) []func()
NewVariableResource,
NewProjectResource,
NewDockerContainerRegistryFeedResource,
NewUsernamePasswordAccountResource,
}
}

Expand Down
Loading

0 comments on commit 35b821b

Please sign in to comment.