diff --git a/google/data_source_google_compute_subnetwork_test.go b/google/data_source_google_compute_subnetwork_test.go index 219a8070..7c44f89c 100644 --- a/google/data_source_google_compute_subnetwork_test.go +++ b/google/data_source_google_compute_subnetwork_test.go @@ -47,7 +47,6 @@ func testAccDataSourceGoogleSubnetworkCheck(data_source_name string, resource_na "name", "description", "ip_cidr_range", - "network", "private_ip_google_access", "secondary_ip_range", } @@ -63,6 +62,10 @@ func testAccDataSourceGoogleSubnetworkCheck(data_source_name string, resource_na } } + if v1RsNetwork := ConvertSelfLinkToV1(rs_attr["network"]); ds_attr["network"] != v1RsNetwork { + return fmt.Errorf("network is %s; want %s", ds_attr["network"], v1RsNetwork) + } + return nil } }