Skip to content

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