{"action":"opened","number":25,"pull_request":{"url":"https://api.github.com/repos/oneEyedSunday/sendIT/pulls/25","id":230991786,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwOTkxNzg2","html_url":"https://github.com/oneEyedSunday/sendIT/pull/25","diff_url":"https://github.com/oneEyedSunday/sendIT/pull/25.diff","patch_url":"https://github.com/oneEyedSunday/sendIT/pull/25.patch","issue_url":"https://api.github.com/repos/oneEyedSunday/sendIT/issues/25","number":25,"state":"open","locked":false,"title":"#161969883 Write test to ensure security of parcels list endpoint","user":{"login":"oneEyedSunday","id":29808443,"node_id":"MDQ6VXNlcjI5ODA4NDQz","avatar_url":"https://avatars2.githubusercontent.com/u/29808443?v=4","gravatar_id":"","url":"https://api.github.com/users/oneEyedSunday","html_url":"https://github.com/oneEyedSunday","followers_url":"https://api.github.com/users/oneEyedSunday/followers","following_url":"https://api.github.com/users/oneEyedSunday/following{/other_user}","gists_url":"https://api.github.com/users/oneEyedSunday/gists{/gist_id}","starred_url":"https://api.github.com/users/oneEyedSunday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oneEyedSunday/subscriptions","organizations_url":"https://api.github.com/users/oneEyedSunday/orgs","repos_url":"https://api.github.com/users/oneEyedSunday/repos","events_url":"https://api.github.com/users/oneEyedSunday/events{/privacy}","received_events_url":"https://api.github.com/users/oneEyedSunday/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nIt updates broken tests from [last PR](https://github.com/oneEyedSunday/sendIT/pull/24)\r\n#### Description of Task to be completed?\r\n* Rewrite tests to take cognizance of required authorization checks\r\n* Test new authorization logic\r\n#### How should this be manually tested?\r\n* Clone repo\r\n* `cd server` to enter server directory\r\n* Run npm install\r\n* Run `npm test` to run tests\r\n\r\n#### What are the relevant pivotal tracker stories?\r\n#161969883","created_at":"2018-11-14T21:43:19Z","updated_at":"2018-11-14T21:43:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/oneEyedSunday/sendIT/pulls/25/commits","review_comments_url":"https://api.github.com/repos/oneEyedSunday/sendIT/pulls/25/comments","review_comment_url":"https://api.github.com/repos/oneEyedSunday/sendIT/pulls/comments{/number}","comments_url":"https://api.github.com/repos/oneEyedSunday/sendIT/issues/25/comments","statuses_url":"https://api.github.com/repos/oneEyedSunday/sendIT/statuses/319cf2be9cecdc420732f2dfd34fa2d89cd4a35f","head":{"label":"oneEyedSunday:ch-test-secure-parcels-161969883","ref":"ch-test-secure-parcels-161969883","sha":"319cf2be9cecdc420732f2dfd34fa2d89cd4a35f","user":{"login":"oneEyedSunday","id":29808443,"node_id":"MDQ6VXNlcjI5ODA4NDQz","avatar_url":"https://avatars2.githubusercontent.com/u/29808443?v=4","gravatar_id":"","url":"https://api.github.com/users/oneEyedSunday","html_url":"https://github.com/oneEyedSunday","followers_url":"https://api.github.com/users/oneEyedSunday/followers","following_url":"https://api.github.com/users/oneEyedSunday/following{/other_user}","gists_url":"https://api.github.com/users/oneEyedSunday/gists{/gist_id}","starred_url":"https://api.github.com/users/oneEyedSunday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oneEyedSunday/subscriptions","organizations_url":"https://api.github.com/users/oneEyedSunday/orgs","repos_url":"https://api.github.com/users/oneEyedSunday/repos","events_url":"https://api.github.com/users/oneEyedSunday/events{/privacy}","received_events_url":"https://api.github.com/users/oneEyedSunday/received_events","type":"User","site_admin":false},"repo":{"id":155270725,"node_id":"MDEwOlJlcG9zaXRvcnkxNTUyNzA3MjU=","name":"sendIT","full_name":"oneEyedSunday/sendIT","private":false,"owner":{"login":"oneEyedSunday","id":29808443,"node_id":"MDQ6VXNlcjI5ODA4NDQz","avatar_url":"https://avatars2.githubusercontent.com/u/29808443?v=4","gravatar_id":"","url":"https://api.github.com/users/oneEyedSunday","html_url":"https://github.com/oneEyedSunday","followers_url":"https://api.github.com/users/oneEyedSunday/followers","following_url":"https://api.github.com/users/oneEyedSunday/following{/other_user}","gists_url":"https://api.github.com/users/oneEyedSunday/gists{/gist_id}","starred_url":"https://api.github.com/users/oneEyedSunday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oneEyedSunday/subscriptions","organizations_url":"https://api.github.com/users/oneEyedSunday/orgs","repos_url":"https://api.github.com/users/oneEyedSunday/repos","events_url":"https://api.github.com/users/oneEyedSunday/events{/privacy}","received_events_url":"https://api.github.com/users/oneEyedSunday/received_events","type":"User","site_admin":false},"html_url":"https://github.com/oneEyedSunday/sendIT","description":"SendIT is a courier service that helps users deliver parcels to different destinations. SendIT provides courier quotes based on weight categories.","fork":false,"url":"https://api.github.com/repos/oneEyedSunday/sendIT","forks_url":"https://api.github.com/repos/oneEyedSunday/sendIT/forks","keys_url":"https://api.github.com/repos/oneEyedSunday/sendIT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oneEyedSunday/sendIT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oneEyedSunday/sendIT/teams","hooks_url":"https://api.github.com/repos/oneEyedSunday/sendIT/hooks","issue_events_url":"https://api.github.com/repos/oneEyedSunday/sendIT/issues/events{/number}","events_url":"https://api.github.com/repos/oneEyedSunday/sendIT/events","assignees_url":"https://api.github.com/repos/oneEyedSunday/sendIT/assignees{/user}","branches_url":"https://api.github.com/repos/oneEyedSunday/sendIT/branches{/branch}","tags_url":"https://api.github.com/repos/oneEyedSunday/sendIT/tags","blobs_url":"https://api.github.com/repos/oneEyedSunday/sendIT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oneEyedSunday/sendIT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oneEyedSunday/sendIT/git/refs{/sha}","trees_url":"https://api.github.com/repos/oneEyedSunday/sendIT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oneEyedSunday/sendIT/statuses/{sha}","languages_url":"https://api.github.com/repos/oneEyedSunday/sendIT/languages","stargazers_url":"https://api.github.com/repos/oneEyedSunday/sendIT/stargazers","contributors_url":"https://api.github.com/repos/oneEyedSunday/sendIT/contributors","subscribers_url":"https://api.github.com/repos/oneEyedSunday/sendIT/subscribers","subscription_url":"https://api.github.com/repos/oneEyedSunday/sendIT/subscription","commits_url":"https://api.github.com/repos/oneEyedSunday/sendIT/commits{/sha}","git_commits_url":"https://api.github.com/repos/oneEyedSunday/sendIT/git/commits{/sha}","comments_url":"https://api.github.com/repos/oneEyedSunday/sendIT/comments{/number}","issue_comment_url":"https://api.github.com/repos/oneEyedSunday/sendIT/issues/comments{/number}","contents_url":"https://api.github.com/repos/oneEyedSunday/sendIT/contents/{+path}","compare_url":"https://api.github.com/repos/oneEyedSunday/sendIT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oneEyedSunday/sendIT/merges","archive_url":"https://api.github.com/repos/oneEyedSunday/sendIT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oneEyedSunday/sendIT/downloads","issues_url":"https://api.github.com/repos/oneEyedSunday/sendIT/issues{/number}","pulls_url":"https://api.github.com/repos/oneEyedSunday/sendIT/pulls{/number}","milestones_url":"https://api.github.com/repos/oneEyedSunday/sendIT/milestones{/number}","notifications_url":"https://api.github.com/repos/oneEyedSunday/sendIT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oneEyedSunday/sendIT/labels{/name}","releases_url":"https://api.github.com/repos/oneEyedSunday/sendIT/releases{/id}","deployments_url":"https://api.github.com/repos/oneEyedSunday/sendIT/deployments","created_at":"2018-10-29T19:42:06Z","updated_at":"2018-11-07T09:43:12Z","pushed_at":"2018-11-14T21:40:28Z","git_url":"git://github.com/oneEyedSunday/sendIT.git","ssh_url":"git@github.com:oneEyedSunday/sendIT.git","clone_url":"https://github.com/oneEyedSunday/sendIT.git","svn_url":"https://github.com/oneEyedSunday/sendIT","homepage":null,"size":331,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"oneEyedSunday:develop","ref":"develop","sha":"89618cbe5514610216f04750c16892e8070ff2d1","user":{"login":"oneEyedSunday","id":29808443,"node_id":"MDQ6VXNlcjI5ODA4NDQz","avatar_url":"https://avatars2.githubusercontent.com/u/29808443?v=4","gravatar_id":"","url":"https://api.github.com/users/oneEyedSunday","html_url":"https://github.com/oneEyedSunday","followers_url":"https://api.github.com/users/oneEyedSunday/followers","following_url":"https://api.github.com/users/oneEyedSunday/following{/other_user}","gists_url":"https://api.github.com/users/oneEyedSunday/gists{/gist_id}","starred_url":"https://api.github.com/users/oneEyedSunday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oneEyedSunday/subscriptions","organizations_url":"https://api.github.com/users/oneEyedSunday/orgs","repos_url":"https://api.github.com/users/oneEyedSunday/repos","events_url":"https://api.github.com/users/oneEyedSunday/events{/privacy}","received_events_url":"https://api.github.com/users/oneEyedSunday/received_events","type":"User","site_admin":false},"repo":{"id":155270725,"node_id":"MDEwOlJlcG9zaXRvcnkxNTUyNzA3MjU=","name":"sendIT","full_name":"oneEyedSunday/sendIT","private":false,"owner":{"login":"oneEyedSunday","id":29808443,"node_id":"MDQ6VXNlcjI5ODA4NDQz","avatar_url":"https://avatars2.githubusercontent.com/u/29808443?v=4","gravatar_id":"","url":"https://api.github.com/users/oneEyedSunday","html_url":"https://github.com/oneEyedSunday","followers_url":"https://api.github.com/users/oneEyedSunday/followers","following_url":"https://api.github.com/users/oneEyedSunday/following{/other_user}","gists_url":"https://api.github.com/users/oneEyedSunday/gists{/gist_id}","starred_url":"https://api.github.com/users/oneEyedSunday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oneEyedSunday/subscriptions","organizations_url":"https://api.github.com/users/oneEyedSunday/orgs","repos_url":"https://api.github.com/users/oneEyedSunday/repos","events_url":"https://api.github.com/users/oneEyedSunday/events{/privacy}","received_events_url":"https://api.github.com/users/oneEyedSunday/received_events","type":"User","site_admin":false},"html_url":"https://github.com/oneEyedSunday/sendIT","description":"SendIT is a courier service that helps users deliver parcels to different destinations. SendIT provides courier quotes based on weight categories.","fork":false,"url":"https://api.github.com/repos/oneEyedSunday/sendIT","forks_url":"https://api.github.com/repos/oneEyedSunday/sendIT/forks","keys_url":"https://api.github.com/repos/oneEyedSunday/sendIT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oneEyedSunday/sendIT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oneEyedSunday/sendIT/teams","hooks_url":"https://api.github.com/repos/oneEyedSunday/sendIT/hooks","issue_events_url":"https://api.github.com/repos/oneEyedSunday/sendIT/issues/events{/number}","events_url":"https://api.github.com/repos/oneEyedSunday/sendIT/events","assignees_url":"https://api.github.com/repos/oneEyedSunday/sendIT/assignees{/user}","branches_url":"https://api.github.com/repos/oneEyedSunday/sendIT/branches{/branch}","tags_url":"https://api.github.com/repos/oneEyedSunday/sendIT/tags","blobs_url":"https://api.github.com/repos/oneEyedSunday/sendIT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oneEyedSunday/sendIT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oneEyedSunday/sendIT/git/refs{/sha}","trees_url":"https://api.github.com/repos/oneEyedSunday/sendIT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oneEyedSunday/sendIT/statuses/{sha}","languages_url":"https://api.github.com/repos/oneEyedSunday/sendIT/languages","stargazers_url":"https://api.github.com/repos/oneEyedSunday/sendIT/stargazers","contributors_url":"https://api.github.com/repos/oneEyedSunday/sendIT/contributors","subscribers_url":"https://api.github.com/repos/oneEyedSunday/sendIT/subscribers","subscription_url":"https://api.github.com/repos/oneEyedSunday/sendIT/subscription","commits_url":"https://api.github.com/repos/oneEyedSunday/sendIT/commits{/sha}","git_commits_url":"https://api.github.com/repos/oneEyedSunday/sendIT/git/commits{/sha}","comments_url":"https://api.github.com/repos/oneEyedSunday/sendIT/comments{/number}","issue_comment_url":"https://api.github.com/repos/oneEyedSunday/sendIT/issues/comments{/number}","contents_url":"https://api.github.com/repos/oneEyedSunday/sendIT/contents/{+path}","compare_url":"https://api.github.com/repos/oneEyedSunday/sendIT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oneEyedSunday/sendIT/merges","archive_url":"https://api.github.com/repos/oneEyedSunday/sendIT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oneEyedSunday/sendIT/downloads","issues_url":"https://api.github.com/repos/oneEyedSunday/sendIT/issues{/number}","pulls_url":"https://api.github.com/repos/oneEyedSunday/sendIT/pulls{/number}","milestones_url":"https://api.github.com/repos/oneEyedSunday/sendIT/milestones{/number}","notifications_url":"https://api.github.com/repos/oneEyedSunday/sendIT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oneEyedSunday/sendIT/labels{/name}","releases_url":"https://api.github.com/repos/oneEyedSunday/sendIT/releases{/id}","deployments_url":"https://api.github.com/repos/oneEyedSunday/sendIT/deployments","created_at":"2018-10-29T19:42:06Z","updated_at":"2018-11-07T09:43:12Z","pushed_at":"2018-11-14T21:40:28Z","git_url":"git://github.com/oneEyedSunday/sendIT.git","ssh_url":"git@github.com:oneEyedSunday/sendIT.git","clone_url":"https://github.com/oneEyedSunday/sendIT.git","svn_url":"https://github.com/oneEyedSunday/sendIT","homepage":null,"size":331,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/oneEyedSunday/sendIT/pulls/25"},"html":{"href":"https://github.com/oneEyedSunday/sendIT/pull/25"},"issue":{"href":"https://api.github.com/repos/oneEyedSunday/sendIT/issues/25"},"comments":{"href":"https://api.github.com/repos/oneEyedSunday/sendIT/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/oneEyedSunday/sendIT/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/oneEyedSunday/sendIT/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/oneEyedSunday/sendIT/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/oneEyedSunday/sendIT/statuses/319cf2be9cecdc420732f2dfd34fa2d89cd4a35f"}},"author_association":"OWNER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":11,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"oneEyedSunday"}}