Skip to content

Commit

Permalink
Fix x-goog-request-params bucket prefix (#1015) (#1016)
Browse files Browse the repository at this point in the history
  • Loading branch information
singhravidutt committed Jun 23, 2023
1 parent f132b96 commit fbd5eb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ protected StorageStub newAsyncStubInternal() {

private static Metadata getRequestHeaderMetadata(String bucketName) {
Metadata metadata = new Metadata();
metadata.put(GOOG_REQUEST_PARAMS, String.format("bucket=%s", bucketName));
metadata.put(GOOG_REQUEST_PARAMS, String.format("bucket=projects/_/buckets/%s", bucketName));
return metadata;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ void verifyAllRequestsHasGoogRequestParamsHeader(String bucket, int expectedCall
assertEquals(expectedCallCount, allMeta.size());
for (Metadata metadata : allMeta) {
assertEquals(
String.format("bucket=%s", bucket),
String.format("bucket=projects/_/buckets/%s", bucket),
metadata.get(StorageStubProvider.GOOG_REQUEST_PARAMS));
}
}
Expand Down

0 comments on commit fbd5eb8

Please sign in to comment.