Skip to content

Commit 12f3731

Browse files
Make TestAccCloudRunV2Job_cloudrunv2JobRunJobExample test beta-only (#11114) (#18690)
[upstream:ed5ea59cbf5a8cf9ed189a5d24e16b1d595d24da] Signed-off-by: Modular Magician <magic-modules@google.com>
1 parent aa24070 commit 12f3731

File tree

3 files changed

+4
-42
lines changed

3 files changed

+4
-42
lines changed

.changelog/11114.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:none
2+
3+
```

google/services/cloudrunv2/resource_cloud_run_v2_job_generated_test.go

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -428,48 +428,6 @@ resource "google_secret_manager_secret_iam_member" "secret-access" {
428428
`, context)
429429
}
430430

431-
func TestAccCloudRunV2Job_cloudrunv2JobRunJobExample(t *testing.T) {
432-
t.Parallel()
433-
434-
context := map[string]interface{}{
435-
"random_suffix": acctest.RandString(t, 10),
436-
}
437-
438-
acctest.VcrTest(t, resource.TestCase{
439-
PreCheck: func() { acctest.AccTestPreCheck(t) },
440-
ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories(t),
441-
CheckDestroy: testAccCheckCloudRunV2JobDestroyProducer(t),
442-
Steps: []resource.TestStep{
443-
{
444-
Config: testAccCloudRunV2Job_cloudrunv2JobRunJobExample(context),
445-
},
446-
{
447-
ResourceName: "google_cloud_run_v2_job.default",
448-
ImportState: true,
449-
ImportStateVerify: true,
450-
ImportStateVerifyIgnore: []string{"annotations", "labels", "location", "name", "terraform_labels"},
451-
},
452-
},
453-
})
454-
}
455-
456-
func testAccCloudRunV2Job_cloudrunv2JobRunJobExample(context map[string]interface{}) string {
457-
return acctest.Nprintf(`
458-
resource "google_cloud_run_v2_job" "default" {
459-
name = "tf-test-cloudrun-job%{random_suffix}"
460-
location = "us-central1"
461-
start_execution_token = "start-once-created"
462-
template {
463-
template {
464-
containers {
465-
image = "us-docker.pkg.dev/cloudrun/container/job"
466-
}
467-
}
468-
}
469-
}
470-
`, context)
471-
}
472-
473431
func testAccCheckCloudRunV2JobDestroyProducer(t *testing.T) func(s *terraform.State) error {
474432
return func(s *terraform.State) error {
475433
for name, rs := range s.RootModule().Resources {

website/docs/r/cloud_run_v2_job.html.markdown

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ resource "google_cloud_run_v2_job" "default" {
349349

350350
```hcl
351351
resource "google_cloud_run_v2_job" "default" {
352+
provider = google-beta
352353
name = "cloudrun-job"
353354
location = "us-central1"
354355
start_execution_token = "start-once-created"

0 commit comments

Comments
 (0)