{"action":"created","comment":{"url":"https://api.github.com/repos/andela/claymore-healthchecks/pulls/comments/124760789","pull_request_review_id":47079975,"id":124760789,"diff_hunk":"@@ -63,11 +65,29 @@ def test_it_reads_forwarded_protocol(self):\n                             HTTP_X_FORWARDED_PROTO=\"https\")\n         ping = Ping.objects.latest(\"id\")\n         ### Assert the expected response status code and ping's scheme\n+        assert r.status_code == 200\n+        assert ping.scheme == \"https\"\n \n     def test_it_never_caches(self):\n         r = self.client.get(\"/ping/%s/\" % self.check.code)\n         assert \"no-cache\" in r.get(\"Cache-Control\")\n \n     ### Test that when a ping is made a check with a paused status changes status\n+    def test_paused_ping_changes_status(self):\n+        assert self.check.status == \"new\"\n+        self.check.status = \"paused\"\n+        self.client.get(\"/ping/%s/\" % self.check.code)\n+        self.check.refresh_from_db()\n+        assert self.check.status == \"up\"\n+\n     ### Test that a post to a ping works\n+    def test_ping_to_post(self):\n+        response = self.client.post(\"/ping/%s/\" % self.check.code)","path":"hc/api/tests/test_ping.py","position":30,"original_position":30,"commit_id":"4bdbdb53b247b84519b32419265d947dd13a5a06","original_commit_id":"32e59dcb32b46ea7d2bec5a77f35d23b0ed2b644","user":{"login":"andela-landia","id":20776933,"avatar_url":"https://avatars2.githubusercontent.com/u/20776933?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-landia","html_url":"https://github.com/andela-landia","followers_url":"https://api.github.com/users/andela-landia/followers","following_url":"https://api.github.com/users/andela-landia/following{/other_user}","gists_url":"https://api.github.com/users/andela-landia/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-landia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-landia/subscriptions","organizations_url":"https://api.github.com/users/andela-landia/orgs","repos_url":"https://api.github.com/users/andela-landia/repos","events_url":"https://api.github.com/users/andela-landia/events{/privacy}","received_events_url":"https://api.github.com/users/andela-landia/received_events","type":"User","site_admin":false},"body":"@Bryoo kindly check on this","created_at":"2017-06-29T10:08:29Z","updated_at":"2017-06-29T10:08:29Z","html_url":"https://github.com/andela/claymore-healthchecks/pull/4#discussion_r124760789","pull_request_url":"https://api.github.com/repos/andela/claymore-healthchecks/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/andela/claymore-healthchecks/pulls/comments/124760789"},"html":{"href":"https://github.com/andela/claymore-healthchecks/pull/4#discussion_r124760789"},"pull_request":{"href":"https://api.github.com/repos/andela/claymore-healthchecks/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/andela/claymore-healthchecks/pulls/4","id":127733619,"html_url":"https://github.com/andela/claymore-healthchecks/pull/4","diff_url":"https://github.com/andela/claymore-healthchecks/pull/4.diff","patch_url":"https://github.com/andela/claymore-healthchecks/pull/4.patch","issue_url":"https://api.github.com/repos/andela/claymore-healthchecks/issues/4","number":4,"state":"open","locked":false,"title":"Ft test admin 147010549","user":{"login":"Bryoo","id":9401986,"avatar_url":"https://avatars3.githubusercontent.com/u/9401986?v=3","gravatar_id":"","url":"https://api.github.com/users/Bryoo","html_url":"https://github.com/Bryoo","followers_url":"https://api.github.com/users/Bryoo/followers","following_url":"https://api.github.com/users/Bryoo/following{/other_user}","gists_url":"https://api.github.com/users/Bryoo/gists{/gist_id}","starred_url":"https://api.github.com/users/Bryoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bryoo/subscriptions","organizations_url":"https://api.github.com/users/Bryoo/orgs","repos_url":"https://api.github.com/users/Bryoo/repos","events_url":"https://api.github.com/users/Bryoo/events{/privacy}","received_events_url":"https://api.github.com/users/Bryoo/received_events","type":"User","site_admin":false},"body":"### What does this PR do?\r\nWorked on the api tests\r\n### Description of Task to be completed? *\r\nAdded tests and asserts on the 10 api tests files to make the tests pass\r\n### What are the relevant GitHub issues/pivotal tracker stories? \r\nApi tests story","created_at":"2017-06-27T16:07:40Z","updated_at":"2017-06-29T10:08:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"268c9ef8ac7e85b4c1eb5b0645843778968f3673","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/andela/claymore-healthchecks/pulls/4/commits","review_comments_url":"https://api.github.com/repos/andela/claymore-healthchecks/pulls/4/comments","review_comment_url":"https://api.github.com/repos/andela/claymore-healthchecks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/claymore-healthchecks/issues/4/comments","statuses_url":"https://api.github.com/repos/andela/claymore-healthchecks/statuses/4bdbdb53b247b84519b32419265d947dd13a5a06","head":{"label":"andela:ft-test_admin-147010549","ref":"ft-test_admin-147010549","sha":"4bdbdb53b247b84519b32419265d947dd13a5a06","user":{"login":"andela","id":4100206,"avatar_url":"https://avatars1.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":93849229,"name":"claymore-healthchecks","full_name":"andela/claymore-healthchecks","owner":{"login":"andela","id":4100206,"avatar_url":"https://avatars1.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/claymore-healthchecks","description":null,"fork":false,"url":"https://api.github.com/repos/andela/claymore-healthchecks","forks_url":"https://api.github.com/repos/andela/claymore-healthchecks/forks","keys_url":"https://api.github.com/repos/andela/claymore-healthchecks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/claymore-healthchecks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/claymore-healthchecks/teams","hooks_url":"https://api.github.com/repos/andela/claymore-healthchecks/hooks","issue_events_url":"https://api.github.com/repos/andela/claymore-healthchecks/issues/events{/number}","events_url":"https://api.github.com/repos/andela/claymore-healthchecks/events","assignees_url":"https://api.github.com/repos/andela/claymore-healthchecks/assignees{/user}","branches_url":"https://api.github.com/repos/andela/claymore-healthchecks/branches{/branch}","tags_url":"https://api.github.com/repos/andela/claymore-healthchecks/tags","blobs_url":"https://api.github.com/repos/andela/claymore-healthchecks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/claymore-healthchecks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/claymore-healthchecks/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/claymore-healthchecks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/claymore-healthchecks/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/claymore-healthchecks/languages","stargazers_url":"https://api.github.com/repos/andela/claymore-healthchecks/stargazers","contributors_url":"https://api.github.com/repos/andela/claymore-healthchecks/contributors","subscribers_url":"https://api.github.com/repos/andela/claymore-healthchecks/subscribers","subscription_url":"https://api.github.com/repos/andela/claymore-healthchecks/subscription","commits_url":"https://api.github.com/repos/andela/claymore-healthchecks/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/claymore-healthchecks/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/claymore-healthchecks/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/claymore-healthchecks/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/claymore-healthchecks/contents/{+path}","compare_url":"https://api.github.com/repos/andela/claymore-healthchecks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/claymore-healthchecks/merges","archive_url":"https://api.github.com/repos/andela/claymore-healthchecks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/claymore-healthchecks/downloads","issues_url":"https://api.github.com/repos/andela/claymore-healthchecks/issues{/number}","pulls_url":"https://api.github.com/repos/andela/claymore-healthchecks/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/claymore-healthchecks/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/claymore-healthchecks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/claymore-healthchecks/labels{/name}","releases_url":"https://api.github.com/repos/andela/claymore-healthchecks/releases{/id}","deployments_url":"https://api.github.com/repos/andela/claymore-healthchecks/deployments","created_at":"2017-06-09T10:45:44Z","updated_at":"2017-06-12T09:16:57Z","pushed_at":"2017-06-29T06:16:58Z","git_url":"git://github.com/andela/claymore-healthchecks.git","ssh_url":"git@github.com:andela/claymore-healthchecks.git","clone_url":"https://github.com/andela/claymore-healthchecks.git","svn_url":"https://github.com/andela/claymore-healthchecks","homepage":null,"size":2159,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"andela:master","ref":"master","sha":"df137bfdad57cb53bcf31bdc92056cb4f316f921","user":{"login":"andela","id":4100206,"avatar_url":"https://avatars1.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":93849229,"name":"claymore-healthchecks","full_name":"andela/claymore-healthchecks","owner":{"login":"andela","id":4100206,"avatar_url":"https://avatars1.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/claymore-healthchecks","description":null,"fork":false,"url":"https://api.github.com/repos/andela/claymore-healthchecks","forks_url":"https://api.github.com/repos/andela/claymore-healthchecks/forks","keys_url":"https://api.github.com/repos/andela/claymore-healthchecks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/claymore-healthchecks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/claymore-healthchecks/teams","hooks_url":"https://api.github.com/repos/andela/claymore-healthchecks/hooks","issue_events_url":"https://api.github.com/repos/andela/claymore-healthchecks/issues/events{/number}","events_url":"https://api.github.com/repos/andela/claymore-healthchecks/events","assignees_url":"https://api.github.com/repos/andela/claymore-healthchecks/assignees{/user}","branches_url":"https://api.github.com/repos/andela/claymore-healthchecks/branches{/branch}","tags_url":"https://api.github.com/repos/andela/claymore-healthchecks/tags","blobs_url":"https://api.github.com/repos/andela/claymore-healthchecks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/claymore-healthchecks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/claymore-healthchecks/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/claymore-healthchecks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/claymore-healthchecks/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/claymore-healthchecks/languages","stargazers_url":"https://api.github.com/repos/andela/claymore-healthchecks/stargazers","contributors_url":"https://api.github.com/repos/andela/claymore-healthchecks/contributors","subscribers_url":"https://api.github.com/repos/andela/claymore-healthchecks/subscribers","subscription_url":"https://api.github.com/repos/andela/claymore-healthchecks/subscription","commits_url":"https://api.github.com/repos/andela/claymore-healthchecks/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/claymore-healthchecks/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/claymore-healthchecks/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/claymore-healthchecks/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/claymore-healthchecks/contents/{+path}","compare_url":"https://api.github.com/repos/andela/claymore-healthchecks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/claymore-healthchecks/merges","archive_url":"https://api.github.com/repos/andela/claymore-healthchecks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/claymore-healthchecks/downloads","issues_url":"https://api.github.com/repos/andela/claymore-healthchecks/issues{/number}","pulls_url":"https://api.github.com/repos/andela/claymore-healthchecks/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/claymore-healthchecks/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/claymore-healthchecks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/claymore-healthchecks/labels{/name}","releases_url":"https://api.github.com/repos/andela/claymore-healthchecks/releases{/id}","deployments_url":"https://api.github.com/repos/andela/claymore-healthchecks/deployments","created_at":"2017-06-09T10:45:44Z","updated_at":"2017-06-12T09:16:57Z","pushed_at":"2017-06-29T06:16:58Z","git_url":"git://github.com/andela/claymore-healthchecks.git","ssh_url":"git@github.com:andela/claymore-healthchecks.git","clone_url":"https://github.com/andela/claymore-healthchecks.git","svn_url":"https://github.com/andela/claymore-healthchecks","homepage":null,"size":2159,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/claymore-healthchecks/pulls/4"},"html":{"href":"https://github.com/andela/claymore-healthchecks/pull/4"},"issue":{"href":"https://api.github.com/repos/andela/claymore-healthchecks/issues/4"},"comments":{"href":"https://api.github.com/repos/andela/claymore-healthchecks/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/claymore-healthchecks/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/claymore-healthchecks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/claymore-healthchecks/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/andela/claymore-healthchecks/statuses/4bdbdb53b247b84519b32419265d947dd13a5a06"}}}}
{"actor":{"display_login":"andela-landia"}}