Ignore beta vs v1 network diff in subnetwork datasource test (#849)

This commit is contained in:
Vincent Roseberry 2017-12-19 13:08:14 -08:00 committed by GitHub
parent bc03e98998
commit 2e9933be44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}
}