Skip to content

Commit

Permalink
fix: add random characters to name that keeps conflicting (#272)
Browse files Browse the repository at this point in the history
add random characters to name that keeps conflicting
  • Loading branch information
sloloris authored Jan 30, 2025
1 parent f035564 commit 4d5cd7a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions launchdarkly/resource_launchdarkly_team_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ resource "launchdarkly_custom_role" "terraform_team_test" {
resource "launchdarkly_custom_role" "other_team_test" {
key = "%s"
name = "Other Terraform Teams test role"
name = "Other test role %s"
base_permissions = "no_access"
policy {
actions = ["*"]
Expand Down Expand Up @@ -121,7 +121,7 @@ resource "launchdarkly_team" "test" {
testAccTeamUpdateMembersMaintainers = `
resource "launchdarkly_custom_role" "other_team_test" {
key = "%s"
name = "Other Terraform Teams test role"
name = "Other test role %s"
base_permissions = "no_access"
policy {
actions = ["*"]
Expand Down Expand Up @@ -213,7 +213,7 @@ func TestAccTeam_CreateAndUpdate(t *testing.T) {
ImportStateVerify: true,
},
{
Config: fmt.Sprintf(testAccTeamUpdateRoles, randomRoleOne, randomRoleTwo, randomEmailOne, randomEmailTwo, randomTeamKey),
Config: fmt.Sprintf(testAccTeamUpdateRoles, randomRoleOne, randomRoleTwo, randomRoleTwo, randomEmailOne, randomEmailTwo, randomTeamKey),
Check: resource.ComposeTestCheckFunc(
testAccCheckTeamExists(resourceName),
resource.TestCheckResourceAttr(resourceName, NAME, "Integrations"),
Expand All @@ -231,7 +231,7 @@ func TestAccTeam_CreateAndUpdate(t *testing.T) {
ImportStateVerify: true,
},
{
Config: fmt.Sprintf(testAccTeamUpdateMembersMaintainers, randomRoleTwo, randomEmailOne, randomEmailTwo, randomEmailThree, randomTeamKey),
Config: fmt.Sprintf(testAccTeamUpdateMembersMaintainers, randomRoleTwo, randomRoleTwo, randomEmailOne, randomEmailTwo, randomEmailThree, randomTeamKey),
Check: resource.ComposeTestCheckFunc(
testAccCheckTeamExists(resourceName),
resource.TestCheckResourceAttr(resourceName, NAME, "Integrations"),
Expand All @@ -250,7 +250,7 @@ func TestAccTeam_CreateAndUpdate(t *testing.T) {
},
// Check the team key can be updated (with force new)
{
Config: fmt.Sprintf(testAccTeamUpdateMembersMaintainers, randomRoleTwo, randomEmailOne, randomEmailTwo, randomEmailThree, randomNewTeamKey),
Config: fmt.Sprintf(testAccTeamUpdateMembersMaintainers, randomRoleTwo, randomRoleTwo, randomEmailOne, randomEmailTwo, randomEmailThree, randomNewTeamKey),
Check: resource.ComposeTestCheckFunc(
testAccCheckTeamExists(resourceName),
resource.TestCheckResourceAttr(resourceName, NAME, "Integrations"),
Expand Down

0 comments on commit 4d5cd7a

Please sign in to comment.