{"action":"created","comment":{"url":"https://api.github.com/repos/openSUSE/software-o-o/pulls/comments/186432379","pull_request_review_id":118007508,"id":186432379,"diff_hunk":"@@ -11,6 +11,13 @@ AllCops:\n     - 'script/**/*'\n     - 'vendor/**/*'\n \n+Metrics/BlockLength:","path":".rubocop.yml","position":4,"original_position":4,"commit_id":"e14581264d2c289de87233bd26fd9735d0719bbc","original_commit_id":"6c1917c34c73e65b4542e8a55298c3799bce7a54","user":{"login":"Ana06","id":16052290,"avatar_url":"https://avatars3.githubusercontent.com/u/16052290?v=4","gravatar_id":"","url":"https://api.github.com/users/Ana06","html_url":"https://github.com/Ana06","followers_url":"https://api.github.com/users/Ana06/followers","following_url":"https://api.github.com/users/Ana06/following{/other_user}","gists_url":"https://api.github.com/users/Ana06/gists{/gist_id}","starred_url":"https://api.github.com/users/Ana06/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ana06/subscriptions","organizations_url":"https://api.github.com/users/Ana06/orgs","repos_url":"https://api.github.com/users/Ana06/repos","events_url":"https://api.github.com/users/Ana06/events{/privacy}","received_events_url":"https://api.github.com/users/Ana06/received_events","type":"User","site_admin":false},"body":"Exclude it then locally, it is not worthwhile to make it unreadable to make Rubocop happy :wink: ","created_at":"2018-05-07T14:03:23Z","updated_at":"2018-05-07T14:03:26Z","html_url":"https://github.com/openSUSE/software-o-o/pull/275#discussion_r186432379","pull_request_url":"https://api.github.com/repos/openSUSE/software-o-o/pulls/275","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/openSUSE/software-o-o/pulls/comments/186432379"},"html":{"href":"https://github.com/openSUSE/software-o-o/pull/275#discussion_r186432379"},"pull_request":{"href":"https://api.github.com/repos/openSUSE/software-o-o/pulls/275"}},"in_reply_to_id":186221611},"pull_request":{"url":"https://api.github.com/repos/openSUSE/software-o-o/pulls/275","id":185954867,"html_url":"https://github.com/openSUSE/software-o-o/pull/275","diff_url":"https://github.com/openSUSE/software-o-o/pull/275.diff","patch_url":"https://github.com/openSUSE/software-o-o/pull/275.patch","issue_url":"https://api.github.com/repos/openSUSE/software-o-o/issues/275","number":275,"state":"open","locked":false,"title":"Add search result integration tests","user":{"login":"dmacvicar","id":15332,"avatar_url":"https://avatars2.githubusercontent.com/u/15332?v=4","gravatar_id":"","url":"https://api.github.com/users/dmacvicar","html_url":"https://github.com/dmacvicar","followers_url":"https://api.github.com/users/dmacvicar/followers","following_url":"https://api.github.com/users/dmacvicar/following{/other_user}","gists_url":"https://api.github.com/users/dmacvicar/gists{/gist_id}","starred_url":"https://api.github.com/users/dmacvicar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmacvicar/subscriptions","organizations_url":"https://api.github.com/users/dmacvicar/orgs","repos_url":"https://api.github.com/users/dmacvicar/repos","events_url":"https://api.github.com/users/dmacvicar/events{/privacy}","received_events_url":"https://api.github.com/users/dmacvicar/received_events","type":"User","site_admin":false},"body":"This PR adds integration tests for the search of \"known\" searches, which include hints described in a config file (`config/default_searches.yml`), like `nvidia`, and also tests for searches without results.\r\n\r\nTo get there, it adds a helper that allow to mock searches with random data.\r\n\r\n```ruby\r\nstub_search_random('nvidia', 'openSUSE:Leap:42.3')\r\n```\r\n\r\nThis produces the following in the Capybara/Poltergeist virtual browser:\r\n\r\n![screenshot](https://user-images.githubusercontent.com/15332/39625304-1ef3206a-4f9d-11e8-8c1e-07241bda18a3.png)\r\n\r\n![screenshot2](https://user-images.githubusercontent.com/15332/39625303-1ed97c0a-4f9d-11e8-8ec9-4352580b916d.png)\r\n\r\n","created_at":"2018-05-04T11:15:41Z","updated_at":"2018-05-07T14:03:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dc8db6fa383feab210ac4f4cf368c8033268d6b9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/openSUSE/software-o-o/pulls/275/commits","review_comments_url":"https://api.github.com/repos/openSUSE/software-o-o/pulls/275/comments","review_comment_url":"https://api.github.com/repos/openSUSE/software-o-o/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openSUSE/software-o-o/issues/275/comments","statuses_url":"https://api.github.com/repos/openSUSE/software-o-o/statuses/e14581264d2c289de87233bd26fd9735d0719bbc","head":{"label":"dmacvicar:integration_tests_2","ref":"integration_tests_2","sha":"e14581264d2c289de87233bd26fd9735d0719bbc","user":{"login":"dmacvicar","id":15332,"avatar_url":"https://avatars2.githubusercontent.com/u/15332?v=4","gravatar_id":"","url":"https://api.github.com/users/dmacvicar","html_url":"https://github.com/dmacvicar","followers_url":"https://api.github.com/users/dmacvicar/followers","following_url":"https://api.github.com/users/dmacvicar/following{/other_user}","gists_url":"https://api.github.com/users/dmacvicar/gists{/gist_id}","starred_url":"https://api.github.com/users/dmacvicar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmacvicar/subscriptions","organizations_url":"https://api.github.com/users/dmacvicar/orgs","repos_url":"https://api.github.com/users/dmacvicar/repos","events_url":"https://api.github.com/users/dmacvicar/events{/privacy}","received_events_url":"https://api.github.com/users/dmacvicar/received_events","type":"User","site_admin":false},"repo":{"id":107599990,"name":"software-o-o","full_name":"dmacvicar/software-o-o","owner":{"login":"dmacvicar","id":15332,"avatar_url":"https://avatars2.githubusercontent.com/u/15332?v=4","gravatar_id":"","url":"https://api.github.com/users/dmacvicar","html_url":"https://github.com/dmacvicar","followers_url":"https://api.github.com/users/dmacvicar/followers","following_url":"https://api.github.com/users/dmacvicar/following{/other_user}","gists_url":"https://api.github.com/users/dmacvicar/gists{/gist_id}","starred_url":"https://api.github.com/users/dmacvicar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmacvicar/subscriptions","organizations_url":"https://api.github.com/users/dmacvicar/orgs","repos_url":"https://api.github.com/users/dmacvicar/repos","events_url":"https://api.github.com/users/dmacvicar/events{/privacy}","received_events_url":"https://api.github.com/users/dmacvicar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dmacvicar/software-o-o","description":"The site behind software.opensuse.org. It is the default web interface to download openSUSE distribution and to search for OBS packages.Packages at https://build.opensuse.org/project/show/openSUSE:infrastructure:software.opensuse.org","fork":true,"url":"https://api.github.com/repos/dmacvicar/software-o-o","forks_url":"https://api.github.com/repos/dmacvicar/software-o-o/forks","keys_url":"https://api.github.com/repos/dmacvicar/software-o-o/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dmacvicar/software-o-o/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dmacvicar/software-o-o/teams","hooks_url":"https://api.github.com/repos/dmacvicar/software-o-o/hooks","issue_events_url":"https://api.github.com/repos/dmacvicar/software-o-o/issues/events{/number}","events_url":"https://api.github.com/repos/dmacvicar/software-o-o/events","assignees_url":"https://api.github.com/repos/dmacvicar/software-o-o/assignees{/user}","branches_url":"https://api.github.com/repos/dmacvicar/software-o-o/branches{/branch}","tags_url":"https://api.github.com/repos/dmacvicar/software-o-o/tags","blobs_url":"https://api.github.com/repos/dmacvicar/software-o-o/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dmacvicar/software-o-o/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dmacvicar/software-o-o/git/refs{/sha}","trees_url":"https://api.github.com/repos/dmacvicar/software-o-o/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dmacvicar/software-o-o/statuses/{sha}","languages_url":"https://api.github.com/repos/dmacvicar/software-o-o/languages","stargazers_url":"https://api.github.com/repos/dmacvicar/software-o-o/stargazers","contributors_url":"https://api.github.com/repos/dmacvicar/software-o-o/contributors","subscribers_url":"https://api.github.com/repos/dmacvicar/software-o-o/subscribers","subscription_url":"https://api.github.com/repos/dmacvicar/software-o-o/subscription","commits_url":"https://api.github.com/repos/dmacvicar/software-o-o/commits{/sha}","git_commits_url":"https://api.github.com/repos/dmacvicar/software-o-o/git/commits{/sha}","comments_url":"https://api.github.com/repos/dmacvicar/software-o-o/comments{/number}","issue_comment_url":"https://api.github.com/repos/dmacvicar/software-o-o/issues/comments{/number}","contents_url":"https://api.github.com/repos/dmacvicar/software-o-o/contents/{+path}","compare_url":"https://api.github.com/repos/dmacvicar/software-o-o/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dmacvicar/software-o-o/merges","archive_url":"https://api.github.com/repos/dmacvicar/software-o-o/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dmacvicar/software-o-o/downloads","issues_url":"https://api.github.com/repos/dmacvicar/software-o-o/issues{/number}","pulls_url":"https://api.github.com/repos/dmacvicar/software-o-o/pulls{/number}","milestones_url":"https://api.github.com/repos/dmacvicar/software-o-o/milestones{/number}","notifications_url":"https://api.github.com/repos/dmacvicar/software-o-o/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dmacvicar/software-o-o/labels{/name}","releases_url":"https://api.github.com/repos/dmacvicar/software-o-o/releases{/id}","deployments_url":"https://api.github.com/repos/dmacvicar/software-o-o/deployments","created_at":"2017-10-19T21:21:01Z","updated_at":"2018-05-03T21:13:03Z","pushed_at":"2018-05-05T09:11:58Z","git_url":"git://github.com/dmacvicar/software-o-o.git","ssh_url":"git@github.com:dmacvicar/software-o-o.git","clone_url":"https://github.com/dmacvicar/software-o-o.git","svn_url":"https://github.com/dmacvicar/software-o-o","homepage":"http://software.opensuse.org/","size":12980,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openSUSE:master","ref":"master","sha":"dc562b6557ccf134e1706071371181e3fc71b4a4","user":{"login":"openSUSE","id":623819,"avatar_url":"https://avatars2.githubusercontent.com/u/623819?v=4","gravatar_id":"","url":"https://api.github.com/users/openSUSE","html_url":"https://github.com/openSUSE","followers_url":"https://api.github.com/users/openSUSE/followers","following_url":"https://api.github.com/users/openSUSE/following{/other_user}","gists_url":"https://api.github.com/users/openSUSE/gists{/gist_id}","starred_url":"https://api.github.com/users/openSUSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openSUSE/subscriptions","organizations_url":"https://api.github.com/users/openSUSE/orgs","repos_url":"https://api.github.com/users/openSUSE/repos","events_url":"https://api.github.com/users/openSUSE/events{/privacy}","received_events_url":"https://api.github.com/users/openSUSE/received_events","type":"Organization","site_admin":false},"repo":{"id":2606087,"name":"software-o-o","full_name":"openSUSE/software-o-o","owner":{"login":"openSUSE","id":623819,"avatar_url":"https://avatars2.githubusercontent.com/u/623819?v=4","gravatar_id":"","url":"https://api.github.com/users/openSUSE","html_url":"https://github.com/openSUSE","followers_url":"https://api.github.com/users/openSUSE/followers","following_url":"https://api.github.com/users/openSUSE/following{/other_user}","gists_url":"https://api.github.com/users/openSUSE/gists{/gist_id}","starred_url":"https://api.github.com/users/openSUSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openSUSE/subscriptions","organizations_url":"https://api.github.com/users/openSUSE/orgs","repos_url":"https://api.github.com/users/openSUSE/repos","events_url":"https://api.github.com/users/openSUSE/events{/privacy}","received_events_url":"https://api.github.com/users/openSUSE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openSUSE/software-o-o","description":"The site behind software.opensuse.org. It is the default web interface to download openSUSE distribution and to search for OBS packages.Packages at https://build.opensuse.org/project/show/openSUSE:infrastructure:software.opensuse.org","fork":false,"url":"https://api.github.com/repos/openSUSE/software-o-o","forks_url":"https://api.github.com/repos/openSUSE/software-o-o/forks","keys_url":"https://api.github.com/repos/openSUSE/software-o-o/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openSUSE/software-o-o/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openSUSE/software-o-o/teams","hooks_url":"https://api.github.com/repos/openSUSE/software-o-o/hooks","issue_events_url":"https://api.github.com/repos/openSUSE/software-o-o/issues/events{/number}","events_url":"https://api.github.com/repos/openSUSE/software-o-o/events","assignees_url":"https://api.github.com/repos/openSUSE/software-o-o/assignees{/user}","branches_url":"https://api.github.com/repos/openSUSE/software-o-o/branches{/branch}","tags_url":"https://api.github.com/repos/openSUSE/software-o-o/tags","blobs_url":"https://api.github.com/repos/openSUSE/software-o-o/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openSUSE/software-o-o/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openSUSE/software-o-o/git/refs{/sha}","trees_url":"https://api.github.com/repos/openSUSE/software-o-o/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openSUSE/software-o-o/statuses/{sha}","languages_url":"https://api.github.com/repos/openSUSE/software-o-o/languages","stargazers_url":"https://api.github.com/repos/openSUSE/software-o-o/stargazers","contributors_url":"https://api.github.com/repos/openSUSE/software-o-o/contributors","subscribers_url":"https://api.github.com/repos/openSUSE/software-o-o/subscribers","subscription_url":"https://api.github.com/repos/openSUSE/software-o-o/subscription","commits_url":"https://api.github.com/repos/openSUSE/software-o-o/commits{/sha}","git_commits_url":"https://api.github.com/repos/openSUSE/software-o-o/git/commits{/sha}","comments_url":"https://api.github.com/repos/openSUSE/software-o-o/comments{/number}","issue_comment_url":"https://api.github.com/repos/openSUSE/software-o-o/issues/comments{/number}","contents_url":"https://api.github.com/repos/openSUSE/software-o-o/contents/{+path}","compare_url":"https://api.github.com/repos/openSUSE/software-o-o/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openSUSE/software-o-o/merges","archive_url":"https://api.github.com/repos/openSUSE/software-o-o/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openSUSE/software-o-o/downloads","issues_url":"https://api.github.com/repos/openSUSE/software-o-o/issues{/number}","pulls_url":"https://api.github.com/repos/openSUSE/software-o-o/pulls{/number}","milestones_url":"https://api.github.com/repos/openSUSE/software-o-o/milestones{/number}","notifications_url":"https://api.github.com/repos/openSUSE/software-o-o/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openSUSE/software-o-o/labels{/name}","releases_url":"https://api.github.com/repos/openSUSE/software-o-o/releases{/id}","deployments_url":"https://api.github.com/repos/openSUSE/software-o-o/deployments","created_at":"2011-10-19T13:22:29Z","updated_at":"2018-05-05T20:15:39Z","pushed_at":"2018-05-05T20:15:37Z","git_url":"git://github.com/openSUSE/software-o-o.git","ssh_url":"git@github.com:openSUSE/software-o-o.git","clone_url":"https://github.com/openSUSE/software-o-o.git","svn_url":"https://github.com/openSUSE/software-o-o","homepage":"http://software.opensuse.org/","size":12965,"stargazers_count":33,"watchers_count":33,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":54,"mirror_url":null,"archived":false,"open_issues_count":65,"license":null,"forks":54,"open_issues":65,"watchers":33,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openSUSE/software-o-o/pulls/275"},"html":{"href":"https://github.com/openSUSE/software-o-o/pull/275"},"issue":{"href":"https://api.github.com/repos/openSUSE/software-o-o/issues/275"},"comments":{"href":"https://api.github.com/repos/openSUSE/software-o-o/issues/275/comments"},"review_comments":{"href":"https://api.github.com/repos/openSUSE/software-o-o/pulls/275/comments"},"review_comment":{"href":"https://api.github.com/repos/openSUSE/software-o-o/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openSUSE/software-o-o/pulls/275/commits"},"statuses":{"href":"https://api.github.com/repos/openSUSE/software-o-o/statuses/e14581264d2c289de87233bd26fd9735d0719bbc"}},"author_association":"OWNER"}}
{"actor":{"display_login":"Ana06"}}