{"action":"created","comment":{"url":"https://api.github.com/repos/tmobile/jazz/pulls/comments/194209592","pull_request_review_id":127347624,"id":194209592,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NDIwOTU5Mg==","diff_hunk":"@@ -0,0 +1,107 @@\n+// =========================================================================\r\n+// Copyright ©  2017 T-Mobile USA, Inc.\r\n+//\r\n+// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n+// you may not use this file except in compliance with the License.\r\n+// You may obtain a copy of the License at\r\n+//\r\n+//    http://www.apache.org/licenses/LICENSE-2.0\r\n+//\r\n+// Unless required by applicable law or agreed to in writing, software\r\n+// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n+// See the License for the specific language governing permissions and\r\n+// limitations under the License.\r\n+// =========================================================================\r\n+\r\n+/**\r\n+Nodejs Template Project\r\n+@author:\r\n+@version: 1.0\r\n+ **/\r\n+'use strict';\r\n+const errorHandlerModule = require(\"./components/error-handler.js\"); //Import the error codes module.\r\n+const responseObj = require(\"./components/response.js\"); //Import the response module.\r\n+const configObj = require(\"./components/config.js\"); //Import the environment data.\r\n+const logger = require(\"./components/logger.js\"); //Import the logging module.\r\n+const validateARN = require(\"./components/validate-arn.js\");\r\n+const validateJSON = require(\"./components/validate-json.js\");\r\n+const aws = require('aws-sdk');\r\n+var handler = (event, context, cb) => {\r\n+\r\n+  //Initializations\r\n+  var errorHandler = errorHandlerModule();\r\n+  var config = configObj(event);\r\n+  logger.init(event, context);\r\n+  var AWS_REGION = config.AWS_REGION;\r\n+  try {\r\n+    var testResponse = {\r\n+      \"StatusCode\": 200,\r\n+      \"execStatus\": 0\r\n+    };\r\n+    if (event && event.method && event.method === 'POST') {\r\n+      if (!event.body) {\r\n+        return cb(JSON.stringify(errorHandler.throwInputValidationError(\"Event Body not Defined\")));\r\n+      } else if (!event.body.functionARN) {\r\n+        return cb(JSON.stringify(errorHandler.throwInputValidationError(\"No function ARN provided\")));\r\n+      } else if (!validateARN(event.body.functionARN)) {\r\n+        return cb(JSON.stringify(errorHandler.throwInputValidationError(\"Function ARN is invalid\")));\r\n+      } else if (!event.body.inputJSON) {\r\n+        return cb(JSON.stringify(errorHandler.throwInputValidationError(\"Input for function is not defined\")));\r\n+      } else {\r\n+        var functionARN = event.body.functionARN;\r\n+\r\n+        if (event.body.inputJSON && !validateJSON(event.body.inputJSON)) {\r","path":"jazz_test-lambda/index.js","position":54,"original_position":54,"commit_id":"d0a0b4aaca5a01fdd0f8f022b527ba7585a5dcac","original_commit_id":"d0a0b4aaca5a01fdd0f8f022b527ba7585a5dcac","user":{"login":"devsatishm","id":10748272,"node_id":"MDQ6VXNlcjEwNzQ4Mjcy","avatar_url":"https://avatars2.githubusercontent.com/u/10748272?v=4","gravatar_id":"","url":"https://api.github.com/users/devsatishm","html_url":"https://github.com/devsatishm","followers_url":"https://api.github.com/users/devsatishm/followers","following_url":"https://api.github.com/users/devsatishm/following{/other_user}","gists_url":"https://api.github.com/users/devsatishm/gists{/gist_id}","starred_url":"https://api.github.com/users/devsatishm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devsatishm/subscriptions","organizations_url":"https://api.github.com/users/devsatishm/orgs","repos_url":"https://api.github.com/users/devsatishm/repos","events_url":"https://api.github.com/users/devsatishm/events{/privacy}","received_events_url":"https://api.github.com/users/devsatishm/received_events","type":"User","site_admin":false},"body":"not required as per the new swagger change requested (inputJSON comes in as JSON)","created_at":"2018-06-09T01:15:18Z","updated_at":"2018-06-09T01:15:18Z","html_url":"https://github.com/tmobile/jazz/pull/321#discussion_r194209592","pull_request_url":"https://api.github.com/repos/tmobile/jazz/pulls/321","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/tmobile/jazz/pulls/comments/194209592"},"html":{"href":"https://github.com/tmobile/jazz/pull/321#discussion_r194209592"},"pull_request":{"href":"https://api.github.com/repos/tmobile/jazz/pulls/321"}}},"pull_request":{"url":"https://api.github.com/repos/tmobile/jazz/pulls/321","id":192053266,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyMDUzMjY2","html_url":"https://github.com/tmobile/jazz/pull/321","diff_url":"https://github.com/tmobile/jazz/pull/321.diff","patch_url":"https://github.com/tmobile/jazz/pull/321.patch","issue_url":"https://api.github.com/repos/tmobile/jazz/issues/321","number":321,"state":"open","locked":false,"title":"[WIP] Test lambda api","user":{"login":"hks93","id":38750028,"node_id":"MDQ6VXNlcjM4NzUwMDI4","avatar_url":"https://avatars1.githubusercontent.com/u/38750028?v=4","gravatar_id":"","url":"https://api.github.com/users/hks93","html_url":"https://github.com/hks93","followers_url":"https://api.github.com/users/hks93/followers","following_url":"https://api.github.com/users/hks93/following{/other_user}","gists_url":"https://api.github.com/users/hks93/gists{/gist_id}","starred_url":"https://api.github.com/users/hks93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hks93/subscriptions","organizations_url":"https://api.github.com/users/hks93/orgs","repos_url":"https://api.github.com/users/hks93/repos","events_url":"https://api.github.com/users/hks93/events{/privacy}","received_events_url":"https://api.github.com/users/hks93/received_events","type":"User","site_admin":false},"body":"The code is not sanitised and work in progress ","created_at":"2018-06-01T14:35:45Z","updated_at":"2018-06-09T01:15:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2162261c06d6c163865abbda0b9fb86dad425de1","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/tmobile/jazz/pulls/321/commits","review_comments_url":"https://api.github.com/repos/tmobile/jazz/pulls/321/comments","review_comment_url":"https://api.github.com/repos/tmobile/jazz/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tmobile/jazz/issues/321/comments","statuses_url":"https://api.github.com/repos/tmobile/jazz/statuses/d0a0b4aaca5a01fdd0f8f022b527ba7585a5dcac","head":{"label":"hks93:test-lambda-api","ref":"test-lambda-api","sha":"d0a0b4aaca5a01fdd0f8f022b527ba7585a5dcac","user":{"login":"hks93","id":38750028,"node_id":"MDQ6VXNlcjM4NzUwMDI4","avatar_url":"https://avatars1.githubusercontent.com/u/38750028?v=4","gravatar_id":"","url":"https://api.github.com/users/hks93","html_url":"https://github.com/hks93","followers_url":"https://api.github.com/users/hks93/followers","following_url":"https://api.github.com/users/hks93/following{/other_user}","gists_url":"https://api.github.com/users/hks93/gists{/gist_id}","starred_url":"https://api.github.com/users/hks93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hks93/subscriptions","organizations_url":"https://api.github.com/users/hks93/orgs","repos_url":"https://api.github.com/users/hks93/repos","events_url":"https://api.github.com/users/hks93/events{/privacy}","received_events_url":"https://api.github.com/users/hks93/received_events","type":"User","site_admin":false},"repo":{"id":131126076,"node_id":"MDEwOlJlcG9zaXRvcnkxMzExMjYwNzY=","name":"jazz","full_name":"hks93/jazz","owner":{"login":"hks93","id":38750028,"node_id":"MDQ6VXNlcjM4NzUwMDI4","avatar_url":"https://avatars1.githubusercontent.com/u/38750028?v=4","gravatar_id":"","url":"https://api.github.com/users/hks93","html_url":"https://github.com/hks93","followers_url":"https://api.github.com/users/hks93/followers","following_url":"https://api.github.com/users/hks93/following{/other_user}","gists_url":"https://api.github.com/users/hks93/gists{/gist_id}","starred_url":"https://api.github.com/users/hks93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hks93/subscriptions","organizations_url":"https://api.github.com/users/hks93/orgs","repos_url":"https://api.github.com/users/hks93/repos","events_url":"https://api.github.com/users/hks93/events{/privacy}","received_events_url":"https://api.github.com/users/hks93/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hks93/jazz","description":"Jazz Serverless Development Platform","fork":true,"url":"https://api.github.com/repos/hks93/jazz","forks_url":"https://api.github.com/repos/hks93/jazz/forks","keys_url":"https://api.github.com/repos/hks93/jazz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hks93/jazz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hks93/jazz/teams","hooks_url":"https://api.github.com/repos/hks93/jazz/hooks","issue_events_url":"https://api.github.com/repos/hks93/jazz/issues/events{/number}","events_url":"https://api.github.com/repos/hks93/jazz/events","assignees_url":"https://api.github.com/repos/hks93/jazz/assignees{/user}","branches_url":"https://api.github.com/repos/hks93/jazz/branches{/branch}","tags_url":"https://api.github.com/repos/hks93/jazz/tags","blobs_url":"https://api.github.com/repos/hks93/jazz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hks93/jazz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hks93/jazz/git/refs{/sha}","trees_url":"https://api.github.com/repos/hks93/jazz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hks93/jazz/statuses/{sha}","languages_url":"https://api.github.com/repos/hks93/jazz/languages","stargazers_url":"https://api.github.com/repos/hks93/jazz/stargazers","contributors_url":"https://api.github.com/repos/hks93/jazz/contributors","subscribers_url":"https://api.github.com/repos/hks93/jazz/subscribers","subscription_url":"https://api.github.com/repos/hks93/jazz/subscription","commits_url":"https://api.github.com/repos/hks93/jazz/commits{/sha}","git_commits_url":"https://api.github.com/repos/hks93/jazz/git/commits{/sha}","comments_url":"https://api.github.com/repos/hks93/jazz/comments{/number}","issue_comment_url":"https://api.github.com/repos/hks93/jazz/issues/comments{/number}","contents_url":"https://api.github.com/repos/hks93/jazz/contents/{+path}","compare_url":"https://api.github.com/repos/hks93/jazz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hks93/jazz/merges","archive_url":"https://api.github.com/repos/hks93/jazz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hks93/jazz/downloads","issues_url":"https://api.github.com/repos/hks93/jazz/issues{/number}","pulls_url":"https://api.github.com/repos/hks93/jazz/pulls{/number}","milestones_url":"https://api.github.com/repos/hks93/jazz/milestones{/number}","notifications_url":"https://api.github.com/repos/hks93/jazz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hks93/jazz/labels{/name}","releases_url":"https://api.github.com/repos/hks93/jazz/releases{/id}","deployments_url":"https://api.github.com/repos/hks93/jazz/deployments","created_at":"2018-04-26T08:39:45Z","updated_at":"2018-04-26T08:39:50Z","pushed_at":"2018-06-08T15:44:35Z","git_url":"git://github.com/hks93/jazz.git","ssh_url":"git@github.com:hks93/jazz.git","clone_url":"https://github.com/hks93/jazz.git","svn_url":"https://github.com/hks93/jazz","homepage":"","size":166944,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"tmobile:v1.5.2","ref":"v1.5.2","sha":"c9097035cb78758ff140c68a35f1f480f8c72873","user":{"login":"tmobile","id":483040,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ4MzA0MA==","avatar_url":"https://avatars0.githubusercontent.com/u/483040?v=4","gravatar_id":"","url":"https://api.github.com/users/tmobile","html_url":"https://github.com/tmobile","followers_url":"https://api.github.com/users/tmobile/followers","following_url":"https://api.github.com/users/tmobile/following{/other_user}","gists_url":"https://api.github.com/users/tmobile/gists{/gist_id}","starred_url":"https://api.github.com/users/tmobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmobile/subscriptions","organizations_url":"https://api.github.com/users/tmobile/orgs","repos_url":"https://api.github.com/users/tmobile/repos","events_url":"https://api.github.com/users/tmobile/events{/privacy}","received_events_url":"https://api.github.com/users/tmobile/received_events","type":"Organization","site_admin":false},"repo":{"id":95246216,"node_id":"MDEwOlJlcG9zaXRvcnk5NTI0NjIxNg==","name":"jazz","full_name":"tmobile/jazz","owner":{"login":"tmobile","id":483040,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ4MzA0MA==","avatar_url":"https://avatars0.githubusercontent.com/u/483040?v=4","gravatar_id":"","url":"https://api.github.com/users/tmobile","html_url":"https://github.com/tmobile","followers_url":"https://api.github.com/users/tmobile/followers","following_url":"https://api.github.com/users/tmobile/following{/other_user}","gists_url":"https://api.github.com/users/tmobile/gists{/gist_id}","starred_url":"https://api.github.com/users/tmobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmobile/subscriptions","organizations_url":"https://api.github.com/users/tmobile/orgs","repos_url":"https://api.github.com/users/tmobile/repos","events_url":"https://api.github.com/users/tmobile/events{/privacy}","received_events_url":"https://api.github.com/users/tmobile/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tmobile/jazz","description":"Jazz Serverless Development Platform https://opensource.t-mobile.com/blog/posts/introducing-jazz/","fork":false,"url":"https://api.github.com/repos/tmobile/jazz","forks_url":"https://api.github.com/repos/tmobile/jazz/forks","keys_url":"https://api.github.com/repos/tmobile/jazz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tmobile/jazz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tmobile/jazz/teams","hooks_url":"https://api.github.com/repos/tmobile/jazz/hooks","issue_events_url":"https://api.github.com/repos/tmobile/jazz/issues/events{/number}","events_url":"https://api.github.com/repos/tmobile/jazz/events","assignees_url":"https://api.github.com/repos/tmobile/jazz/assignees{/user}","branches_url":"https://api.github.com/repos/tmobile/jazz/branches{/branch}","tags_url":"https://api.github.com/repos/tmobile/jazz/tags","blobs_url":"https://api.github.com/repos/tmobile/jazz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tmobile/jazz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tmobile/jazz/git/refs{/sha}","trees_url":"https://api.github.com/repos/tmobile/jazz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tmobile/jazz/statuses/{sha}","languages_url":"https://api.github.com/repos/tmobile/jazz/languages","stargazers_url":"https://api.github.com/repos/tmobile/jazz/stargazers","contributors_url":"https://api.github.com/repos/tmobile/jazz/contributors","subscribers_url":"https://api.github.com/repos/tmobile/jazz/subscribers","subscription_url":"https://api.github.com/repos/tmobile/jazz/subscription","commits_url":"https://api.github.com/repos/tmobile/jazz/commits{/sha}","git_commits_url":"https://api.github.com/repos/tmobile/jazz/git/commits{/sha}","comments_url":"https://api.github.com/repos/tmobile/jazz/comments{/number}","issue_comment_url":"https://api.github.com/repos/tmobile/jazz/issues/comments{/number}","contents_url":"https://api.github.com/repos/tmobile/jazz/contents/{+path}","compare_url":"https://api.github.com/repos/tmobile/jazz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tmobile/jazz/merges","archive_url":"https://api.github.com/repos/tmobile/jazz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tmobile/jazz/downloads","issues_url":"https://api.github.com/repos/tmobile/jazz/issues{/number}","pulls_url":"https://api.github.com/repos/tmobile/jazz/pulls{/number}","milestones_url":"https://api.github.com/repos/tmobile/jazz/milestones{/number}","notifications_url":"https://api.github.com/repos/tmobile/jazz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tmobile/jazz/labels{/name}","releases_url":"https://api.github.com/repos/tmobile/jazz/releases{/id}","deployments_url":"https://api.github.com/repos/tmobile/jazz/deployments","created_at":"2017-06-23T18:31:26Z","updated_at":"2018-06-07T17:02:08Z","pushed_at":"2018-06-08T23:51:33Z","git_url":"git://github.com/tmobile/jazz.git","ssh_url":"git@github.com:tmobile/jazz.git","clone_url":"https://github.com/tmobile/jazz.git","svn_url":"https://github.com/tmobile/jazz","homepage":"","size":166941,"stargazers_count":95,"watchers_count":95,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":43,"mirror_url":null,"archived":false,"open_issues_count":24,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":43,"open_issues":24,"watchers":95,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tmobile/jazz/pulls/321"},"html":{"href":"https://github.com/tmobile/jazz/pull/321"},"issue":{"href":"https://api.github.com/repos/tmobile/jazz/issues/321"},"comments":{"href":"https://api.github.com/repos/tmobile/jazz/issues/321/comments"},"review_comments":{"href":"https://api.github.com/repos/tmobile/jazz/pulls/321/comments"},"review_comment":{"href":"https://api.github.com/repos/tmobile/jazz/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tmobile/jazz/pulls/321/commits"},"statuses":{"href":"https://api.github.com/repos/tmobile/jazz/statuses/d0a0b4aaca5a01fdd0f8f022b527ba7585a5dcac"}},"author_association":"NONE"}}
{"actor":{"display_login":"devsatishm"}}