{"action":"created","comment":{"url":"https://api.github.com/repos/theforeman/foreman/pulls/comments/79366539","id":79366539,"diff_hunk":"@@ -364,6 +365,42 @@ class UsersControllerTest < ActionController::TestCase\n     assert_response :unprocessable_entity\n   end\n \n+  context \"when user is logged in\" do\n+    setup do\n+      @previous_url = \"/bookmarks\"\n+      get :login, set_session_user","path":"test/functional/users_controller_test.rb","position":null,"original_position":15,"commit_id":"de2624da73e437c333711f746ff06520feec19e2","original_commit_id":"84d63d3cb4f21ea5fcda1a1e071d393ca9f39c4c","user":{"login":"swapnilabnave","id":1291980,"avatar_url":"https://avatars.githubusercontent.com/u/1291980?v=3","gravatar_id":"","url":"https://api.github.com/users/swapnilabnave","html_url":"https://github.com/swapnilabnave","followers_url":"https://api.github.com/users/swapnilabnave/followers","following_url":"https://api.github.com/users/swapnilabnave/following{/other_user}","gists_url":"https://api.github.com/users/swapnilabnave/gists{/gist_id}","starred_url":"https://api.github.com/users/swapnilabnave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swapnilabnave/subscriptions","organizations_url":"https://api.github.com/users/swapnilabnave/orgs","repos_url":"https://api.github.com/users/swapnilabnave/repos","events_url":"https://api.github.com/users/swapnilabnave/events{/privacy}","received_events_url":"https://api.github.com/users/swapnilabnave/received_events","type":"User","site_admin":false},"body":"Test refactored.","created_at":"2016-09-19T10:51:12Z","updated_at":"2016-09-19T10:51:12Z","html_url":"https://github.com/theforeman/foreman/pull/3848#discussion_r79366539","pull_request_url":"https://api.github.com/repos/theforeman/foreman/pulls/3848","_links":{"self":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/comments/79366539"},"html":{"href":"https://github.com/theforeman/foreman/pull/3848#discussion_r79366539"},"pull_request":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/3848"}}},"pull_request":{"url":"https://api.github.com/repos/theforeman/foreman/pulls/3848","id":85385434,"html_url":"https://github.com/theforeman/foreman/pull/3848","diff_url":"https://github.com/theforeman/foreman/pull/3848.diff","patch_url":"https://github.com/theforeman/foreman/pull/3848.patch","issue_url":"https://api.github.com/repos/theforeman/foreman/issues/3848","number":3848,"state":"open","locked":false,"title":"Fixes #16530 - For active session - Redirect to :back or /hosts","user":{"login":"swapnilabnave","id":1291980,"avatar_url":"https://avatars.githubusercontent.com/u/1291980?v=3","gravatar_id":"","url":"https://api.github.com/users/swapnilabnave","html_url":"https://github.com/swapnilabnave","followers_url":"https://api.github.com/users/swapnilabnave/followers","following_url":"https://api.github.com/users/swapnilabnave/following{/other_user}","gists_url":"https://api.github.com/users/swapnilabnave/gists{/gist_id}","starred_url":"https://api.github.com/users/swapnilabnave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swapnilabnave/subscriptions","organizations_url":"https://api.github.com/users/swapnilabnave/orgs","repos_url":"https://api.github.com/users/swapnilabnave/repos","events_url":"https://api.github.com/users/swapnilabnave/events{/privacy}","received_events_url":"https://api.github.com/users/swapnilabnave/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-15T11:15:30Z","updated_at":"2016-09-19T10:51:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"92cc84cf85be1b5672aaac799e40642cb1703896","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/theforeman/foreman/pulls/3848/commits","review_comments_url":"https://api.github.com/repos/theforeman/foreman/pulls/3848/comments","review_comment_url":"https://api.github.com/repos/theforeman/foreman/pulls/comments{/number}","comments_url":"https://api.github.com/repos/theforeman/foreman/issues/3848/comments","statuses_url":"https://api.github.com/repos/theforeman/foreman/statuses/de2624da73e437c333711f746ff06520feec19e2","head":{"label":"swapnilabnave:16530-if_active_session_then_no_login_page","ref":"16530-if_active_session_then_no_login_page","sha":"de2624da73e437c333711f746ff06520feec19e2","user":{"login":"swapnilabnave","id":1291980,"avatar_url":"https://avatars.githubusercontent.com/u/1291980?v=3","gravatar_id":"","url":"https://api.github.com/users/swapnilabnave","html_url":"https://github.com/swapnilabnave","followers_url":"https://api.github.com/users/swapnilabnave/followers","following_url":"https://api.github.com/users/swapnilabnave/following{/other_user}","gists_url":"https://api.github.com/users/swapnilabnave/gists{/gist_id}","starred_url":"https://api.github.com/users/swapnilabnave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swapnilabnave/subscriptions","organizations_url":"https://api.github.com/users/swapnilabnave/orgs","repos_url":"https://api.github.com/users/swapnilabnave/repos","events_url":"https://api.github.com/users/swapnilabnave/events{/privacy}","received_events_url":"https://api.github.com/users/swapnilabnave/received_events","type":"User","site_admin":false},"repo":{"id":63067611,"name":"foreman","full_name":"swapnilabnave/foreman","owner":{"login":"swapnilabnave","id":1291980,"avatar_url":"https://avatars.githubusercontent.com/u/1291980?v=3","gravatar_id":"","url":"https://api.github.com/users/swapnilabnave","html_url":"https://github.com/swapnilabnave","followers_url":"https://api.github.com/users/swapnilabnave/followers","following_url":"https://api.github.com/users/swapnilabnave/following{/other_user}","gists_url":"https://api.github.com/users/swapnilabnave/gists{/gist_id}","starred_url":"https://api.github.com/users/swapnilabnave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swapnilabnave/subscriptions","organizations_url":"https://api.github.com/users/swapnilabnave/orgs","repos_url":"https://api.github.com/users/swapnilabnave/repos","events_url":"https://api.github.com/users/swapnilabnave/events{/privacy}","received_events_url":"https://api.github.com/users/swapnilabnave/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/swapnilabnave/foreman","description":"an application that automates the lifecycle of servers ","fork":true,"url":"https://api.github.com/repos/swapnilabnave/foreman","forks_url":"https://api.github.com/repos/swapnilabnave/foreman/forks","keys_url":"https://api.github.com/repos/swapnilabnave/foreman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/swapnilabnave/foreman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/swapnilabnave/foreman/teams","hooks_url":"https://api.github.com/repos/swapnilabnave/foreman/hooks","issue_events_url":"https://api.github.com/repos/swapnilabnave/foreman/issues/events{/number}","events_url":"https://api.github.com/repos/swapnilabnave/foreman/events","assignees_url":"https://api.github.com/repos/swapnilabnave/foreman/assignees{/user}","branches_url":"https://api.github.com/repos/swapnilabnave/foreman/branches{/branch}","tags_url":"https://api.github.com/repos/swapnilabnave/foreman/tags","blobs_url":"https://api.github.com/repos/swapnilabnave/foreman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/swapnilabnave/foreman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/swapnilabnave/foreman/git/refs{/sha}","trees_url":"https://api.github.com/repos/swapnilabnave/foreman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/swapnilabnave/foreman/statuses/{sha}","languages_url":"https://api.github.com/repos/swapnilabnave/foreman/languages","stargazers_url":"https://api.github.com/repos/swapnilabnave/foreman/stargazers","contributors_url":"https://api.github.com/repos/swapnilabnave/foreman/contributors","subscribers_url":"https://api.github.com/repos/swapnilabnave/foreman/subscribers","subscription_url":"https://api.github.com/repos/swapnilabnave/foreman/subscription","commits_url":"https://api.github.com/repos/swapnilabnave/foreman/commits{/sha}","git_commits_url":"https://api.github.com/repos/swapnilabnave/foreman/git/commits{/sha}","comments_url":"https://api.github.com/repos/swapnilabnave/foreman/comments{/number}","issue_comment_url":"https://api.github.com/repos/swapnilabnave/foreman/issues/comments{/number}","contents_url":"https://api.github.com/repos/swapnilabnave/foreman/contents/{+path}","compare_url":"https://api.github.com/repos/swapnilabnave/foreman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/swapnilabnave/foreman/merges","archive_url":"https://api.github.com/repos/swapnilabnave/foreman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/swapnilabnave/foreman/downloads","issues_url":"https://api.github.com/repos/swapnilabnave/foreman/issues{/number}","pulls_url":"https://api.github.com/repos/swapnilabnave/foreman/pulls{/number}","milestones_url":"https://api.github.com/repos/swapnilabnave/foreman/milestones{/number}","notifications_url":"https://api.github.com/repos/swapnilabnave/foreman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/swapnilabnave/foreman/labels{/name}","releases_url":"https://api.github.com/repos/swapnilabnave/foreman/releases{/id}","deployments_url":"https://api.github.com/repos/swapnilabnave/foreman/deployments","created_at":"2016-07-11T12:52:05Z","updated_at":"2016-07-11T12:52:10Z","pushed_at":"2016-09-19T10:44:16Z","git_url":"git://github.com/swapnilabnave/foreman.git","ssh_url":"git@github.com:swapnilabnave/foreman.git","clone_url":"https://github.com/swapnilabnave/foreman.git","svn_url":"https://github.com/swapnilabnave/foreman","homepage":"http://theforeman.org","size":51463,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"theforeman:develop","ref":"develop","sha":"e2b73df4f5aae74aaa73e60255b15c1b772fcf03","user":{"login":"theforeman","id":1439844,"avatar_url":"https://avatars.githubusercontent.com/u/1439844?v=3","gravatar_id":"","url":"https://api.github.com/users/theforeman","html_url":"https://github.com/theforeman","followers_url":"https://api.github.com/users/theforeman/followers","following_url":"https://api.github.com/users/theforeman/following{/other_user}","gists_url":"https://api.github.com/users/theforeman/gists{/gist_id}","starred_url":"https://api.github.com/users/theforeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theforeman/subscriptions","organizations_url":"https://api.github.com/users/theforeman/orgs","repos_url":"https://api.github.com/users/theforeman/repos","events_url":"https://api.github.com/users/theforeman/events{/privacy}","received_events_url":"https://api.github.com/users/theforeman/received_events","type":"Organization","site_admin":false},"repo":{"id":258750,"name":"foreman","full_name":"theforeman/foreman","owner":{"login":"theforeman","id":1439844,"avatar_url":"https://avatars.githubusercontent.com/u/1439844?v=3","gravatar_id":"","url":"https://api.github.com/users/theforeman","html_url":"https://github.com/theforeman","followers_url":"https://api.github.com/users/theforeman/followers","following_url":"https://api.github.com/users/theforeman/following{/other_user}","gists_url":"https://api.github.com/users/theforeman/gists{/gist_id}","starred_url":"https://api.github.com/users/theforeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theforeman/subscriptions","organizations_url":"https://api.github.com/users/theforeman/orgs","repos_url":"https://api.github.com/users/theforeman/repos","events_url":"https://api.github.com/users/theforeman/events{/privacy}","received_events_url":"https://api.github.com/users/theforeman/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/theforeman/foreman","description":"an application that automates the lifecycle of servers ","fork":false,"url":"https://api.github.com/repos/theforeman/foreman","forks_url":"https://api.github.com/repos/theforeman/foreman/forks","keys_url":"https://api.github.com/repos/theforeman/foreman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/theforeman/foreman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/theforeman/foreman/teams","hooks_url":"https://api.github.com/repos/theforeman/foreman/hooks","issue_events_url":"https://api.github.com/repos/theforeman/foreman/issues/events{/number}","events_url":"https://api.github.com/repos/theforeman/foreman/events","assignees_url":"https://api.github.com/repos/theforeman/foreman/assignees{/user}","branches_url":"https://api.github.com/repos/theforeman/foreman/branches{/branch}","tags_url":"https://api.github.com/repos/theforeman/foreman/tags","blobs_url":"https://api.github.com/repos/theforeman/foreman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/theforeman/foreman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/theforeman/foreman/git/refs{/sha}","trees_url":"https://api.github.com/repos/theforeman/foreman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/theforeman/foreman/statuses/{sha}","languages_url":"https://api.github.com/repos/theforeman/foreman/languages","stargazers_url":"https://api.github.com/repos/theforeman/foreman/stargazers","contributors_url":"https://api.github.com/repos/theforeman/foreman/contributors","subscribers_url":"https://api.github.com/repos/theforeman/foreman/subscribers","subscription_url":"https://api.github.com/repos/theforeman/foreman/subscription","commits_url":"https://api.github.com/repos/theforeman/foreman/commits{/sha}","git_commits_url":"https://api.github.com/repos/theforeman/foreman/git/commits{/sha}","comments_url":"https://api.github.com/repos/theforeman/foreman/comments{/number}","issue_comment_url":"https://api.github.com/repos/theforeman/foreman/issues/comments{/number}","contents_url":"https://api.github.com/repos/theforeman/foreman/contents/{+path}","compare_url":"https://api.github.com/repos/theforeman/foreman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/theforeman/foreman/merges","archive_url":"https://api.github.com/repos/theforeman/foreman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/theforeman/foreman/downloads","issues_url":"https://api.github.com/repos/theforeman/foreman/issues{/number}","pulls_url":"https://api.github.com/repos/theforeman/foreman/pulls{/number}","milestones_url":"https://api.github.com/repos/theforeman/foreman/milestones{/number}","notifications_url":"https://api.github.com/repos/theforeman/foreman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/theforeman/foreman/labels{/name}","releases_url":"https://api.github.com/repos/theforeman/foreman/releases{/id}","deployments_url":"https://api.github.com/repos/theforeman/foreman/deployments","created_at":"2009-07-23T15:07:00Z","updated_at":"2016-09-19T04:05:58Z","pushed_at":"2016-09-19T10:44:16Z","git_url":"git://github.com/theforeman/foreman.git","ssh_url":"git@github.com:theforeman/foreman.git","clone_url":"https://github.com/theforeman/foreman.git","svn_url":"https://github.com/theforeman/foreman","homepage":"http://theforeman.org","size":71185,"stargazers_count":1086,"watchers_count":1086,"language":"Ruby","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":550,"mirror_url":null,"open_issues_count":86,"forks":550,"open_issues":86,"watchers":1086,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/3848"},"html":{"href":"https://github.com/theforeman/foreman/pull/3848"},"issue":{"href":"https://api.github.com/repos/theforeman/foreman/issues/3848"},"comments":{"href":"https://api.github.com/repos/theforeman/foreman/issues/3848/comments"},"review_comments":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/3848/comments"},"review_comment":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/3848/commits"},"statuses":{"href":"https://api.github.com/repos/theforeman/foreman/statuses/de2624da73e437c333711f746ff06520feec19e2"}}}}
{"actor":{"display_login":"swapnilabnave"}}