Skip to content

Commit e011813

Browse files
author
Cristina Sánchez Sánchez
committed
Fix
1 parent 59950ba commit e011813

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

internal/service/clouduserprojectassignment/resource_migration_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func TestMigCloudUserProjectAssignmentRS_migrationJourney(t *testing.T) {
3737
Steps: []resource.TestStep{
3838
{
3939
ExternalProviders: mig.ExternalProviders(),
40-
Config: originalConfigFirst(username, projectName, orgID, roles),
40+
Config: legacyProjectInvitationConfig(username, projectName, orgID, roles),
4141
},
4242
{
4343
ProtoV6ProviderFactories: acc.TestAccProviderV6Factories,
@@ -58,7 +58,7 @@ func TestMigCloudUserProjectAssignmentRS_migrationJourney(t *testing.T) {
5858
})
5959
}
6060

61-
func originalConfigFirst(username, projectName, orgID string, roles []string) string {
61+
func legacyProjectInvitationConfig(username, projectName, orgID string, roles []string) string {
6262
rolesStr := `"` + strings.Join(roles, `", "`) + `"`
6363
config := fmt.Sprintf(`
6464
locals {

internal/service/clouduserprojectassignment/resource_schema.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
// Code generated by terraform-plugin-framework-generator DO NOT EDIT.
2-
31
package clouduserprojectassignment
42

53
import (
64
"context"
7-
"regexp"
85

96
"github.com/hashicorp/terraform-plugin-framework-validators/setvalidator"
10-
"github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
117
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
128
"github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier"
139
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -40,9 +36,6 @@ func resourceSchema(ctx context.Context) schema.Schema {
4036
"project_id": schema.StringAttribute{
4137
Required: true,
4238
MarkdownDescription: "Unique 24-hexadecimal digit string that identifies your project. Use the [/groups](#tag/Projects/operation/listProjects) endpoint to retrieve all projects to which the authenticated user has access.\n\n**NOTE**: Groups and projects are synonymous terms. Your group id is the same as your project id. For existing groups, your group/project id remains the same. The resource and corresponding endpoints use the term groups.",
43-
Validators: []validator.String{
44-
stringvalidator.RegexMatches(regexp.MustCompile("^([a-f0-9]{24})$"), ""),
45-
},
4639
},
4740
"user_id": schema.StringAttribute{
4841
Computed: true,

0 commit comments

Comments
 (0)