You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(cloudrun): refactor to sample 'cloudrun_service_to_service_receive' and its test (#13292)
* fix(cloudrun): update dependencies to latest versions
* fix(cloudrun): delete noxfile_config.py as it was outdated for Python 3.8 and is not required anymore
* fix(cloudrun): refactor sample and test to comply with current Style Guide.
- Apply fixes for Style Guide
- Add type hints
- Rename variables to be consistent with their values
- Add HTTP error codes constants to avoid managing 'magic numbers'
- Rewrite comments for accuracy
* fix(cloudrun): migrate region tag step 1 - add region with prefix auth as this sample is not specific to Cloud Run
* fix(cloudrun): add comment suggested by gemini-code-assist
* fix(cloudrun): add missing new line
* fix(cloudrun): add test for anonymous request, and rename key function and region tag
* fix(cloudrun): add sample to detect an invalid token
* fix(cloudrun): add missing new line
* fix(cloudrun): apply feedback from PR Review by glasnt
PR Review #13292 (review)
- Replace HTTP status codes with IntEnum from http.HTTPStatus
- Replace hard coded token with a fixture for a fake token
- Remove duplicated code for the client, and moving it to a test fixture
Also
- Add HTTP codes to the app.py `/` endpoint
- Replace 'UTF-8' with 'utf-8' to follow the official documentation
* fix(cloudrun): apply feedback from PR Review
#13292 (comment)
0 commit comments