Skip to content

Commit

Permalink
chore: fix 409s in tests (#280)
Browse files Browse the repository at this point in the history
update terraform custom roles
  • Loading branch information
sloloris authored Feb 14, 2025
1 parent 47e7ba0 commit f4bb8c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions launchdarkly/resource_launchdarkly_team_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const (
testAccTeamCreate = `
resource "launchdarkly_custom_role" "terraform_team_test" {
key = "%s"
name = "%s"
name = "Teams test role %s"
base_permissions = "no_access"
policy {
actions = ["*"]
Expand Down Expand Up @@ -58,7 +58,7 @@ resource "launchdarkly_team" "test" {
testAccTeamUpdateNameDescriptionRoleAttributes = `
resource "launchdarkly_custom_role" "terraform_team_test" {
key = "%s"
name = "%s"
name = "Teams test role %s"
base_permissions = "no_access"
policy {
actions = ["*"]
Expand Down Expand Up @@ -98,7 +98,7 @@ resource "launchdarkly_team" "test" {
testAccTeamUpdateRoles = `
resource "launchdarkly_custom_role" "terraform_team_test" {
key = "%s"
name = "%s"
name = "Teams test role %s"
base_permissions = "no_access"
policy {
actions = ["*"]
Expand Down
6 changes: 3 additions & 3 deletions launchdarkly/tests/resource_team_role_mapping_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func testAccTeamRoleMappingSetup(uniqueRole0, uniqueRole1, teamKey string) strin
return fmt.Sprintf(`
resource "launchdarkly_custom_role" "role_0" {
key = "%s"
name = "Custom Role 1"
name = "Custom Role 1 %s"
base_permissions = "no_access"
policy {
actions = ["*"]
Expand All @@ -25,7 +25,7 @@ func testAccTeamRoleMappingSetup(uniqueRole0, uniqueRole1, teamKey string) strin
resource "launchdarkly_custom_role" "role_1" {
key = "%s"
name = "Custom Role 2"
name = "Custom Role 2 %s"
base_permissions = "no_access"
policy {
actions = ["*"]
Expand Down Expand Up @@ -54,7 +54,7 @@ func testAccTeamRoleMappingSetup(uniqueRole0, uniqueRole1, teamKey string) strin
# prevents deleting custom roles that are still in use by teams.
depends_on = [launchdarkly_custom_role.role_0, launchdarkly_custom_role.role_1]
}
`, uniqueRole0, uniqueRole1, teamKey)
`, uniqueRole0, uniqueRole0, uniqueRole1, uniqueRole1, teamKey)
}

func testAccBasicTeamRoleMappingConfig(uniqueRole0, uniqueRole1, teamKey string) string {
Expand Down

0 comments on commit f4bb8c0

Please sign in to comment.