Skip to content

Commit 6fb2d30

Browse files
authored
Fix Dataproc Metastore IAM tests (#15561)
1 parent 4c71459 commit 6fb2d30

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

mmv1/products/metastore/Database.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ examples:
4040
- name: 'dataproc_metastore_service_database_iam'
4141
primary_resource_id: 'dpms_service'
4242
primary_resource_name: 'fmt.Sprintf("tf-test-metastore-srv-%s", context["random_suffix"]), "testdb"'
43+
external_providers: ["time"]
4344
parameters:
4445
properties:
4546
- name: 'name'

mmv1/products/metastore/Table.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ examples:
4040
- name: 'dataproc_metastore_service_table_iam'
4141
primary_resource_id: 'dpms_service'
4242
primary_resource_name: 'fmt.Sprintf("tf-test-metastore-srv-%s", context["random_suffix"]), "testdb", "testtbl"'
43+
external_providers: ["time"]
4344
parameters:
4445
properties:
4546
- name: 'name'

mmv1/templates/terraform/examples/dataproc_metastore_service_database_iam.tf.tmpl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,11 @@ resource "google_dataproc_job" "hive" {
5757
]
5858
}
5959
}
60+
61+
# There is no simple way to wait on the Dataproc job to be SUCCESS
62+
# rather than RUNNING.
63+
resource "time_sleep" "wait_hive_job" {
64+
create_duration = "90s"
65+
depends_on = [google_dataproc_job.hive]
66+
}
67+

mmv1/templates/terraform/examples/dataproc_metastore_service_table_iam.tf.tmpl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,11 @@ resource "google_dataproc_job" "hive" {
5959
]
6060
}
6161
}
62+
63+
# There is no simple way to wait on the Dataproc job to be SUCCESS
64+
# rather than RUNNING.
65+
resource "time_sleep" "wait_hive_job" {
66+
create_duration = "90s"
67+
depends_on = [google_dataproc_job.hive]
68+
}
69+

0 commit comments

Comments
 (0)