From cca0c898983379a666f8ae95ccc2149fb9b5cd34 Mon Sep 17 00:00:00 2001 From: Swamita Gupta Date: Wed, 15 Nov 2023 08:09:14 +0000 Subject: [PATCH] fix NetworkUpdate test --- .../vmwareengine/data_source_google_vmwareengine_network.go | 1 + .../services/vmwareengine/resource_vmwareengine_network_test.go | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/mmv1/third_party/terraform/services/vmwareengine/data_source_google_vmwareengine_network.go b/mmv1/third_party/terraform/services/vmwareengine/data_source_google_vmwareengine_network.go index 9bd2c6374009..dc6c0a8ce0aa 100644 --- a/mmv1/third_party/terraform/services/vmwareengine/data_source_google_vmwareengine_network.go +++ b/mmv1/third_party/terraform/services/vmwareengine/data_source_google_vmwareengine_network.go @@ -12,6 +12,7 @@ func DataSourceVmwareengineNetwork() *schema.Resource { dsSchema := tpgresource.DatasourceSchemaFromResourceSchema(ResourceVmwareengineNetwork().Schema) tpgresource.AddRequiredFieldsToSchema(dsSchema, "location", "name") + tpgresource.AddOptionalFieldsToSchema(dsSchema, "project") return &schema.Resource{ Read: dataSourceVmwareengineNetworkRead, Schema: dsSchema, diff --git a/mmv1/third_party/terraform/services/vmwareengine/resource_vmwareengine_network_test.go b/mmv1/third_party/terraform/services/vmwareengine/resource_vmwareengine_network_test.go index 17f32090cc06..521210061b86 100644 --- a/mmv1/third_party/terraform/services/vmwareengine/resource_vmwareengine_network_test.go +++ b/mmv1/third_party/terraform/services/vmwareengine/resource_vmwareengine_network_test.go @@ -63,7 +63,6 @@ resource "google_vmwareengine_network" "default-nw" { # there can be only 1 Legacy network per region for a given project, so creating new project to isolate tests. resource "google_project" "acceptance" { name = "tf-test-%{random_suffix}" - provider = google-beta project_id = "tf-test-%{random_suffix}" org_id = "%{organization}" billing_account = "%{billing_account}" @@ -71,7 +70,6 @@ resource "google_project" "acceptance" { resource "google_project_service" "acceptance" { project = google_project.acceptance.project_id - provider = google-beta service = "vmwareengine.googleapis.com" # Needed for CI tests for permissions to propagate, should not be needed for actual usage