{"action":"created","comment":{"url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/pulls/comments/93903491","pull_request_review_id":14435060,"id":93903491,"diff_hunk":"@@ -0,0 +1,90 @@\n+require(\"should\");\n+const host = `${process.env.IP}:${process.env.PORT}`;\n+var Request = require(\"supertest\");\n+var ObjectId = require(\"mongodb\").ObjectId;\n+\n+function getUnauthorizedTest(opt) {\n+\n+    var options = opt || {};\n+    var uri = options.uri;\n+\n+    var request = Request(host);\n+\n+    it(`#01. get list without security token - [GET]${uri}`, function(done) {\n+        request\n+            .get(uri)\n+            .set(\"Accept\", \"application/json\")\n+            .expect(401)\n+            .end(function(err, response) {\n+                if (err)\n+                    done(err);\n+                else {\n+                    done();\n+                }\n+            });\n+    });\n+\n+    it(`#02. get data without security token - [GET]${uri}/:id`, function(done) {\n+        request\n+            .get(`${uri}/${new ObjectId()}`)\n+            .set(\"Accept\", \"application/json\")\n+            .expect(401)\n+            .end(function(err, response) {\n+                if (err)\n+                    done(err);\n+                else {\n+                    done();\n+                }\n+            });\n+    });\n+\n+    it(`#03. create data without security token - [GET]${uri}`, function(done) {","path":"test/routes/unauthorized-test-factory.js","position":41,"original_position":41,"commit_id":"6abe9c482dd474884d17256e4a48501ff09b5775","original_commit_id":"6abe9c482dd474884d17256e4a48501ff09b5775","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"'template literal syntax' is only available in ES6 (use 'esversion: 6').","created_at":"2016-12-27T07:32:27Z","updated_at":"2016-12-27T07:32:27Z","html_url":"https://github.com/danliris/dl-purchasing-webapi/pull/20#discussion_r93903491","pull_request_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/danliris/dl-purchasing-webapi/pulls/comments/93903491"},"html":{"href":"https://github.com/danliris/dl-purchasing-webapi/pull/20#discussion_r93903491"},"pull_request":{"href":"https://api.github.com/repos/danliris/dl-purchasing-webapi/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/pulls/20","id":99414375,"html_url":"https://github.com/danliris/dl-purchasing-webapi/pull/20","diff_url":"https://github.com/danliris/dl-purchasing-webapi/pull/20.diff","patch_url":"https://github.com/danliris/dl-purchasing-webapi/pull/20.patch","issue_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/issues/20","number":20,"state":"open","locked":false,"title":"Merge dari Dev ke Master - 27 Dec 2016","user":{"login":"ErickLeander","id":23715007,"avatar_url":"https://avatars.githubusercontent.com/u/23715007?v=3","gravatar_id":"","url":"https://api.github.com/users/ErickLeander","html_url":"https://github.com/ErickLeander","followers_url":"https://api.github.com/users/ErickLeander/followers","following_url":"https://api.github.com/users/ErickLeander/following{/other_user}","gists_url":"https://api.github.com/users/ErickLeander/gists{/gist_id}","starred_url":"https://api.github.com/users/ErickLeander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ErickLeander/subscriptions","organizations_url":"https://api.github.com/users/ErickLeander/orgs","repos_url":"https://api.github.com/users/ErickLeander/repos","events_url":"https://api.github.com/users/ErickLeander/events{/privacy}","received_events_url":"https://api.github.com/users/ErickLeander/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-27T07:32:14Z","updated_at":"2016-12-27T07:32:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9f5d9162dbe619a2f2ec130d7d374b07b1ad42fc","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/pulls/20/commits","review_comments_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/pulls/20/comments","review_comment_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/issues/20/comments","statuses_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/statuses/6abe9c482dd474884d17256e4a48501ff09b5775","head":{"label":"danliris:dev","ref":"dev","sha":"6abe9c482dd474884d17256e4a48501ff09b5775","user":{"login":"danliris","id":20855729,"avatar_url":"https://avatars.githubusercontent.com/u/20855729?v=3","gravatar_id":"","url":"https://api.github.com/users/danliris","html_url":"https://github.com/danliris","followers_url":"https://api.github.com/users/danliris/followers","following_url":"https://api.github.com/users/danliris/following{/other_user}","gists_url":"https://api.github.com/users/danliris/gists{/gist_id}","starred_url":"https://api.github.com/users/danliris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danliris/subscriptions","organizations_url":"https://api.github.com/users/danliris/orgs","repos_url":"https://api.github.com/users/danliris/repos","events_url":"https://api.github.com/users/danliris/events{/privacy}","received_events_url":"https://api.github.com/users/danliris/received_events","type":"User","site_admin":false},"repo":{"id":74013317,"name":"dl-purchasing-webapi","full_name":"danliris/dl-purchasing-webapi","owner":{"login":"danliris","id":20855729,"avatar_url":"https://avatars.githubusercontent.com/u/20855729?v=3","gravatar_id":"","url":"https://api.github.com/users/danliris","html_url":"https://github.com/danliris","followers_url":"https://api.github.com/users/danliris/followers","following_url":"https://api.github.com/users/danliris/following{/other_user}","gists_url":"https://api.github.com/users/danliris/gists{/gist_id}","starred_url":"https://api.github.com/users/danliris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danliris/subscriptions","organizations_url":"https://api.github.com/users/danliris/orgs","repos_url":"https://api.github.com/users/danliris/repos","events_url":"https://api.github.com/users/danliris/events{/privacy}","received_events_url":"https://api.github.com/users/danliris/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danliris/dl-purchasing-webapi","description":"dl-purchasing-webapi","fork":false,"url":"https://api.github.com/repos/danliris/dl-purchasing-webapi","forks_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/forks","keys_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/teams","hooks_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/hooks","issue_events_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/issues/events{/number}","events_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/events","assignees_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/assignees{/user}","branches_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/branches{/branch}","tags_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/tags","blobs_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/statuses/{sha}","languages_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/languages","stargazers_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/stargazers","contributors_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/contributors","subscribers_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/subscribers","subscription_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/subscription","commits_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/issues/comments{/number}","contents_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/contents/{+path}","compare_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/merges","archive_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/downloads","issues_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/issues{/number}","pulls_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/pulls{/number}","milestones_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/milestones{/number}","notifications_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/labels{/name}","releases_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/releases{/id}","deployments_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/deployments","created_at":"2016-11-17T09:50:52Z","updated_at":"2016-11-17T09:50:52Z","pushed_at":"2016-12-27T07:32:15Z","git_url":"git://github.com/danliris/dl-purchasing-webapi.git","ssh_url":"git@github.com:danliris/dl-purchasing-webapi.git","clone_url":"https://github.com/danliris/dl-purchasing-webapi.git","svn_url":"https://github.com/danliris/dl-purchasing-webapi","homepage":null,"size":292,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"danliris:master","ref":"master","sha":"c4645f50da492a2a759bbf74b0bb0ad2c9564ea8","user":{"login":"danliris","id":20855729,"avatar_url":"https://avatars.githubusercontent.com/u/20855729?v=3","gravatar_id":"","url":"https://api.github.com/users/danliris","html_url":"https://github.com/danliris","followers_url":"https://api.github.com/users/danliris/followers","following_url":"https://api.github.com/users/danliris/following{/other_user}","gists_url":"https://api.github.com/users/danliris/gists{/gist_id}","starred_url":"https://api.github.com/users/danliris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danliris/subscriptions","organizations_url":"https://api.github.com/users/danliris/orgs","repos_url":"https://api.github.com/users/danliris/repos","events_url":"https://api.github.com/users/danliris/events{/privacy}","received_events_url":"https://api.github.com/users/danliris/received_events","type":"User","site_admin":false},"repo":{"id":74013317,"name":"dl-purchasing-webapi","full_name":"danliris/dl-purchasing-webapi","owner":{"login":"danliris","id":20855729,"avatar_url":"https://avatars.githubusercontent.com/u/20855729?v=3","gravatar_id":"","url":"https://api.github.com/users/danliris","html_url":"https://github.com/danliris","followers_url":"https://api.github.com/users/danliris/followers","following_url":"https://api.github.com/users/danliris/following{/other_user}","gists_url":"https://api.github.com/users/danliris/gists{/gist_id}","starred_url":"https://api.github.com/users/danliris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danliris/subscriptions","organizations_url":"https://api.github.com/users/danliris/orgs","repos_url":"https://api.github.com/users/danliris/repos","events_url":"https://api.github.com/users/danliris/events{/privacy}","received_events_url":"https://api.github.com/users/danliris/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danliris/dl-purchasing-webapi","description":"dl-purchasing-webapi","fork":false,"url":"https://api.github.com/repos/danliris/dl-purchasing-webapi","forks_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/forks","keys_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/teams","hooks_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/hooks","issue_events_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/issues/events{/number}","events_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/events","assignees_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/assignees{/user}","branches_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/branches{/branch}","tags_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/tags","blobs_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/statuses/{sha}","languages_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/languages","stargazers_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/stargazers","contributors_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/contributors","subscribers_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/subscribers","subscription_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/subscription","commits_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/issues/comments{/number}","contents_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/contents/{+path}","compare_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/merges","archive_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/downloads","issues_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/issues{/number}","pulls_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/pulls{/number}","milestones_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/milestones{/number}","notifications_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/labels{/name}","releases_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/releases{/id}","deployments_url":"https://api.github.com/repos/danliris/dl-purchasing-webapi/deployments","created_at":"2016-11-17T09:50:52Z","updated_at":"2016-11-17T09:50:52Z","pushed_at":"2016-12-27T07:32:15Z","git_url":"git://github.com/danliris/dl-purchasing-webapi.git","ssh_url":"git@github.com:danliris/dl-purchasing-webapi.git","clone_url":"https://github.com/danliris/dl-purchasing-webapi.git","svn_url":"https://github.com/danliris/dl-purchasing-webapi","homepage":null,"size":292,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/danliris/dl-purchasing-webapi/pulls/20"},"html":{"href":"https://github.com/danliris/dl-purchasing-webapi/pull/20"},"issue":{"href":"https://api.github.com/repos/danliris/dl-purchasing-webapi/issues/20"},"comments":{"href":"https://api.github.com/repos/danliris/dl-purchasing-webapi/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/danliris/dl-purchasing-webapi/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/danliris/dl-purchasing-webapi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/danliris/dl-purchasing-webapi/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/danliris/dl-purchasing-webapi/statuses/6abe9c482dd474884d17256e4a48501ff09b5775"}}}}
{"actor":{"display_login":"houndci-bot"}}