Skip to content

Commit

Permalink
re-enable Dataproc Metastore Federation tests (GoogleCloudPlatform#10445
Browse files Browse the repository at this point in the history
)

Co-authored-by: Sarah French <15078782+SarahFrench@users.noreply.github.com>
  • Loading branch information
2 people authored and abd-goog committed Sep 23, 2024
1 parent 38dc6d9 commit f8f326f
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 11 deletions.
2 changes: 0 additions & 2 deletions mmv1/products/metastore/Federation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ import_format:
examples:
- !ruby/object:Provider::Terraform::Examples
name: 'dataproc_metastore_federation_basic'
skip_test: true # https://github.com/hashicorp/terraform-provider-google/issues/13710
primary_resource_id: 'default'
primary_resource_name:
'fmt.Sprintf("tf-test-metastore-fed%s", context["random_suffix"])'
Expand All @@ -60,7 +59,6 @@ examples:
service_id: 'metastore-service'
- !ruby/object:Provider::Terraform::Examples
name: 'dataproc_metastore_federation_bigquery'
skip_test: true # https://github.com/hashicorp/terraform-provider-google/issues/13710
primary_resource_id: 'default'
primary_resource_name:
'fmt.Sprintf("tf-test-metastore-fed%s", context["random_suffix"])'
Expand Down
1 change: 0 additions & 1 deletion mmv1/products/metastore/Service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ examples:
- !ruby/object:Provider::Terraform::Examples
name: 'dataproc_metastore_service_endpoint'
skip_docs: true
skip_test: true # https://github.com/hashicorp/terraform-provider-google/issues/13710
primary_resource_id: 'endpoint'
vars:
metastore_service_name: 'metastore-endpoint'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
resource "google_dataproc_metastore_federation" "<%= ctx[:primary_resource_id] %>" {
location = "us-central1"
federation_id = "<%= ctx[:vars]['metastore_federation_name'] %>"
federation_id = "<%= ctx[:vars]['federation_id'] %>"
version = "3.1.2"

backend_metastores {
Expand All @@ -11,7 +11,7 @@ resource "google_dataproc_metastore_federation" "<%= ctx[:primary_resource_id] %
}

resource "google_dataproc_metastore_service" "<%= ctx[:primary_resource_id] %>" {
service_id = "<%= ctx[:vars]['metastore_federation_name'] %>"
service_id = "<%= ctx[:vars]['service_id'] %>"
location = "us-central1"
tier = "DEVELOPER"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
resource "google_dataproc_metastore_federation" "<%= ctx[:primary_resource_id] %>" {
location = "us-central1"
federation_id = "<%= ctx[:vars]['metastore_federation_name'] %>"
federation_id = "<%= ctx[:vars]['federation_id'] %>"
version = "3.1.2"

backend_metastores {
Expand All @@ -17,7 +17,7 @@ resource "google_dataproc_metastore_federation" "<%= ctx[:primary_resource_id] %
}

resource "google_dataproc_metastore_service" "<%= ctx[:primary_resource_id] %>" {
service_id = "<%= ctx[:vars]['metastore_federation_name'] %>"
service_id = "<%= ctx[:vars]['service_id'] %>"
location = "us-central1"
tier = "DEVELOPER"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ resource "google_compute_subnetwork" "subnet" {
resource "google_dataproc_metastore_service" "<%= ctx[:primary_resource_id] %>" {
service_id = "<%= ctx[:vars]['metastore_service_name'] %>"
location = "us-central1"
tier = "DEVELOPER"

hive_metastore_config {
version = "3.1.2"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
resource "google_dataproc_metastore_federation" "{{$.PrimaryResourceId}}" {
location = "us-central1"
federation_id = "{{index $.Vars "metastore_federation_name"}}"
federation_id = "{{index $.Vars "federation_id"}}"
version = "3.1.2"

backend_metastores {
Expand All @@ -11,7 +11,7 @@ resource "google_dataproc_metastore_federation" "{{$.PrimaryResourceId}}" {
}

resource "google_dataproc_metastore_service" "{{$.PrimaryResourceId}}" {
service_id = "{{index $.Vars "metastore_federation_name"}}"
service_id = "{{index $.Vars "service_id"}}"
location = "us-central1"
tier = "DEVELOPER"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
resource "google_dataproc_metastore_federation" "{{$.PrimaryResourceId}}" {
location = "us-central1"
federation_id = "{{index $.Vars "metastore_federation_name"}}"
federation_id = "{{index $.Vars "federation_id"}}"
version = "3.1.2"

backend_metastores {
Expand All @@ -17,7 +17,7 @@ resource "google_dataproc_metastore_federation" "{{$.PrimaryResourceId}}" {
}

resource "google_dataproc_metastore_service" "{{$.PrimaryResourceId}}" {
service_id = "{{index $.Vars "metastore_federation_name"}}"
service_id = "{{index $.Vars "service_id"}}"
location = "us-central1"
tier = "DEVELOPER"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ resource "google_compute_subnetwork" "subnet" {
resource "google_dataproc_metastore_service" "{{$.PrimaryResourceId}}" {
service_id = "{{index $.Vars "metastore_service_name"}}"
location = "us-central1"
tier = "DEVELOPER"

hive_metastore_config {
version = "3.1.2"
Expand Down

0 comments on commit f8f326f

Please sign in to comment.