Skip to content

Commit

Permalink
fix NetworkUpdate test
Browse files Browse the repository at this point in the history
  • Loading branch information
swamitagupta committed Nov 21, 2023
1 parent 82745ba commit cca0c89
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,13 @@ 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}"
}
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
Expand Down

0 comments on commit cca0c89

Please sign in to comment.