Skip to content

Commit 1d58a67

Browse files
committed
fix vpc name format
1 parent f08846e commit 1d58a67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

google/cloud/storage/tests/bucket_integration_test.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,10 +574,10 @@ TEST_F(BucketIntegrationTest, PatchIpFilter) {
574574
ip_filter.allow_cross_org_vpcs = true;
575575
ip_filter.public_network_source =
576576
BucketIpFilterPublicNetworkSource{{"1.2.3.4/32"}};
577+
auto network_name = "projects/" + project_id_ + "/global/networks/default";
577578
ip_filter.vpc_network_sources =
578579
absl::make_optional<std::vector<BucketIpFilterVpcNetworkSource>>(
579-
{BucketIpFilterVpcNetworkSource{"projects/p/global/networks/n",
580-
{"5.6.7.8/32"}}});
580+
{BucketIpFilterVpcNetworkSource{network_name, {"5.6.7.8/32"}}});
581581

582582
auto patched = client.PatchBucket(
583583
bucket_name, BucketMetadataPatchBuilder().SetIpFilter(ip_filter));

0 commit comments

Comments
 (0)