Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore!: Migrate username_password_account resource #721

Merged
merged 10 commits into from
Aug 12, 2024
2 changes: 1 addition & 1 deletion docs/resources/username_password_account.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ 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
Expand Down
1 change: 0 additions & 1 deletion octopusdeploy/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,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 @@ -94,6 +94,7 @@ func (p *octopusDeployFrameworkProvider) Resources(ctx context.Context) []func()
NewVariableResource,
NewProjectResource,
NewDockerContainerRegistryFeedResource,
NewUsernamePasswordAccountResource,
NewRunbookResource,
}
}
Expand Down
Loading
Loading