From 8cddcb7293eafdffcb7ebff16d078909ecd4771f Mon Sep 17 00:00:00 2001 From: emily Date: Thu, 2 Jan 2020 09:31:10 -0800 Subject: [PATCH] Use a real project for billing budget test (#2900) Merged PR #2900. --- build/terraform | 2 +- build/terraform-beta | 2 +- products/billingbudget/terraform.yaml | 1 + templates/terraform/examples/billing_budget_filter.tf.erb | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/build/terraform b/build/terraform index 75417ae47d04..6db94bc0140d 160000 --- a/build/terraform +++ b/build/terraform @@ -1 +1 @@ -Subproject commit 75417ae47d046fef2202be836ee3846c7e37e18e +Subproject commit 6db94bc0140d270562faa541912d52a038b23b14 diff --git a/build/terraform-beta b/build/terraform-beta index 65be19f111ad..a685fbc4f50e 160000 --- a/build/terraform-beta +++ b/build/terraform-beta @@ -1 +1 @@ -Subproject commit 65be19f111ad528c3b71400f2b7fb7122ce61619 +Subproject commit a685fbc4f50e6b788d42d06f2b4ea4c7ee32e834 diff --git a/products/billingbudget/terraform.yaml b/products/billingbudget/terraform.yaml index 02e956d4106b..d5ad8f2db864 100644 --- a/products/billingbudget/terraform.yaml +++ b/products/billingbudget/terraform.yaml @@ -33,6 +33,7 @@ overrides: !ruby/object:Overrides::ResourceOverrides display_name: 'Example Billing Budget' test_env_vars: billing_acct: :BILLING_ACCT + project: :PROJECT_NAME custom_code: !ruby/object:Provider::Terraform::CustomCode custom_import: templates/terraform/custom_import/self_link_as_name.erb post_create: templates/terraform/post_create/set_computed_name.erb diff --git a/templates/terraform/examples/billing_budget_filter.tf.erb b/templates/terraform/examples/billing_budget_filter.tf.erb index e70c5f107c17..e288799f0ef0 100644 --- a/templates/terraform/examples/billing_budget_filter.tf.erb +++ b/templates/terraform/examples/billing_budget_filter.tf.erb @@ -9,7 +9,7 @@ resource "google_billing_budget" "<%= ctx[:primary_resource_id] %>" { display_name = "<%= ctx[:vars]['display_name'] %>" budget_filter { - projects = ["projects/example-project"] + projects = ["projects/<%= ctx[:test_env_vars]['project'] -%>"] credit_types_treatment = "EXCLUDE_ALL_CREDITS" services = ["services/24E6-581D-38E5"] # Bigquery }