{"action":"created","comment":{"url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/pulls/comments/190054544","pull_request_review_id":122354888,"id":190054544,"diff_hunk":"@@ -0,0 +1,35 @@\n+import { getNormalizedBindingData, toRpcHttp } from '../src/Converters';\n+import { expect } from 'chai';\n+import * as sinon from 'sinon';\n+import { FunctionRpc as rpc } from '../azure-functions-language-worker-protobuf/src/rpc';\n+import 'mocha';\n+\n+describe('Context', () => {\n+  it('normalizes binding trigger metadata', () => {\n+    var mockRequest: rpc.TypedData$Properties = toRpcHttp({ url: \"https://mock\"});\n+    var triggerDataMock: { [k: string]: rpc.TypedData$Properties } = {\n+        \"Headers\": {\n+            json: JSON.stringify({Connection: 'Keep-Alive'})\n+        },\n+        \"Req\": mockRequest,\n+        \"Sys\": {\n+            json: JSON.stringify({MethodName: 'test-js', UtcNow: '2018', RandGuid: '3212'})","path":"test/ContextTests.ts","position":16,"original_position":16,"commit_id":"2af70e19a3e7c4808d64e0b46752266181fdb4e0","original_commit_id":"2af70e19a3e7c4808d64e0b46752266181fdb4e0","user":{"login":"pragnagopa","id":1874279,"avatar_url":"https://avatars0.githubusercontent.com/u/1874279?v=4","gravatar_id":"","url":"https://api.github.com/users/pragnagopa","html_url":"https://github.com/pragnagopa","followers_url":"https://api.github.com/users/pragnagopa/followers","following_url":"https://api.github.com/users/pragnagopa/following{/other_user}","gists_url":"https://api.github.com/users/pragnagopa/gists{/gist_id}","starred_url":"https://api.github.com/users/pragnagopa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pragnagopa/subscriptions","organizations_url":"https://api.github.com/users/pragnagopa/orgs","repos_url":"https://api.github.com/users/pragnagopa/repos","events_url":"https://api.github.com/users/pragnagopa/events{/privacy}","received_events_url":"https://api.github.com/users/pragnagopa/received_events","type":"User","site_admin":false},"body":"for completeness, add tests for other casing camelCased : 'testCamelCase', lowercased: 'testlowercase' etc","created_at":"2018-05-22T21:11:36Z","updated_at":"2018-05-22T21:11:36Z","html_url":"https://github.com/Azure/azure-functions-nodejs-worker/pull/74#discussion_r190054544","pull_request_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/pulls/74","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/pulls/comments/190054544"},"html":{"href":"https://github.com/Azure/azure-functions-nodejs-worker/pull/74#discussion_r190054544"},"pull_request":{"href":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/pulls/74"}}},"pull_request":{"url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/pulls/74","id":188601434,"html_url":"https://github.com/Azure/azure-functions-nodejs-worker/pull/74","diff_url":"https://github.com/Azure/azure-functions-nodejs-worker/pull/74.diff","patch_url":"https://github.com/Azure/azure-functions-nodejs-worker/pull/74.patch","issue_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/issues/74","number":74,"state":"open","locked":false,"title":"Recursively camelCase binding trigger metadata","user":{"login":"mhoeger","id":8888531,"avatar_url":"https://avatars2.githubusercontent.com/u/8888531?v=4","gravatar_id":"","url":"https://api.github.com/users/mhoeger","html_url":"https://github.com/mhoeger","followers_url":"https://api.github.com/users/mhoeger/followers","following_url":"https://api.github.com/users/mhoeger/following{/other_user}","gists_url":"https://api.github.com/users/mhoeger/gists{/gist_id}","starred_url":"https://api.github.com/users/mhoeger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhoeger/subscriptions","organizations_url":"https://api.github.com/users/mhoeger/orgs","repos_url":"https://api.github.com/users/mhoeger/repos","events_url":"https://api.github.com/users/mhoeger/events{/privacy}","received_events_url":"https://api.github.com/users/mhoeger/received_events","type":"User","site_admin":false},"body":"Resolves #39","created_at":"2018-05-17T01:26:07Z","updated_at":"2018-05-22T21:11:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"66bb23b363b5f2ed96fbfbad76113b76814a84e6","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/pulls/74/commits","review_comments_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/pulls/74/comments","review_comment_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/issues/74/comments","statuses_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/statuses/2af70e19a3e7c4808d64e0b46752266181fdb4e0","head":{"label":"mhoeger:camelBindingData","ref":"camelBindingData","sha":"2af70e19a3e7c4808d64e0b46752266181fdb4e0","user":{"login":"mhoeger","id":8888531,"avatar_url":"https://avatars2.githubusercontent.com/u/8888531?v=4","gravatar_id":"","url":"https://api.github.com/users/mhoeger","html_url":"https://github.com/mhoeger","followers_url":"https://api.github.com/users/mhoeger/followers","following_url":"https://api.github.com/users/mhoeger/following{/other_user}","gists_url":"https://api.github.com/users/mhoeger/gists{/gist_id}","starred_url":"https://api.github.com/users/mhoeger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhoeger/subscriptions","organizations_url":"https://api.github.com/users/mhoeger/orgs","repos_url":"https://api.github.com/users/mhoeger/repos","events_url":"https://api.github.com/users/mhoeger/events{/privacy}","received_events_url":"https://api.github.com/users/mhoeger/received_events","type":"User","site_admin":false},"repo":{"id":127176557,"name":"azure-functions-nodejs-worker","full_name":"mhoeger/azure-functions-nodejs-worker","owner":{"login":"mhoeger","id":8888531,"avatar_url":"https://avatars2.githubusercontent.com/u/8888531?v=4","gravatar_id":"","url":"https://api.github.com/users/mhoeger","html_url":"https://github.com/mhoeger","followers_url":"https://api.github.com/users/mhoeger/followers","following_url":"https://api.github.com/users/mhoeger/following{/other_user}","gists_url":"https://api.github.com/users/mhoeger/gists{/gist_id}","starred_url":"https://api.github.com/users/mhoeger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhoeger/subscriptions","organizations_url":"https://api.github.com/users/mhoeger/orgs","repos_url":"https://api.github.com/users/mhoeger/repos","events_url":"https://api.github.com/users/mhoeger/events{/privacy}","received_events_url":"https://api.github.com/users/mhoeger/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mhoeger/azure-functions-nodejs-worker","description":"The Node.js worker for the Azure Functions runtime - https://functions.azure.com","fork":true,"url":"https://api.github.com/repos/mhoeger/azure-functions-nodejs-worker","forks_url":"https://api.github.com/repos/mhoeger/azure-functions-nodejs-worker/forks","keys_url":"https://api.github.com/repos/mhoeger/azure-functions-nodejs-worker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mhoeger/azure-functions-nodejs-worker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mhoeger/azure-functions-nodejs-worker/teams","hooks_url":"https://api.github.com/repos/mhoeger/azure-functions-nodejs-worker/hooks","issue_events_url":"https://api.github.com/repos/mhoeger/azure-functions-nodejs-worker/issues/events{/number}","events_url":"https://api.github.com/repos/mhoeger/azure-functions-nodejs-worker/events","assignees_url":"https://api.github.com/repos/mhoeger/azure-functions-nodejs-worker/assignees{/user}","branches_url":"https://api.github.com/repos/mhoeger/azure-functions-nodejs-worker/branches{/branch}","tags_url":"https://api.github.com/repos/mhoeger/azure-functions-nodejs-worker/tags","blobs_url":"https://api.github.com/repos/mhoeger/azure-functions-nodejs-worker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mhoeger/azure-functions-nodejs-worker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mhoeger/azure-functions-nodejs-worker/git/refs{/sha}","trees_url":"https://api.github.com/repos/mhoeger/azure-functions-nodejs-worker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mhoeger/azure-functions-nodejs-worker/statuses/{sha}","languages_url":"https://api.github.com/repos/mhoeger/azure-functions-nodejs-worker/languages","stargazers_url":"https://api.github.com/repos/mhoeger/azure-functions-nodejs-worker/stargazers","contributors_url":"https://api.github.com/repos/mhoeger/azure-functions-nodejs-worker/contributors","subscribers_url":"https://api.github.com/repos/mhoeger/azure-functions-nodejs-worker/subscribers","subscription_url":"https://api.github.com/repos/mhoeger/azure-functions-nodejs-worker/subscription","commits_url":"https://api.github.com/repos/mhoeger/azure-functions-nodejs-worker/commits{/sha}","git_commits_url":"https://api.github.com/repos/mhoeger/azure-functions-nodejs-worker/git/commits{/sha}","comments_url":"https://api.github.com/repos/mhoeger/azure-functions-nodejs-worker/comments{/number}","issue_comment_url":"https://api.github.com/repos/mhoeger/azure-functions-nodejs-worker/issues/comments{/number}","contents_url":"https://api.github.com/repos/mhoeger/azure-functions-nodejs-worker/contents/{+path}","compare_url":"https://api.github.com/repos/mhoeger/azure-functions-nodejs-worker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mhoeger/azure-functions-nodejs-worker/merges","archive_url":"https://api.github.com/repos/mhoeger/azure-functions-nodejs-worker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mhoeger/azure-functions-nodejs-worker/downloads","issues_url":"https://api.github.com/repos/mhoeger/azure-functions-nodejs-worker/issues{/number}","pulls_url":"https://api.github.com/repos/mhoeger/azure-functions-nodejs-worker/pulls{/number}","milestones_url":"https://api.github.com/repos/mhoeger/azure-functions-nodejs-worker/milestones{/number}","notifications_url":"https://api.github.com/repos/mhoeger/azure-functions-nodejs-worker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mhoeger/azure-functions-nodejs-worker/labels{/name}","releases_url":"https://api.github.com/repos/mhoeger/azure-functions-nodejs-worker/releases{/id}","deployments_url":"https://api.github.com/repos/mhoeger/azure-functions-nodejs-worker/deployments","created_at":"2018-03-28T17:41:09Z","updated_at":"2018-05-10T23:35:56Z","pushed_at":"2018-05-19T01:28:42Z","git_url":"git://github.com/mhoeger/azure-functions-nodejs-worker.git","ssh_url":"git@github.com:mhoeger/azure-functions-nodejs-worker.git","clone_url":"https://github.com/mhoeger/azure-functions-nodejs-worker.git","svn_url":"https://github.com/mhoeger/azure-functions-nodejs-worker","homepage":null,"size":145,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"Azure:dev","ref":"dev","sha":"a28702952fcef2a3474565168c649da53647b26c","user":{"login":"Azure","id":6844498,"avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"repo":{"id":87962102,"name":"azure-functions-nodejs-worker","full_name":"Azure/azure-functions-nodejs-worker","owner":{"login":"Azure","id":6844498,"avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Azure/azure-functions-nodejs-worker","description":"The Node.js worker for the Azure Functions runtime - https://functions.azure.com","fork":false,"url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker","forks_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/forks","keys_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/teams","hooks_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/hooks","issue_events_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/events","assignees_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/tags","blobs_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/languages","stargazers_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/stargazers","contributors_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/contributors","subscribers_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/subscribers","subscription_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/subscription","commits_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/merges","archive_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/downloads","issues_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/labels{/name}","releases_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/deployments","created_at":"2017-04-11T17:36:24Z","updated_at":"2018-05-22T20:58:23Z","pushed_at":"2018-05-19T01:28:44Z","git_url":"git://github.com/Azure/azure-functions-nodejs-worker.git","ssh_url":"git@github.com:Azure/azure-functions-nodejs-worker.git","clone_url":"https://github.com/Azure/azure-functions-nodejs-worker.git","svn_url":"https://github.com/Azure/azure-functions-nodejs-worker","homepage":null,"size":130,"stargazers_count":5,"watchers_count":5,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":12,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":8,"open_issues":12,"watchers":5,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/pulls/74"},"html":{"href":"https://github.com/Azure/azure-functions-nodejs-worker/pull/74"},"issue":{"href":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/issues/74"},"comments":{"href":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/issues/74/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/pulls/74/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/pulls/74/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/azure-functions-nodejs-worker/statuses/2af70e19a3e7c4808d64e0b46752266181fdb4e0"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"pragnagopa"}}