Skip to content

Commit f4bb8c0

Browse files
authored
chore: fix 409s in tests (#280)
update terraform custom roles
1 parent 47e7ba0 commit f4bb8c0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

launchdarkly/resource_launchdarkly_team_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const (
1414
testAccTeamCreate = `
1515
resource "launchdarkly_custom_role" "terraform_team_test" {
1616
key = "%s"
17-
name = "%s"
17+
name = "Teams test role %s"
1818
base_permissions = "no_access"
1919
policy {
2020
actions = ["*"]
@@ -58,7 +58,7 @@ resource "launchdarkly_team" "test" {
5858
testAccTeamUpdateNameDescriptionRoleAttributes = `
5959
resource "launchdarkly_custom_role" "terraform_team_test" {
6060
key = "%s"
61-
name = "%s"
61+
name = "Teams test role %s"
6262
base_permissions = "no_access"
6363
policy {
6464
actions = ["*"]
@@ -98,7 +98,7 @@ resource "launchdarkly_team" "test" {
9898
testAccTeamUpdateRoles = `
9999
resource "launchdarkly_custom_role" "terraform_team_test" {
100100
key = "%s"
101-
name = "%s"
101+
name = "Teams test role %s"
102102
base_permissions = "no_access"
103103
policy {
104104
actions = ["*"]

launchdarkly/tests/resource_team_role_mapping_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func testAccTeamRoleMappingSetup(uniqueRole0, uniqueRole1, teamKey string) strin
1414
return fmt.Sprintf(`
1515
resource "launchdarkly_custom_role" "role_0" {
1616
key = "%s"
17-
name = "Custom Role 1"
17+
name = "Custom Role 1 %s"
1818
base_permissions = "no_access"
1919
policy {
2020
actions = ["*"]
@@ -25,7 +25,7 @@ func testAccTeamRoleMappingSetup(uniqueRole0, uniqueRole1, teamKey string) strin
2525
2626
resource "launchdarkly_custom_role" "role_1" {
2727
key = "%s"
28-
name = "Custom Role 2"
28+
name = "Custom Role 2 %s"
2929
base_permissions = "no_access"
3030
policy {
3131
actions = ["*"]
@@ -54,7 +54,7 @@ func testAccTeamRoleMappingSetup(uniqueRole0, uniqueRole1, teamKey string) strin
5454
# prevents deleting custom roles that are still in use by teams.
5555
depends_on = [launchdarkly_custom_role.role_0, launchdarkly_custom_role.role_1]
5656
}
57-
`, uniqueRole0, uniqueRole1, teamKey)
57+
`, uniqueRole0, uniqueRole0, uniqueRole1, uniqueRole1, teamKey)
5858
}
5959

6060
func testAccBasicTeamRoleMappingConfig(uniqueRole0, uniqueRole1, teamKey string) string {

0 commit comments

Comments
 (0)