diff --git a/.changelog/12467.txt b/.changelog/12467.txt new file mode 100644 index 0000000000..42b910df15 --- /dev/null +++ b/.changelog/12467.txt @@ -0,0 +1,3 @@ +```release-note:none + +``` \ No newline at end of file diff --git a/google-beta/services/dataflow/resource_dataflow_flex_template_job_test.go b/google-beta/services/dataflow/resource_dataflow_flex_template_job_test.go index b18b98e20c..50bded645b 100644 --- a/google-beta/services/dataflow/resource_dataflow_flex_template_job_test.go +++ b/google-beta/services/dataflow/resource_dataflow_flex_template_job_test.go @@ -137,6 +137,9 @@ func TestAccDataflowFlexTemplateJob_FullUpdate(t *testing.T) { PreCheck: func() { acctest.AccTestPreCheck(t) }, ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories(t), CheckDestroy: testAccCheckDataflowJobDestroyProducer(t), + ExternalProviders: map[string]resource.ExternalProvider{ + "time": {}, + }, Steps: []resource.TestStep{ { Config: testAccDataflowFlexTemplateJob_dataflowFlexTemplateJobFull(job, bucket, topic, randStr), @@ -871,7 +874,13 @@ resource "google_storage_bucket_object" "schema" { EOF } +resource "time_sleep" "wait_bind_iam_roles" { + depends_on = [google_project_iam_member.dataflow-worker, google_project_iam_member.dataflow-storage] + create_duration = "300s" +} + resource "google_dataflow_flex_template_job" "flex_job_fullupdate" { + depends_on = [time_sleep.wait_bind_iam_roles] name = "%s" container_spec_gcs_path = "gs://${data.google_storage_bucket_object.flex_template.bucket}/${data.google_storage_bucket_object.flex_template.name}" on_delete = "cancel"