Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

@RunWith(StorageITRunner.class)
@CrossRun(
backends = {Backend.TEST_BENCH},
backends = {Backend.TEST_BENCH, Backend.PROD},
transports = Transport.GRPC)
@Parameterized(UploadConfigParameters.class)
public final class ITAppendableUploadTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,10 @@ static BackendResources of(
protectedBucketNames.add(bucketName);
return new BucketInfoShim(
BucketInfo.newBuilder(bucketName)
.setLocation(zone.get().get().getRegion())
.setLocation("us-central1")
.setCustomPlacementConfig(
CustomPlacementConfig.newBuilder()
.setDataLocations(ImmutableList.of(zone.get().get().getZone()))
.setDataLocations(ImmutableList.of("us-central1-c"))
Comment on lines +262 to +265

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Hardcoding the region (us-central1) and zone (us-central1-c) limits the portability of the integration tests. It is highly recommended to dynamically resolve these values using the configured zone/region from the runner context to ensure tests can run seamlessly across different environments or projects.

Suggested change
.setLocation("us-central1")
.setCustomPlacementConfig(
CustomPlacementConfig.newBuilder()
.setDataLocations(ImmutableList.of(zone.get().get().getZone()))
.setDataLocations(ImmutableList.of("us-central1-c"))
.setLocation(zone.get().get().getRegion())
.setCustomPlacementConfig(
CustomPlacementConfig.newBuilder()
.setDataLocations(ImmutableList.of(zone.get().get().getZone()))

.build())
.setStorageClass(StorageClass.valueOf("RAPID"))
.setHierarchicalNamespace(
Expand Down
Loading