From 6496f563122d0bab178eecf60b6e170e2b99d709 Mon Sep 17 00:00:00 2001 From: Jordi Paris Ferrer Date: Sat, 20 Jul 2024 15:39:54 -0700 Subject: [PATCH] Increase alert name limit to the real limit (#468) --- internal/provider/resource_issue_alert.go | 2 +- internal/provider/resource_issue_alert_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/provider/resource_issue_alert.go b/internal/provider/resource_issue_alert.go index dddbda818..904418ad1 100644 --- a/internal/provider/resource_issue_alert.go +++ b/internal/provider/resource_issue_alert.go @@ -131,7 +131,7 @@ Please note the following changes since v0.12.0: MarkdownDescription: "The issue alert name.", Required: true, Validators: []validator.String{ - stringvalidator.LengthBetween(1, 64), + stringvalidator.LengthBetween(1, 255), }, }, "conditions": schema.StringAttribute{ diff --git a/internal/provider/resource_issue_alert_test.go b/internal/provider/resource_issue_alert_test.go index cfc473301..27c741054 100644 --- a/internal/provider/resource_issue_alert_test.go +++ b/internal/provider/resource_issue_alert_test.go @@ -74,7 +74,7 @@ func TestAccIssueAlertResource_MigrateFromPluginSDK(t *testing.T) { rn := "sentry_issue_alert.test" team := acctest.RandomWithPrefix("tf-team") project := acctest.RandomWithPrefix("tf-project") - alert := acctest.RandomWithPrefix("tf-issue-alert") + alert := acctest.RandomWithPrefix("tf-issue-alert-with-a-very-looooong-name-greater-than-64-characters") var alertId string resource.Test(t, resource.TestCase{