test(generator): rename test service and proto to MediaService and add GetMediaMetadata method - #14440
Conversation
There was a problem hiding this comment.
Code Review
This pull request renames the showcase service 'ResumableUploadService' to 'MediaService' and introduces a new non-resumable RPC method 'GetMediaMetadata' to it. It updates the parser allowlist, test loaders, and all corresponding auto-generated golden files (including stubs, clients, settings, and samples) to reflect these changes. I have no additional feedback to provide as there are no review comments.
8c67083 to
e4b264e
Compare
e4b264e to
06bfff4
Compare
d981097 to
3bcbc5b
Compare
3bcbc5b to
9845c53
Compare
9845c53 to
f32cdbd
Compare
f32cdbd to
43a6545
Compare
| static final ImmutableList<Pattern> RESUMABLE_UPLOAD_ALLOWLIST_PATTERNS = | ||
| ImmutableList.of( | ||
| Pattern.compile("^google\\.showcase\\.v1beta1\\.ResumableUploadService\\.UploadMedia$"), | ||
| Pattern.compile("^google\\.showcase\\.v1beta1\\.MediaService\\.UploadMedia$"), |
There was a problem hiding this comment.
nit: Add a comment that this is for unit tests only.
43a6545 to
6de573b
Compare
6de573b to
f402272
Compare
…d GetMediaMetadata method
f402272 to
7fc2056
Compare
|
|



Previously we'd checked in a copy of
resumable_upload.protofrom showcase to be used in generator unit tests for resumable uploads. This was confusing becauseThis PR changes the test proto to
media.proto, the service toMediaService, and adds aGetMediaMetadatamethod, with the intention to make diffs/testing for future changes more understandable.