Skip to content

test(generator): rename test service and proto to MediaService and add GetMediaMetadata method - #14440

Merged
whowes merged 1 commit into
mainfrom
whowes/test-media-service
Sep 22, 2026
Merged

whowes merged 1 commit into
mainfrom
whowes/test-media-service

Conversation

@whowes

@whowes whowes commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Previously we'd checked in a copy of resumable_upload.proto from showcase to be used in generator unit tests for resumable uploads. This was confusing because

  • there's only one method listed in the proto, which revealed some generator edge cases e.g. for test class generation
  • the name triggered awkward class names like "HttpJsonResumableUploadServiceResumableUploadStub"

This PR changes the test proto to media.proto, the service to MediaService, and adds a GetMediaMetadata method, with the intention to make diffs/testing for future changes more understandable.

@whowes
whowes added this pull request to stack #14390 September 18, 2026 23:29

@gemini-code-assist gemini-code-assist Bot left a comment

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.

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.

@whowes
whowes removed this pull request from stack #14390 September 18, 2026 23:50
@whowes
whowes added this pull request to stack #14441 September 18, 2026 23:52
@whowes
whowes removed this pull request from stack #14441 September 18, 2026 23:53
@whowes
whowes force-pushed the whowes/test-media-service branch from 8c67083 to e4b264e Compare September 19, 2026 00:08
@whowes
whowes added this pull request to stack #14442 September 19, 2026 00:11
@whowes
whowes force-pushed the whowes/test-media-service branch from e4b264e to 06bfff4 Compare September 19, 2026 00:38
@whowes
whowes force-pushed the whowes/test-media-service branch 2 times, most recently from d981097 to 3bcbc5b Compare September 19, 2026 01:13
@whowes
whowes force-pushed the whowes/test-media-service branch from 3bcbc5b to 9845c53 Compare September 21, 2026 15:20
@whowes
whowes force-pushed the whowes/test-media-service branch from 9845c53 to f32cdbd Compare September 21, 2026 17:17
@whowes
whowes force-pushed the whowes/test-media-service branch from f32cdbd to 43a6545 Compare September 21, 2026 17:33
static final ImmutableList<Pattern> RESUMABLE_UPLOAD_ALLOWLIST_PATTERNS =
ImmutableList.of(
Pattern.compile("^google\\.showcase\\.v1beta1\\.ResumableUploadService\\.UploadMedia$"),
Pattern.compile("^google\\.showcase\\.v1beta1\\.MediaService\\.UploadMedia$"),

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.

nit: Add a comment that this is for unit tests only.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

@whowes
whowes force-pushed the whowes/test-media-service branch from 43a6545 to 6de573b Compare September 22, 2026 00:33
@whowes
whowes force-pushed the whowes/test-media-service branch from 6de573b to f402272 Compare September 22, 2026 02:18
@whowes
whowes marked this pull request as ready for review September 22, 2026 02:19
@whowes
whowes requested review from a team as code owners September 22, 2026 02:19
@snippet-bot

snippet-bot Bot commented Sep 22, 2026

Copy link
Copy Markdown

Here is the summary of changes.

You are about to add 6 region tags.
You are about to delete 3 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

Base automatically changed from whowes/showcase-resumable-upload-it to main September 22, 2026 02:22
@whowes
whowes force-pushed the whowes/test-media-service branch from f402272 to 7fc2056 Compare September 22, 2026 02:22
@sonarqubecloud

Copy link
Copy Markdown

@sonarqubecloud

Copy link
Copy Markdown

@whowes
whowes merged commit 27fd252 into main Sep 22, 2026
491 of 497 checks passed
@whowes
whowes deleted the whowes/test-media-service branch September 22, 2026 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants