Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

re-enable Dataproc Metastore Federation tests #10445

Merged
merged 5 commits into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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