-
Notifications
You must be signed in to change notification settings - Fork 38
adds CloudEvent helloworld to examples, README, and tests #55
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM once changes are addressed, and we have a future plan to re-enable version pinning (assuming that this PR disables it.)
README.md
Outdated
The Functions Framework can unmarshall incoming [CloudEvents][cloud-events] | ||
payloads to a `cloudevent` object. This will be passed as arguments to your | ||
function when it receives a request. Note that your function must use the | ||
cloudevent-style function signature: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: cloudevent
?
@@ -1,5 +1,5 @@ | |||
{ | |||
"require": { | |||
"google/cloud-functions-framework": "^0.3" | |||
"google/cloud-functions-framework": "dev-master as 0.6.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this downloading the latest code available directly from GitHub? (i.e. disabling version pinning)
(This is a beta version, so I'm willing to allow it for now - but we definitely shouldn't do this once we release publicly.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's only for testing. I will change it back once a version is tagged
@@ -15,10 +15,30 @@ | |||
* limitations under the License. | |||
*/ | |||
|
|||
/** | |||
* To use this, set the following environment variables: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: can these also be specified as command-line args?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is no CLI for php at the moment
} | ||
|
||
public static function tearDownAfterClass(): void | ||
{ | ||
// If a test failed before it could delete its container |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: would it be better to have a single "clean up test resources" comment?
(Or maybe even delete these comments outright, if you're of the "code should be self-documenting" philosophy.)
No description provided.