Skip to content

Commit

Permalink
Merge pull request #1540 from hashicorp/jfreda/add-team-notification-…
Browse files Browse the repository at this point in the history
…cfg-resource

Add tfe_team_notification_configuration resource
  • Loading branch information
notchairmk authored Jan 22, 2025
2 parents 9990b80 + 81c93cb commit bea6406
Show file tree
Hide file tree
Showing 9 changed files with 2,147 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Unreleased

FEATURES:
* **New Resource:** `tfe_team_notification_configuration` is a new resource for managing team notification configurations, by @jfreda ([#1540](https://github.com/hashicorp/terraform-provider-tfe/pull/1540))

## v0.62.0

FEATURES:
Expand Down
11 changes: 11 additions & 0 deletions internal/provider/helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,17 @@ func createBusinessOrganization(t *testing.T, client *tfe.Client) (*tfe.Organiza
return org, orgCleanup
}

func createPlusOrganization(t *testing.T, client *tfe.Client) (*tfe.Organization, func()) {
org, orgCleanup := createOrganization(t, client, tfe.OrganizationCreateOptions{
Name: tfe.String("tst-" + randomString(t)),
Email: tfe.String(fmt.Sprintf("%[email protected]", randomString(t))),
})

newSubscriptionUpdater(org).WithPlusEntitlementPlan().Update(t)

return org, orgCleanup
}

func createTrialOrganization(t *testing.T, client *tfe.Client) (*tfe.Organization, func()) {
org, orgCleanup := createOrganization(t, client, tfe.OrganizationCreateOptions{
Name: tfe.String("tst-" + randomString(t)),
Expand Down
1 change: 1 addition & 0 deletions internal/provider/provider_next.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ func (p *frameworkProvider) Resources(ctx context.Context) []func() resource.Res
NewResourceWorkspaceSettings,
NewSAMLSettingsResource,
NewStackResource,
NewTeamNotificationConfigurationResource,
NewTestVariableResource,
NewWorkspaceRunTaskResource,
}
Expand Down
Loading

0 comments on commit bea6406

Please sign in to comment.