Skip to content

Commit e3fce7f

Browse files
authored
removes value check for roles.0 (#3488)
1 parent 98a163a commit e3fce7f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

internal/service/apikeyprojectassignment/resource_test.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ func TestAccApiKeyProjectAssignmentRS_basic(t *testing.T) {
3434
Steps: []resource.TestStep{
3535
{
3636
Config: apiKeyProjectAssignmentConfig(orgID, roleName, projectName),
37-
Check: apiKeyProjectAssignmentAttributeChecks(roleName),
37+
Check: apiKeyProjectAssignmentAttributeChecks(),
3838
},
3939
{
4040
Config: apiKeyProjectAssignmentConfig(orgID, roleNameUpdated, projectName),
41-
Check: apiKeyProjectAssignmentAttributeChecks(roleNameUpdated),
41+
Check: apiKeyProjectAssignmentAttributeChecks(),
4242
},
4343
{
4444
Config: apiKeyProjectAssignmentConfig(orgID, roleNameUpdated, projectName),
@@ -62,12 +62,11 @@ func importStateIDFunc(resourceName, attrNameProjectID, attrNameAPIKeyID string)
6262
}
6363
}
6464

65-
func apiKeyProjectAssignmentAttributeChecks(roleName string) resource.TestCheckFunc {
65+
func apiKeyProjectAssignmentAttributeChecks() resource.TestCheckFunc {
6666
attrsMap := map[string]string{
6767
"roles.#": "1",
68-
"roles.0": roleName,
6968
}
70-
attrsSet := []string{"project_id", "api_key_id"}
69+
attrsSet := []string{"project_id", "api_key_id", "roles.0"}
7170
checks := []resource.TestCheckFunc{
7271
checkExists(resourceName),
7372
}

0 commit comments

Comments
 (0)