Skip to content

Commit

Permalink
use real project id for uptime check generated test (hashicorp#1062)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored and danawillow committed Aug 16, 2019
1 parent 3b44d90 commit 1211a0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ func TestAccMonitoringUptimeCheckConfig_uptimeCheckConfigHttpExample(t *testing.
t.Parallel()

context := map[string]interface{}{
"project_id": getTestProjectFromEnv(),
"random_suffix": acctest.RandString(10),
}

Expand Down Expand Up @@ -62,7 +63,7 @@ resource "google_monitoring_uptime_check_config" "http" {
monitored_resource {
type = "uptime_url"
labels = {
project_id = "example"
project_id = "%{project_id}"
host = "192.168.1.1"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ resource "google_monitoring_uptime_check_config" "http" {
monitored_resource {
type = "uptime_url"
labels = {
project_id = "example"
project_id = "my-project-name"
host = "192.168.1.1"
}
}
Expand Down

0 comments on commit 1211a0e

Please sign in to comment.