Skip to content

Commit

Permalink
Merge pull request #1351 from hashicorp/hs26gill/TF-15236-Provider-In…
Browse files Browse the repository at this point in the history
…crease-Project-Name-char-limit-to-40-characters

Updated project name limit from 36 to 40 characters
  • Loading branch information
hs26gill committed May 21, 2024
2 parents 5192223 + b5d0aff commit 1d447dd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/resource_tfe_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 _."),
),
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/resource_tfe_project_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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\),`),
},
},
})
Expand Down

0 comments on commit 1d447dd

Please sign in to comment.