Skip to content

Commit b20e721

Browse files
authored
fix(tests): remove fixed team name in tests (#398)
1 parent 6b6343c commit b20e721

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

sysdig/resource_sysdig_monitor_notification_channel_team_email_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func TestAccMonitorNotificationChannelTeamEmail(t *testing.T) {
4747
func monitorNotificationChannelTeamEmailWithName(name string) string {
4848
return fmt.Sprintf(`
4949
resource "sysdig_monitor_team" "sample" {
50-
name = "monitor-sample"
50+
name = "monitor-sample-%s"
5151
entrypoint {
5252
type = "Explore"
5353
}
@@ -58,13 +58,13 @@ resource "sysdig_monitor_notification_channel_team_email" "sample_team_email1" {
5858
team_id = sysdig_monitor_team.sample.id
5959
notify_when_ok = true
6060
notify_when_resolved = true
61-
}`, name)
61+
}`, name, name)
6262
}
6363

6464
func monitorNotificationChannelTeamEmailSharedWithCurrentTeam(name string) string {
6565
return fmt.Sprintf(`
6666
resource "sysdig_monitor_team" "sample" {
67-
name = "monitor-sample"
67+
name = "monitor-sample-%s"
6868
entrypoint {
6969
type = "Explore"
7070
}
@@ -76,5 +76,5 @@ resource "sysdig_monitor_notification_channel_team_email" "sample_team_email2" {
7676
notify_when_ok = true
7777
notify_when_resolved = true
7878
share_with_current_team = true
79-
}`, name)
79+
}`, name, name)
8080
}

sysdig/resource_sysdig_secure_notification_channel_team_email_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func TestAccSecureNotificationChannelTeamEmail(t *testing.T) {
4747
func secureNotificationChannelTeamEmailWithName(name string) string {
4848
return fmt.Sprintf(`
4949
resource "sysdig_secure_team" "sample" {
50-
name = "secure-sample"
50+
name = "secure-sample-%s"
5151
all_zones = "true"
5252
}
5353
resource "sysdig_secure_notification_channel_team_email" "sample_team_email1" {
@@ -56,13 +56,13 @@ resource "sysdig_secure_notification_channel_team_email" "sample_team_email1" {
5656
team_id = sysdig_secure_team.sample.id
5757
notify_when_ok = true
5858
notify_when_resolved = true
59-
}`, name)
59+
}`, name, name)
6060
}
6161

6262
func secureNotificationChannelTeamEmailSharedWithCurrentTeam(name string) string {
6363
return fmt.Sprintf(`
6464
resource "sysdig_secure_team" "sample" {
65-
name = "secure-sample"
65+
name = "secure-sample-%s"
6666
all_zones = "true"
6767
}
6868
resource "sysdig_secure_notification_channel_team_email" "sample_team_email2" {
@@ -72,5 +72,5 @@ resource "sysdig_secure_notification_channel_team_email" "sample_team_email2" {
7272
notify_when_ok = true
7373
notify_when_resolved = true
7474
share_with_current_team = true
75-
}`, name)
75+
}`, name, name)
7676
}

0 commit comments

Comments
 (0)