Skip to content

Commit 1d447dd

Browse files
authored
Merge pull request #1351 from hashicorp/hs26gill/TF-15236-Provider-Increase-Project-Name-char-limit-to-40-characters
Updated project name limit from 36 to 40 characters
2 parents 5192223 + b5d0aff commit 1d447dd

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ ENHANCEMENTS:
88
FEATURES:
99
* `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)
1010

11+
ENHANCEMENTS:
12+
* `r/tfe_project`: Increase the Project name length from 36 to 40 characters @hs26gill [#1351](https://github.com/hashicorp/terraform-provider-tfe/pull/1351)
13+
1114
## v0.54.0
1215

1316
ENHANCEMENTS:

internal/provider/resource_tfe_project.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func resourceTFEProject() *schema.Resource {
4040
Type: schema.TypeString,
4141
Required: true,
4242
ValidateFunc: validation.All(
43-
validation.StringLenBetween(3, 36),
43+
validation.StringLenBetween(3, 40),
4444
validation.StringMatch(regexp.MustCompile(`\A[\w\-][\w\- ]+[\w\-]\z`),
4545
"can only include letters, numbers, spaces, -, and _."),
4646
),

internal/provider/resource_tfe_project_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func TestAccTFEProject_invalidName(t *testing.T) {
5757
},
5858
{
5959
Config: testAccTFEProject_invalidNameLen(rInt),
60-
ExpectError: regexp.MustCompile(`expected length of name to be in the range \(3 - 36\),`),
60+
ExpectError: regexp.MustCompile(`expected length of name to be in the range \(3 - 40\),`),
6161
},
6262
},
6363
})

0 commit comments

Comments
 (0)