From e49069cb4bb0c22e3cf3bb6bf5c7121568b35569 Mon Sep 17 00:00:00 2001 From: Harkanwal Gill Date: Wed, 8 May 2024 12:26:05 -0400 Subject: [PATCH 1/2] Updated project name limit from 36 to 40 characters --- internal/provider/resource_tfe_project.go | 2 +- internal/provider/resource_tfe_project_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/provider/resource_tfe_project.go b/internal/provider/resource_tfe_project.go index 5bc155c8d..a7b1b6abe 100644 --- a/internal/provider/resource_tfe_project.go +++ b/internal/provider/resource_tfe_project.go @@ -40,7 +40,7 @@ func resourceTFEProject() *schema.Resource { Type: schema.TypeString, Required: true, ValidateFunc: validation.All( - validation.StringLenBetween(3, 36), + validation.StringLenBetween(3, 40), validation.StringMatch(regexp.MustCompile(`\A[\w\-][\w\- ]+[\w\-]\z`), "can only include letters, numbers, spaces, -, and _."), ), diff --git a/internal/provider/resource_tfe_project_test.go b/internal/provider/resource_tfe_project_test.go index e77f03ea7..a2070d885 100644 --- a/internal/provider/resource_tfe_project_test.go +++ b/internal/provider/resource_tfe_project_test.go @@ -57,7 +57,7 @@ func TestAccTFEProject_invalidName(t *testing.T) { }, { Config: testAccTFEProject_invalidNameLen(rInt), - ExpectError: regexp.MustCompile(`expected length of name to be in the range \(3 - 36\),`), + ExpectError: regexp.MustCompile(`expected length of name to be in the range \(3 - 40\),`), }, }, }) From b5d0aff05b75c640dd6ce0f89b7f11ad78e22262 Mon Sep 17 00:00:00 2001 From: Harkanwal Gill Date: Wed, 8 May 2024 12:39:33 -0400 Subject: [PATCH 2/2] updated the changelog --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ac7b31c29..f63a35b0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,9 @@ ENHANCEMENTS: FEATURES: * `r/tfe_team`: Add attributes `manage_teams`, `manage_organization_access`, and `access_secret_teams` to `organization_access` on `tfe_team` by @juliannatetreault [#1313](https://github.com/hashicorp/terraform-provider-tfe/pull/1313) +ENHANCEMENTS: +* `r/tfe_project`: Increase the Project name length from 36 to 40 characters @hs26gill [#1351](https://github.com/hashicorp/terraform-provider-tfe/pull/1351) + ## v0.54.0 ENHANCEMENTS: