Skip to content

Commit

Permalink
fix notification channel test (#3037) (#1696)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician authored Jan 29, 2020
1 parent b2aace7 commit 4ef00d4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Empty file added .changelog/3037.txt
Empty file.
10 changes: 7 additions & 3 deletions google-beta/data_source_monitoring_notification_channel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,22 +159,26 @@ data "google_monitoring_notification_channel" "default" {
`, displayName, displayName)
}

func testAccDataSourceGoogleMonitoringNotificationChannel_byTypeAndUserLabel(displayName string) string {
func testAccDataSourceGoogleMonitoringNotificationChannel_byTypeAndUserLabel(testName string) string {
return fmt.Sprintf(`
resource "google_monitoring_notification_channel" "default" {
display_name = "%s"
type = "email"
labels = {
email_address = "%s@google.com"
}
user_labels = {
testname = "%s"
testname = "foo-%s"
}
}
data "google_monitoring_notification_channel" "default" {
type = google_monitoring_notification_channel.default.type
user_labels = google_monitoring_notification_channel.default.user_labels
}
`, displayName, displayName)
`, testName, testName, testName)
}

func testAccDataSourceGoogleMonitoringNotificationChannel_byDisplayNameAndType(displayName string) string {
Expand Down

0 comments on commit 4ef00d4

Please sign in to comment.