-
Notifications
You must be signed in to change notification settings - Fork 961
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
Fix emulator support for cloudevent to better conform to production specification. #5466
Conversation
Current dependencies on/for this PR:
This comment was auto-generated by Graphite. |
c8d8bbb
to
02af491
Compare
de008c4
to
2951641
Compare
⏳ This pull request is set to merge as part of a Graphite merge job |
02af491
to
c2e179f
Compare
2951641
to
88395f3
Compare
c2e179f
to
d0028a7
Compare
59f9fb9
to
e081eec
Compare
d0028a7
to
e1fc3bf
Compare
eae4352
to
ce4f5cc
Compare
28141c2
to
9e79209
Compare
Codecov ReportBase: 56.24% // Head: 56.22% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #5466 +/- ##
==========================================
- Coverage 56.24% 56.22% -0.02%
==========================================
Files 317 317
Lines 21435 21442 +7
Branches 4376 4376
==========================================
Hits 12056 12056
- Misses 8319 8326 +7
Partials 1060 1060
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Fix few bugs in emulator support for cloudevent that was uncovered while testing python functions.
Pubsub emulator sends timestamps with nano-second precision, not mili-second precision as done in Production. Not usually a problem, but the the ISO timestamp parsing function for Python doesn't work with timestamps with nano-second precision.
specversion
attribute of cloudevent should be1.0
not1
Pubsub cloudevent should include snake_cased AND camelCase event attributes.
Also including a small change to improve debugging experience when discovering python functions fail due to user error - e.g. python code includes syntax error.