Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: convert storage Pub/Sub events #273

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 19, 2021
Merged

feat: convert storage Pub/Sub events #273

merged 3 commits into from
Feb 19, 2021

Conversation

coryan
Copy link
Contributor

@coryan coryan commented Feb 18, 2021

At the moment there is no way to deliver storage notifications in
CloudEvent format for a function deployed in Cloud Run. This change adds
a shim to parse Pub/Sub messages created by storage notifications as if
they were storage events.

Part of the work for #100

@codecov
Copy link

codecov bot commented Feb 18, 2021

Codecov Report

Merging #273 (c300acc) into main (62c4ebc) will increase coverage by 0.69%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #273      +/-   ##
==========================================
+ Coverage   89.49%   90.19%   +0.69%     
==========================================
  Files          80       82       +2     
  Lines        1942     2080     +138     
==========================================
+ Hits         1738     1876     +138     
  Misses        204      204              
Impacted Files Coverage Δ
...cloud/functions/internal/parse_cloud_event_http.cc 100.00% <100.00%> (ø)
.../functions/internal/parse_cloud_event_http_test.cc 99.09% <100.00%> (+0.17%) ⬆️
...cloud/functions/internal/parse_cloud_event_json.cc 100.00% <100.00%> (ø)
.../functions/internal/parse_cloud_event_json_test.cc 100.00% <100.00%> (ø)
...ud/functions/internal/parse_cloud_event_storage.cc 100.00% <100.00%> (ø)
...nctions/internal/parse_cloud_event_storage_test.cc 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 62c4ebc...a825f55. Read the comment docs.

@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Feb 19, 2021
At the moment there is no way to deliver storage notifications in
CloudEvent format for a function deployed in Cloud Run. This change adds
a shim to parse Pub/Sub messages created by storage notifications as if
they were storage events.
@coryan coryan marked this pull request as ready for review February 19, 2021 02:22
@coryan coryan requested a review from a team as a code owner February 19, 2021 02:22
@coryan coryan merged commit d0fe67b into GoogleCloudPlatform:main Feb 19, 2021
@coryan coryan deleted the feat-simulate-storage-cloud-events branch February 19, 2021 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants