From c359d322beab127d4090eb7ac18c3d35afeb0e0b Mon Sep 17 00:00:00 2001 From: The Magician Date: Tue, 9 Jul 2024 18:26:10 -0700 Subject: [PATCH] Make `TestAccCloudRunV2Job_cloudrunv2JobRunJobExample ` test beta-only (#11114) (#7706) [upstream:ed5ea59cbf5a8cf9ed189a5d24e16b1d595d24da] Signed-off-by: Modular Magician --- .changelog/11114.txt | 3 +++ .../cloudrunv2/resource_cloud_run_v2_job_generated_test.go | 3 ++- website/docs/r/cloud_run_v2_job.html.markdown | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changelog/11114.txt diff --git a/.changelog/11114.txt b/.changelog/11114.txt new file mode 100644 index 0000000000..42b910df15 --- /dev/null +++ b/.changelog/11114.txt @@ -0,0 +1,3 @@ +```release-note:none + +``` \ No newline at end of file diff --git a/google-beta/services/cloudrunv2/resource_cloud_run_v2_job_generated_test.go b/google-beta/services/cloudrunv2/resource_cloud_run_v2_job_generated_test.go index f960763cd4..ff97d0ba2f 100644 --- a/google-beta/services/cloudrunv2/resource_cloud_run_v2_job_generated_test.go +++ b/google-beta/services/cloudrunv2/resource_cloud_run_v2_job_generated_test.go @@ -491,7 +491,7 @@ func TestAccCloudRunV2Job_cloudrunv2JobRunJobExample(t *testing.T) { acctest.VcrTest(t, resource.TestCase{ PreCheck: func() { acctest.AccTestPreCheck(t) }, - ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories(t), + ProtoV5ProviderFactories: acctest.ProtoV5ProviderBetaFactories(t), CheckDestroy: testAccCheckCloudRunV2JobDestroyProducer(t), Steps: []resource.TestStep{ { @@ -510,6 +510,7 @@ func TestAccCloudRunV2Job_cloudrunv2JobRunJobExample(t *testing.T) { func testAccCloudRunV2Job_cloudrunv2JobRunJobExample(context map[string]interface{}) string { return acctest.Nprintf(` resource "google_cloud_run_v2_job" "default" { + provider = google-beta name = "tf-test-cloudrun-job%{random_suffix}" location = "us-central1" start_execution_token = "start-once-created" diff --git a/website/docs/r/cloud_run_v2_job.html.markdown b/website/docs/r/cloud_run_v2_job.html.markdown index 2ce12729f6..aa21399c11 100644 --- a/website/docs/r/cloud_run_v2_job.html.markdown +++ b/website/docs/r/cloud_run_v2_job.html.markdown @@ -349,6 +349,7 @@ resource "google_cloud_run_v2_job" "default" { ```hcl resource "google_cloud_run_v2_job" "default" { + provider = google-beta name = "cloudrun-job" location = "us-central1" start_execution_token = "start-once-created"