Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jremy42 committed Jul 31, 2024
1 parent 232abff commit 4052ee2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions internal/services/tem/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ func ResourceWebhook() *schema.Resource {
Required: true,
ForceNew: true,
Description: "The domain id",
//ValidateFunc: validation.IsUUID,
},
"region": regional.Schema(),
"project_id": account.ProjectIDSchema(),
Expand Down Expand Up @@ -100,7 +99,6 @@ func ResourceWebhookCreate(ctx context.Context, d *schema.ResourceData, m interf
SnsArn: d.Get("sns_arn").(string),
EventTypes: eventTypes,
}, scw.WithContext(ctx))

if err != nil {
return diag.FromErr(err)
}
Expand Down
4 changes: 2 additions & 2 deletions internal/services/tem/webhook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ import (
"github.com/scaleway/terraform-provider-scaleway/v2/internal/services/tem"
)

const webhookName = "terraform-webhook-test"

func TestAccWebhook_Basic(t *testing.T) {
tt := acctest.NewTestTools(t)
defer tt.Cleanup()

webhookName := "terraform-webhook-test"
eventTypes := []string{"email_delivered", "email_dropped"}

resource.ParallelTest(t, resource.TestCase{
Expand Down Expand Up @@ -296,7 +297,6 @@ func TestAccWebhook_MissingEventTypes(t *testing.T) {
tt := acctest.NewTestTools(t)
defer tt.Cleanup()

webhookName := "terraform-webhook-test"
domainID := "some-domain-id"

resource.ParallelTest(t, resource.TestCase{
Expand Down

0 comments on commit 4052ee2

Please sign in to comment.