Skip to content

Commit

Permalink
Merge pull request #1282 from hashicorp/gs/refactor-run-task-resources
Browse files Browse the repository at this point in the history
Migrate tfe_organization_run_task to plugin model
  • Loading branch information
glennsarti authored Mar 21, 2024
2 parents 61586dd + 7a086ca commit b89d0da
Show file tree
Hide file tree
Showing 8 changed files with 296 additions and 156 deletions.
4 changes: 2 additions & 2 deletions internal/provider/data_source_organization_run_task_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ func TestAccTFEOrganizationRunTaskDataSource_basic(t *testing.T) {
rInt := rand.New(rand.NewSource(time.Now().UnixNano())).Int()

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
PreCheck: func() { testAccPreCheck(t) },
ProtoV5ProviderFactories: testAccMuxedProviders,
Steps: []resource.TestStep{
{
Config: testAccTFEOrganizationRunTaskDataSourceConfig(org.Name, rInt, runTasksURL(), runTasksHMACKey()),
Expand Down
4 changes: 2 additions & 2 deletions internal/provider/data_source_workspace_run_task_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ func TestAccTFEWorkspaceRunTaskDataSource_basic(t *testing.T) {
rInt := rand.New(rand.NewSource(time.Now().UnixNano())).Int()

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
PreCheck: func() { testAccPreCheck(t) },
ProtoV5ProviderFactories: testAccMuxedProviders,
Steps: []resource.TestStep{
{
Config: testAccTFEWorkspaceRunTaskDataSourceConfig(org.Name, rInt, runTasksURL()),
Expand Down
1 change: 0 additions & 1 deletion internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ func Provider() *schema.Provider {
"tfe_organization_default_settings": resourceTFEOrganizationDefaultSettings(),
"tfe_organization_membership": resourceTFEOrganizationMembership(),
"tfe_organization_module_sharing": resourceTFEOrganizationModuleSharing(),
"tfe_organization_run_task": resourceTFEOrganizationRunTask(),
"tfe_organization_token": resourceTFEOrganizationToken(),
"tfe_policy": resourceTFEPolicy(),
"tfe_policy_set": resourceTFEPolicySet(),
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 @@ -139,5 +139,6 @@ func (p *frameworkProvider) Resources(ctx context.Context) []func() resource.Res
NewResourceVariable,
NewSAMLSettingsResource,
NewResourceWorkspaceSettings,
NewOrganizationRunTaskResource,
}
}
Loading

0 comments on commit b89d0da

Please sign in to comment.