{"action":"created","comment":{"url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/pulls/comments/169561721","pull_request_review_id":98098593,"id":169561721,"diff_hunk":"@@ -0,0 +1,107 @@\n+/*\n+ * Copyright 2018 Red Hat, Inc. and/or its affiliates.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *       http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+package org.kie.wb.test.rest.security;\n+\n+import org.guvnor.rest.client.CreateProjectRequest;\n+import org.junit.BeforeClass;\n+import org.junit.Test;\n+import org.junit.runner.RunWith;\n+import org.junit.runners.Parameterized;\n+import org.kie.wb.test.rest.AccessRestTestBase;\n+import org.kie.wb.test.rest.User;\n+\n+@RunWith(Parameterized.class)\n+public class ProjectAccessIntegrationTest extends AccessRestTestBase {\n+\n+    private static final String SPACE_NAME = \"projectAccessTestOrgUnit\";","path":"kie-wb-tests/kie-wb-tests-rest/src/test/java/org/kie/wb/test/rest/security/ProjectAccessIntegrationTest.java","position":30,"original_position":30,"commit_id":"705b3ba98c36aa60685e0647641e6444b21ddd8f","original_commit_id":"705b3ba98c36aa60685e0647641e6444b21ddd8f","user":{"login":"barboras7","id":11525583,"avatar_url":"https://avatars3.githubusercontent.com/u/11525583?v=4","gravatar_id":"","url":"https://api.github.com/users/barboras7","html_url":"https://github.com/barboras7","followers_url":"https://api.github.com/users/barboras7/followers","following_url":"https://api.github.com/users/barboras7/following{/other_user}","gists_url":"https://api.github.com/users/barboras7/gists{/gist_id}","starred_url":"https://api.github.com/users/barboras7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barboras7/subscriptions","organizations_url":"https://api.github.com/users/barboras7/orgs","repos_url":"https://api.github.com/users/barboras7/repos","events_url":"https://api.github.com/users/barboras7/events{/privacy}","received_events_url":"https://api.github.com/users/barboras7/received_events","type":"User","site_admin":false},"body":"Space instead of OrgUnit?","created_at":"2018-02-21T08:23:57Z","updated_at":"2018-02-21T08:25:31Z","html_url":"https://github.com/kiegroup/kie-wb-distributions/pull/693#discussion_r169561721","pull_request_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/pulls/693","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/kiegroup/kie-wb-distributions/pulls/comments/169561721"},"html":{"href":"https://github.com/kiegroup/kie-wb-distributions/pull/693#discussion_r169561721"},"pull_request":{"href":"https://api.github.com/repos/kiegroup/kie-wb-distributions/pulls/693"}}},"pull_request":{"url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/pulls/693","id":170148113,"html_url":"https://github.com/kiegroup/kie-wb-distributions/pull/693","diff_url":"https://github.com/kiegroup/kie-wb-distributions/pull/693.diff","patch_url":"https://github.com/kiegroup/kie-wb-distributions/pull/693.patch","issue_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/issues/693","number":693,"state":"open","locked":false,"title":"DROOLS-2336 : [Project Oriented] Add REST tests back into kie-wb-distributions","user":{"login":"Rikkola","id":331092,"avatar_url":"https://avatars3.githubusercontent.com/u/331092?v=4","gravatar_id":"","url":"https://api.github.com/users/Rikkola","html_url":"https://github.com/Rikkola","followers_url":"https://api.github.com/users/Rikkola/followers","following_url":"https://api.github.com/users/Rikkola/following{/other_user}","gists_url":"https://api.github.com/users/Rikkola/gists{/gist_id}","starred_url":"https://api.github.com/users/Rikkola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rikkola/subscriptions","organizations_url":"https://api.github.com/users/Rikkola/orgs","repos_url":"https://api.github.com/users/Rikkola/repos","events_url":"https://api.github.com/users/Rikkola/events{/privacy}","received_events_url":"https://api.github.com/users/Rikkola/received_events","type":"User","site_admin":false},"body":"https://issues.jboss.org/browse/DROOLS-2336\r\n\r\nAdds back the old REST tests and updates the REST API to fit current needs.\r\n\r\nhttps://github.com/kiegroup/kie-docs/pull/690\r\nhttps://github.com/kiegroup/appformer/pull/193\r\nhttps://github.com/kiegroup/kie-wb-distributions/pull/693","created_at":"2018-02-20T10:11:05Z","updated_at":"2018-02-21T08:25:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"109ecf23319a2ad0712c8d5e2bfe17cde0f7923b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/pulls/693/commits","review_comments_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/pulls/693/comments","review_comment_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/issues/693/comments","statuses_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/statuses/705b3ba98c36aa60685e0647641e6444b21ddd8f","head":{"label":"Rikkola:REST_FIX","ref":"REST_FIX","sha":"705b3ba98c36aa60685e0647641e6444b21ddd8f","user":{"login":"Rikkola","id":331092,"avatar_url":"https://avatars3.githubusercontent.com/u/331092?v=4","gravatar_id":"","url":"https://api.github.com/users/Rikkola","html_url":"https://github.com/Rikkola","followers_url":"https://api.github.com/users/Rikkola/followers","following_url":"https://api.github.com/users/Rikkola/following{/other_user}","gists_url":"https://api.github.com/users/Rikkola/gists{/gist_id}","starred_url":"https://api.github.com/users/Rikkola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rikkola/subscriptions","organizations_url":"https://api.github.com/users/Rikkola/orgs","repos_url":"https://api.github.com/users/Rikkola/repos","events_url":"https://api.github.com/users/Rikkola/events{/privacy}","received_events_url":"https://api.github.com/users/Rikkola/received_events","type":"User","site_admin":false},"repo":{"id":36659141,"name":"kie-wb-distributions","full_name":"Rikkola/kie-wb-distributions","owner":{"login":"Rikkola","id":331092,"avatar_url":"https://avatars3.githubusercontent.com/u/331092?v=4","gravatar_id":"","url":"https://api.github.com/users/Rikkola","html_url":"https://github.com/Rikkola","followers_url":"https://api.github.com/users/Rikkola/followers","following_url":"https://api.github.com/users/Rikkola/following{/other_user}","gists_url":"https://api.github.com/users/Rikkola/gists{/gist_id}","starred_url":"https://api.github.com/users/Rikkola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rikkola/subscriptions","organizations_url":"https://api.github.com/users/Rikkola/orgs","repos_url":"https://api.github.com/users/Rikkola/repos","events_url":"https://api.github.com/users/Rikkola/events{/privacy}","received_events_url":"https://api.github.com/users/Rikkola/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Rikkola/kie-wb-distributions","description":"Drools & jBPM Workbench Distributions","fork":true,"url":"https://api.github.com/repos/Rikkola/kie-wb-distributions","forks_url":"https://api.github.com/repos/Rikkola/kie-wb-distributions/forks","keys_url":"https://api.github.com/repos/Rikkola/kie-wb-distributions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Rikkola/kie-wb-distributions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Rikkola/kie-wb-distributions/teams","hooks_url":"https://api.github.com/repos/Rikkola/kie-wb-distributions/hooks","issue_events_url":"https://api.github.com/repos/Rikkola/kie-wb-distributions/issues/events{/number}","events_url":"https://api.github.com/repos/Rikkola/kie-wb-distributions/events","assignees_url":"https://api.github.com/repos/Rikkola/kie-wb-distributions/assignees{/user}","branches_url":"https://api.github.com/repos/Rikkola/kie-wb-distributions/branches{/branch}","tags_url":"https://api.github.com/repos/Rikkola/kie-wb-distributions/tags","blobs_url":"https://api.github.com/repos/Rikkola/kie-wb-distributions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Rikkola/kie-wb-distributions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Rikkola/kie-wb-distributions/git/refs{/sha}","trees_url":"https://api.github.com/repos/Rikkola/kie-wb-distributions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Rikkola/kie-wb-distributions/statuses/{sha}","languages_url":"https://api.github.com/repos/Rikkola/kie-wb-distributions/languages","stargazers_url":"https://api.github.com/repos/Rikkola/kie-wb-distributions/stargazers","contributors_url":"https://api.github.com/repos/Rikkola/kie-wb-distributions/contributors","subscribers_url":"https://api.github.com/repos/Rikkola/kie-wb-distributions/subscribers","subscription_url":"https://api.github.com/repos/Rikkola/kie-wb-distributions/subscription","commits_url":"https://api.github.com/repos/Rikkola/kie-wb-distributions/commits{/sha}","git_commits_url":"https://api.github.com/repos/Rikkola/kie-wb-distributions/git/commits{/sha}","comments_url":"https://api.github.com/repos/Rikkola/kie-wb-distributions/comments{/number}","issue_comment_url":"https://api.github.com/repos/Rikkola/kie-wb-distributions/issues/comments{/number}","contents_url":"https://api.github.com/repos/Rikkola/kie-wb-distributions/contents/{+path}","compare_url":"https://api.github.com/repos/Rikkola/kie-wb-distributions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Rikkola/kie-wb-distributions/merges","archive_url":"https://api.github.com/repos/Rikkola/kie-wb-distributions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Rikkola/kie-wb-distributions/downloads","issues_url":"https://api.github.com/repos/Rikkola/kie-wb-distributions/issues{/number}","pulls_url":"https://api.github.com/repos/Rikkola/kie-wb-distributions/pulls{/number}","milestones_url":"https://api.github.com/repos/Rikkola/kie-wb-distributions/milestones{/number}","notifications_url":"https://api.github.com/repos/Rikkola/kie-wb-distributions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Rikkola/kie-wb-distributions/labels{/name}","releases_url":"https://api.github.com/repos/Rikkola/kie-wb-distributions/releases{/id}","deployments_url":"https://api.github.com/repos/Rikkola/kie-wb-distributions/deployments","created_at":"2015-06-01T12:26:05Z","updated_at":"2015-06-01T12:26:09Z","pushed_at":"2018-02-21T07:41:12Z","git_url":"git://github.com/Rikkola/kie-wb-distributions.git","ssh_url":"git@github.com:Rikkola/kie-wb-distributions.git","clone_url":"https://github.com/Rikkola/kie-wb-distributions.git","svn_url":"https://github.com/Rikkola/kie-wb-distributions","homepage":"","size":78646,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kiegroup:master","ref":"master","sha":"a7cfef810ea310d0369a54b27292ed4888e867c1","user":{"login":"kiegroup","id":517980,"avatar_url":"https://avatars3.githubusercontent.com/u/517980?v=4","gravatar_id":"","url":"https://api.github.com/users/kiegroup","html_url":"https://github.com/kiegroup","followers_url":"https://api.github.com/users/kiegroup/followers","following_url":"https://api.github.com/users/kiegroup/following{/other_user}","gists_url":"https://api.github.com/users/kiegroup/gists{/gist_id}","starred_url":"https://api.github.com/users/kiegroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiegroup/subscriptions","organizations_url":"https://api.github.com/users/kiegroup/orgs","repos_url":"https://api.github.com/users/kiegroup/repos","events_url":"https://api.github.com/users/kiegroup/events{/privacy}","received_events_url":"https://api.github.com/users/kiegroup/received_events","type":"Organization","site_admin":false},"repo":{"id":8139882,"name":"kie-wb-distributions","full_name":"kiegroup/kie-wb-distributions","owner":{"login":"kiegroup","id":517980,"avatar_url":"https://avatars3.githubusercontent.com/u/517980?v=4","gravatar_id":"","url":"https://api.github.com/users/kiegroup","html_url":"https://github.com/kiegroup","followers_url":"https://api.github.com/users/kiegroup/followers","following_url":"https://api.github.com/users/kiegroup/following{/other_user}","gists_url":"https://api.github.com/users/kiegroup/gists{/gist_id}","starred_url":"https://api.github.com/users/kiegroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiegroup/subscriptions","organizations_url":"https://api.github.com/users/kiegroup/orgs","repos_url":"https://api.github.com/users/kiegroup/repos","events_url":"https://api.github.com/users/kiegroup/events{/privacy}","received_events_url":"https://api.github.com/users/kiegroup/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kiegroup/kie-wb-distributions","description":"Drools, OptaPlanner & jBPM Workbench Distributions","fork":false,"url":"https://api.github.com/repos/kiegroup/kie-wb-distributions","forks_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/forks","keys_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/teams","hooks_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/hooks","issue_events_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/issues/events{/number}","events_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/events","assignees_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/assignees{/user}","branches_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/branches{/branch}","tags_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/tags","blobs_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/git/refs{/sha}","trees_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/statuses/{sha}","languages_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/languages","stargazers_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/stargazers","contributors_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/contributors","subscribers_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/subscribers","subscription_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/subscription","commits_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/commits{/sha}","git_commits_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/git/commits{/sha}","comments_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/comments{/number}","issue_comment_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/issues/comments{/number}","contents_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/contents/{+path}","compare_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/merges","archive_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/downloads","issues_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/issues{/number}","pulls_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/pulls{/number}","milestones_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/milestones{/number}","notifications_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/labels{/name}","releases_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/releases{/id}","deployments_url":"https://api.github.com/repos/kiegroup/kie-wb-distributions/deployments","created_at":"2013-02-11T14:54:49Z","updated_at":"2018-01-28T00:23:21Z","pushed_at":"2018-02-21T07:41:14Z","git_url":"git://github.com/kiegroup/kie-wb-distributions.git","ssh_url":"git@github.com:kiegroup/kie-wb-distributions.git","clone_url":"https://github.com/kiegroup/kie-wb-distributions.git","svn_url":"https://github.com/kiegroup/kie-wb-distributions","homepage":"","size":79569,"stargazers_count":39,"watchers_count":39,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":213,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":213,"open_issues":7,"watchers":39,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kiegroup/kie-wb-distributions/pulls/693"},"html":{"href":"https://github.com/kiegroup/kie-wb-distributions/pull/693"},"issue":{"href":"https://api.github.com/repos/kiegroup/kie-wb-distributions/issues/693"},"comments":{"href":"https://api.github.com/repos/kiegroup/kie-wb-distributions/issues/693/comments"},"review_comments":{"href":"https://api.github.com/repos/kiegroup/kie-wb-distributions/pulls/693/comments"},"review_comment":{"href":"https://api.github.com/repos/kiegroup/kie-wb-distributions/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kiegroup/kie-wb-distributions/pulls/693/commits"},"statuses":{"href":"https://api.github.com/repos/kiegroup/kie-wb-distributions/statuses/705b3ba98c36aa60685e0647641e6444b21ddd8f"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"barboras7"}}