diff --git a/internal/provider/resource_project_inbound_data_filter_test.go b/internal/provider/resource_project_inbound_data_filter_test.go index 7018a75b..d64c76b6 100644 --- a/internal/provider/resource_project_inbound_data_filter_test.go +++ b/internal/provider/resource_project_inbound_data_filter_test.go @@ -17,7 +17,6 @@ func TestAccProjectInboundDataFilterResource(t *testing.T) { resource.Test(t, resource.TestCase{ PreCheck: func() { acctest.PreCheck(t) }, ProtoV5ProviderFactories: testAccProtoV5ProviderFactories, - CheckDestroy: testAccCheckTeamMemberDestroy, Steps: []resource.TestStep{ { Config: testAccProjectInboundDataFilterConfig(teamSlug, projectSlug, filterId, "active = true"), @@ -57,7 +56,6 @@ func TestAccProjectInboundDataFilterResource_LegacyBrowser(t *testing.T) { resource.Test(t, resource.TestCase{ PreCheck: func() { acctest.PreCheck(t) }, ProtoV5ProviderFactories: testAccProtoV5ProviderFactories, - CheckDestroy: testAccCheckTeamMemberDestroy, Steps: []resource.TestStep{ { Config: testAccProjectInboundDataFilterConfig(teamSlug, projectSlug, filterId, "subfilters = [\"ie_pre_9\"]"), diff --git a/internal/provider/resource_team_member_test.go b/internal/provider/resource_team_member_test.go index 36a18329..691f7622 100644 --- a/internal/provider/resource_team_member_test.go +++ b/internal/provider/resource_team_member_test.go @@ -5,35 +5,9 @@ import ( "testing" "github.com/hashicorp/terraform-plugin-testing/helper/resource" - "github.com/hashicorp/terraform-plugin-testing/terraform" "github.com/jianyuan/terraform-provider-sentry/internal/acctest" ) -func testAccCheckTeamMemberDestroy(s *terraform.State) error { - for _, rs := range s.RootModule().Resources { - if rs.Type != "sentry_team_member" { - continue - } - - // ctx := context.Background() - // team, resp, err := acctest.SharedClient.TeamMembers.Get( - // ctx, - // rs.Primary.Attributes["organization"], - // rs.Primary.ID, - // ) - // if err == nil { - // if team != nil { - // return errors.New("team member still exists") - // } - // } - // if resp.StatusCode != 404 { - // return err - // } - return nil - } - return nil -} - func TestAccTeamMemberResource(t *testing.T) { rn := "sentry_team_member.test" teamSlug := acctest.RandomWithPrefix("tf-team") @@ -43,7 +17,6 @@ func TestAccTeamMemberResource(t *testing.T) { resource.Test(t, resource.TestCase{ PreCheck: func() { acctest.PreCheck(t) }, ProtoV5ProviderFactories: testAccProtoV5ProviderFactories, - CheckDestroy: testAccCheckTeamMemberDestroy, Steps: []resource.TestStep{ { Config: testAccTeamMemberConfig(teamSlug, member1Email, member2Email, "sentry_organization_member.test_1", "contributor"),