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 2ca20a0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ var handwrittenDatasources = map[string]*schema.Resource{
"google_vpc_access_connector": vpcaccess.DataSourceVPCAccessConnector(),
"google_redis_instance": redis.DataSourceGoogleRedisInstance(),
"google_vertex_ai_index": vertexai.DataSourceVertexAIIndex(),
<% unless version == 'ga' -%>
"google_vmwareengine_network": vmwareengine.DataSourceVmwareengineNetwork(),
<% unless version == 'ga' -%>
"google_vmwareengine_private_cloud": vmwareengine.DataSourceVmwareenginePrivateCloud(),
"google_vmwareengine_cluster": vmwareengine.DataSourceVmwareengineCluster(),
<% end -%>
Expand Down
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 2ca20a0

Please sign in to comment.