{"action":"created","comment":{"url":"https://api.github.com/repos/openSUSE/open-build-service/pulls/comments/81100502","pull_request_review_id":2104636,"id":81100502,"diff_hunk":"@@ -518,4 +520,38 @@ def remove_file_post\n       end\n     end\n   end\n+\n+  describe 'GET #trigger_services' do\n+    before do\n+      login user\n+    end\n+\n+    context 'with right params' do\n+      let(:post_url) { \"http://localhost:3200/source/#{source_project}/#{service_package}?cmd=runservice&user=#{user}\" }\n+\n+      before do\n+        get :trigger_services, params: { project: source_project, package: service_package }\n+      end\n+\n+      it { expect(a_request(:post, post_url)).to have_been_made.once }\n+      it { expect(flash[:notice]).to eq('Services successfully triggered') }\n+      it { is_expected.to redirect_to(action: :show, project: source_project, package: service_package) }\n+    end\n+\n+    context \"without a service file in the package\" do\n+      let(:post_url) { \"http://localhost:3200/source/#{source_project}/#{source_package}?cmd=runservice&user=#{user}\" }\n+      let(:error) do\n+        \"Services couldn't be triggered: <status code=\\\"404\\\">\\n  <summary>no source service defined!</summary>\" \\\n+        \"\\n  <details>404 no source service defined!</details>\\n</status>\\n\"\n+      end","path":"src/api/spec/controllers/webui/package_controller_spec.rb","position":41,"original_position":41,"commit_id":"7c10e2ce664508d22084e13914b6c6c7effc60ba","original_commit_id":"7c10e2ce664508d22084e13914b6c6c7effc60ba","user":{"login":"Ana06","id":16052290,"avatar_url":"https://avatars.githubusercontent.com/u/16052290?v=3","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":"`post_url` is also used only once. Do you also want me to remove it?\r\nIt will be difficult to read anyway, as it is a very long line.","created_at":"2016-09-29T09:46:47Z","updated_at":"2016-09-29T09:46:47Z","html_url":"https://github.com/openSUSE/open-build-service/pull/2183#discussion_r81100502","pull_request_url":"https://api.github.com/repos/openSUSE/open-build-service/pulls/2183","_links":{"self":{"href":"https://api.github.com/repos/openSUSE/open-build-service/pulls/comments/81100502"},"html":{"href":"https://github.com/openSUSE/open-build-service/pull/2183#discussion_r81100502"},"pull_request":{"href":"https://api.github.com/repos/openSUSE/open-build-service/pulls/2183"}}},"pull_request":{"url":"https://api.github.com/repos/openSUSE/open-build-service/pulls/2183","id":87087816,"html_url":"https://github.com/openSUSE/open-build-service/pull/2183","diff_url":"https://github.com/openSUSE/open-build-service/pull/2183.diff","patch_url":"https://github.com/openSUSE/open-build-service/pull/2183.patch","issue_url":"https://api.github.com/repos/openSUSE/open-build-service/issues/2183","number":2183,"state":"open","locked":false,"title":"Services ui","user":{"login":"Ana06","id":16052290,"avatar_url":"https://avatars.githubusercontent.com/u/16052290?v=3","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":"Trigger services from the UI.\r\n\r\nCloses #1971 ","created_at":"2016-09-28T09:52:58Z","updated_at":"2016-09-29T09:46:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"43a081f6ede75033053f3ad56785fc0b7a83615a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/openSUSE/open-build-service/pulls/2183/commits","review_comments_url":"https://api.github.com/repos/openSUSE/open-build-service/pulls/2183/comments","review_comment_url":"https://api.github.com/repos/openSUSE/open-build-service/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openSUSE/open-build-service/issues/2183/comments","statuses_url":"https://api.github.com/repos/openSUSE/open-build-service/statuses/7c10e2ce664508d22084e13914b6c6c7effc60ba","head":{"label":"Ana06:services-ui","ref":"services-ui","sha":"7c10e2ce664508d22084e13914b6c6c7effc60ba","user":{"login":"Ana06","id":16052290,"avatar_url":"https://avatars.githubusercontent.com/u/16052290?v=3","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},"repo":{"id":67222232,"name":"open-build-service","full_name":"Ana06/open-build-service","owner":{"login":"Ana06","id":16052290,"avatar_url":"https://avatars.githubusercontent.com/u/16052290?v=3","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},"private":false,"html_url":"https://github.com/Ana06/open-build-service","description":"A generic system to build and distribute packages from sources in an automatic, consistent and reproducible way. Release your software for a wide range of operating systems and hardware architectures.","fork":true,"url":"https://api.github.com/repos/Ana06/open-build-service","forks_url":"https://api.github.com/repos/Ana06/open-build-service/forks","keys_url":"https://api.github.com/repos/Ana06/open-build-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ana06/open-build-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ana06/open-build-service/teams","hooks_url":"https://api.github.com/repos/Ana06/open-build-service/hooks","issue_events_url":"https://api.github.com/repos/Ana06/open-build-service/issues/events{/number}","events_url":"https://api.github.com/repos/Ana06/open-build-service/events","assignees_url":"https://api.github.com/repos/Ana06/open-build-service/assignees{/user}","branches_url":"https://api.github.com/repos/Ana06/open-build-service/branches{/branch}","tags_url":"https://api.github.com/repos/Ana06/open-build-service/tags","blobs_url":"https://api.github.com/repos/Ana06/open-build-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ana06/open-build-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ana06/open-build-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ana06/open-build-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ana06/open-build-service/statuses/{sha}","languages_url":"https://api.github.com/repos/Ana06/open-build-service/languages","stargazers_url":"https://api.github.com/repos/Ana06/open-build-service/stargazers","contributors_url":"https://api.github.com/repos/Ana06/open-build-service/contributors","subscribers_url":"https://api.github.com/repos/Ana06/open-build-service/subscribers","subscription_url":"https://api.github.com/repos/Ana06/open-build-service/subscription","commits_url":"https://api.github.com/repos/Ana06/open-build-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ana06/open-build-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ana06/open-build-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ana06/open-build-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ana06/open-build-service/contents/{+path}","compare_url":"https://api.github.com/repos/Ana06/open-build-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ana06/open-build-service/merges","archive_url":"https://api.github.com/repos/Ana06/open-build-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ana06/open-build-service/downloads","issues_url":"https://api.github.com/repos/Ana06/open-build-service/issues{/number}","pulls_url":"https://api.github.com/repos/Ana06/open-build-service/pulls{/number}","milestones_url":"https://api.github.com/repos/Ana06/open-build-service/milestones{/number}","notifications_url":"https://api.github.com/repos/Ana06/open-build-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ana06/open-build-service/labels{/name}","releases_url":"https://api.github.com/repos/Ana06/open-build-service/releases{/id}","deployments_url":"https://api.github.com/repos/Ana06/open-build-service/deployments","created_at":"2016-09-02T12:51:10Z","updated_at":"2016-09-02T12:51:14Z","pushed_at":"2016-09-28T23:05:42Z","git_url":"git://github.com/Ana06/open-build-service.git","ssh_url":"git@github.com:Ana06/open-build-service.git","clone_url":"https://github.com/Ana06/open-build-service.git","svn_url":"https://github.com/Ana06/open-build-service","homepage":"http://openbuildservice.org/","size":47570,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openSUSE:master","ref":"master","sha":"55e9d04aedf9981d6cc0ed36431994c40d25894e","user":{"login":"openSUSE","id":623819,"avatar_url":"https://avatars.githubusercontent.com/u/623819?v=3","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":2046192,"name":"open-build-service","full_name":"openSUSE/open-build-service","owner":{"login":"openSUSE","id":623819,"avatar_url":"https://avatars.githubusercontent.com/u/623819?v=3","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/open-build-service","description":"A generic system to build and distribute packages from sources in an automatic, consistent and reproducible way. Release your software for a wide range of operating systems and hardware architectures.","fork":false,"url":"https://api.github.com/repos/openSUSE/open-build-service","forks_url":"https://api.github.com/repos/openSUSE/open-build-service/forks","keys_url":"https://api.github.com/repos/openSUSE/open-build-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openSUSE/open-build-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openSUSE/open-build-service/teams","hooks_url":"https://api.github.com/repos/openSUSE/open-build-service/hooks","issue_events_url":"https://api.github.com/repos/openSUSE/open-build-service/issues/events{/number}","events_url":"https://api.github.com/repos/openSUSE/open-build-service/events","assignees_url":"https://api.github.com/repos/openSUSE/open-build-service/assignees{/user}","branches_url":"https://api.github.com/repos/openSUSE/open-build-service/branches{/branch}","tags_url":"https://api.github.com/repos/openSUSE/open-build-service/tags","blobs_url":"https://api.github.com/repos/openSUSE/open-build-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openSUSE/open-build-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openSUSE/open-build-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/openSUSE/open-build-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openSUSE/open-build-service/statuses/{sha}","languages_url":"https://api.github.com/repos/openSUSE/open-build-service/languages","stargazers_url":"https://api.github.com/repos/openSUSE/open-build-service/stargazers","contributors_url":"https://api.github.com/repos/openSUSE/open-build-service/contributors","subscribers_url":"https://api.github.com/repos/openSUSE/open-build-service/subscribers","subscription_url":"https://api.github.com/repos/openSUSE/open-build-service/subscription","commits_url":"https://api.github.com/repos/openSUSE/open-build-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/openSUSE/open-build-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/openSUSE/open-build-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/openSUSE/open-build-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/openSUSE/open-build-service/contents/{+path}","compare_url":"https://api.github.com/repos/openSUSE/open-build-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openSUSE/open-build-service/merges","archive_url":"https://api.github.com/repos/openSUSE/open-build-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openSUSE/open-build-service/downloads","issues_url":"https://api.github.com/repos/openSUSE/open-build-service/issues{/number}","pulls_url":"https://api.github.com/repos/openSUSE/open-build-service/pulls{/number}","milestones_url":"https://api.github.com/repos/openSUSE/open-build-service/milestones{/number}","notifications_url":"https://api.github.com/repos/openSUSE/open-build-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openSUSE/open-build-service/labels{/name}","releases_url":"https://api.github.com/repos/openSUSE/open-build-service/releases{/id}","deployments_url":"https://api.github.com/repos/openSUSE/open-build-service/deployments","created_at":"2011-07-14T06:52:57Z","updated_at":"2016-09-26T08:40:15Z","pushed_at":"2016-09-29T09:31:16Z","git_url":"git://github.com/openSUSE/open-build-service.git","ssh_url":"git@github.com:openSUSE/open-build-service.git","clone_url":"https://github.com/openSUSE/open-build-service.git","svn_url":"https://github.com/openSUSE/open-build-service","homepage":"http://openbuildservice.org/","size":55941,"stargazers_count":222,"watchers_count":222,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":170,"mirror_url":null,"open_issues_count":298,"forks":170,"open_issues":298,"watchers":222,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openSUSE/open-build-service/pulls/2183"},"html":{"href":"https://github.com/openSUSE/open-build-service/pull/2183"},"issue":{"href":"https://api.github.com/repos/openSUSE/open-build-service/issues/2183"},"comments":{"href":"https://api.github.com/repos/openSUSE/open-build-service/issues/2183/comments"},"review_comments":{"href":"https://api.github.com/repos/openSUSE/open-build-service/pulls/2183/comments"},"review_comment":{"href":"https://api.github.com/repos/openSUSE/open-build-service/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openSUSE/open-build-service/pulls/2183/commits"},"statuses":{"href":"https://api.github.com/repos/openSUSE/open-build-service/statuses/7c10e2ce664508d22084e13914b6c6c7effc60ba"}}}}
{"actor":{"display_login":"Ana06"}}