{"action":"created","comment":{"url":"https://api.github.com/repos/owncloud/QA/pulls/comments/49846415","id":49846415,"diff_hunk":"@@ -0,0 +1,49 @@\n+### Sharing privileges\n+\n+#### Pr: https://github.com/owncloud/ios/pull/xxx\n+\n+Devices:\n+\n+Server version:\n+\n+<br>\n+ \n+Test Case ID | Test case     | Steps   | Expected behavior | Result | Related Comments\n+|:----:|:------------- |:-------------------|:-------------|-------------:|----------:\n+**Menu views**|\n+1|New file sharing options| 1. Swipe to share with users/groups<br>2. Tap on \"add user or group\" and add one of them<br>3. Tap on handle privileges|2. A badget is shown to handle privileges<br>3. Two options are displayed: \"can share\" and \"can edit\", a \"Stop sharing\" option, and a \"Done\" button to confirm. On the top appears the name of user/group to share with\n+2|New folder sharing options| 1. Swipe to share with users/groups<br>2. Tap on \"add user or group\" and add one of them<br>3. Tap on handle privileges<br>4. Enable \"can edit\" option|2. A badget is shown to handle privileges<br>3. Two options are displayed: \"can share\" and \"can edit\", a \"Stop sharing\" option, and a \"Done\" button to confirm<br>4. Three more options are displayed: \"create\", \"change\", \"delete\". On the top appears the name of user/group to share with\n+**Orientations**|\n+3|Portrait| From 1 or 2, set on portrait the view of sharing privileges| The view is correcly displayed\n+4|Landscape| From 1 or 2, set on landscape the view of sharing privileges| The view is correcly displayed\n+**Privileges**|\n+5|Can share|1. Swipe to share a file/folder with special characters<br>2. Select a user/group and grant it to share<br>3. Login with the sharee<br>4. Share the file/folder with other users| 3. The sharee can see the file<br>4. File/folder is correctly shared\n+6|Can not share|1. Swipe to share a file/folder<br>2. Select a user/group but does not grant to share<br>3. Login with the sharee<br>4. Share the file/folder with other users| 3. The sharee can see the file<br>4. The file/folder can not be shared\n+7|Can edit file|1. Swipe to share a file<br>2. Select a user/group and grant it to edit<br>3. Login with the sharee<br>4. Try to edit the file with an external app| 3. The sharee can see the file<br>4. The file is correctly edited\n+8|Can not edit file|1. Swipe to share a file<br>2. Select a user/group but does not grant it to edit<br>3. Login with the sharee<br>4. Try to edit the file with an external app| 3. The sharee can see the file<br>4. The file can not be edited\n+9|Can create folder|1. Swipe to share a folder<br>2. Select a user/group and grant it to create<br>3. Login with the sharee<br>4. Try to create/upload a file into the folder| 3. The sharee can see the file<br>4. The file is correctly created/uploaded\n+10|Can not create folder|1. Swipe to share a folder<br>2. Select a user/group but does not grant it to create<br>3. Login with the sharee<br>4. Try to create a file into the folder with an external app| 3. The sharee can see the file<br>4. The file can not be created/uploaded \n+11|Can change folder|1. Swipe to share a folder<br>2. Select a user/group and grant it to change<br>3. Login with the sharee<br>4. Try to edit a file into the folder with an external app| 3. The sharee can see the folder<br>4. The file into the folder is correctly changed\n+12|Can not change folder|1. Swipe to share a folder<br>2. Select a user/group but does not grant it to change<br>3. Login with the sharee<br>4. Try to edit a file into the folder file with an external app| 3. The sharee can see the file<br>4. The file into the folder can not be changed\n+13|Can delete folder|1. Swipe to share a folder<br>2. Select a user/group and grant it to delete<br>3. Login with the sharee<br>4. Try to delete a file into the folder| 3. The sharee can see the file<br>4. The file is correctly deleted\n+14|Can not delete folder|1. Swipe to share a folder<br>2. Select a user/group but does not grant it to delete<br>3. Login with the sharee<br>4. Try to delete a file into the folder| 3. The sharee can see the file<br>4. The file can not be deleted\n+15|Can not edit folder|1. Swipe to share a folder<br>2. Select a user/group but does not grant it to edit<br>3. Login with the sharee<br>4. Try to edit files (create/change/delete) with an external app| 3. The sharee can see the file<br>4. The file can not be edited\n+16|Stop sharing|1. Swipe to share a file/folder<br>2. Select a user/group and grant it some privileges<br>3. Login with the sharee<br>4. Login again with the sharing user and long press to handle sharing privileges<br>5. Tap on \"stop sharing\"| 3. The sharee can see the file<br>5. Check that the sharee can not see the file/folder\n+17|Privileges in server|1. Login on server<br>2. Grant a file/folder some privileges<br>3. Login on app| Check that the granted privileges on server are visible in mobile app\n+18|Several sharees|1. Share a file/folder with several users granting them different privileges<br>|Each sharee can only manage the file/folder according his privileges\n+19|Several files|1. Share several files/folders with a user/group granting him different privileges<br>|The user/group can only manage the files/folders according his privileges\n+**Errors**|\n+20|No connection|1. Swipe to share a file/folder with privileges<br>2. Switch the device connection off<br>3. Change the privileges<br>4. Tap on \"done\"| An error is shown\n+21|Server down|1. Swipe to share a file/folder with privileges<br>2. Server down<br>3. Change the privileges<br>4. Tap on \"done\"| An error is shown\n+22|Sharing API disabled|1. Swipe to share a file/folder with privileges<br>2. In server, disable the sharing API<br>3. Change the privileges<br>4. Tap on \"done\"| An error is shown\n+23|Resharing disabled|1. Swipe to share a file/folder with privilege of sharing<br>2. In server, disable the resharing<br>3. Login with the sharee<br>4. Try to share the file/folder by handling privileges<br>5. Tap on \"done\"| An error is shown\n+24|Changing password|1. Swipe to share a file/folder with privileges<br>2. In server, change the password of the user<br>3. Try to share the file/folder by handling privileges<br>4. Tap on \"done\"| Credentials are required\n+25|Delete file|1. Swipe to share a file/folder with privileges<br>2. In server, delete the file<br>3. Tap on \"done\"|An error is shown","path":"Mobile/iOS/Templates/xxx-share_edit_privileges.md","position":41,"original_position":41,"commit_id":"b5b1cd702cdf6630f3219511505270f46722a3b3","original_commit_id":"b5b1cd702cdf6630f3219511505270f46722a3b3","user":{"login":"rperezb","id":1846927,"avatar_url":"https://avatars.githubusercontent.com/u/1846927?v=3","gravatar_id":"","url":"https://api.github.com/users/rperezb","html_url":"https://github.com/rperezb","followers_url":"https://api.github.com/users/rperezb/followers","following_url":"https://api.github.com/users/rperezb/following{/other_user}","gists_url":"https://api.github.com/users/rperezb/gists{/gist_id}","starred_url":"https://api.github.com/users/rperezb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rperezb/subscriptions","organizations_url":"https://api.github.com/users/rperezb/orgs","repos_url":"https://api.github.com/users/rperezb/repos","events_url":"https://api.github.com/users/rperezb/events{/privacy}","received_events_url":"https://api.github.com/users/rperezb/received_events","type":"User","site_admin":false},"body":"This test case should have been tested within the internal sharing, I mean, I don't see the point of checking now, since it´s not related to privileges which is the main aim of this feature, just an idea same on the next test case 26","created_at":"2016-01-15T11:56:29Z","updated_at":"2016-01-15T11:56:29Z","html_url":"https://github.com/owncloud/QA/pull/74#discussion_r49846415","pull_request_url":"https://api.github.com/repos/owncloud/QA/pulls/74","_links":{"self":{"href":"https://api.github.com/repos/owncloud/QA/pulls/comments/49846415"},"html":{"href":"https://github.com/owncloud/QA/pull/74#discussion_r49846415"},"pull_request":{"href":"https://api.github.com/repos/owncloud/QA/pulls/74"}}},"pull_request":{"url":"https://api.github.com/repos/owncloud/QA/pulls/74","id":56143125,"html_url":"https://github.com/owncloud/QA/pull/74","diff_url":"https://github.com/owncloud/QA/pull/74.diff","patch_url":"https://github.com/owncloud/QA/pull/74.patch","issue_url":"https://api.github.com/repos/owncloud/QA/issues/74","number":74,"state":"open","locked":false,"title":"Add test plan PR xxx: Share with privileges.","user":{"login":"jesmrec","id":14894746,"avatar_url":"https://avatars.githubusercontent.com/u/14894746?v=3","gravatar_id":"","url":"https://api.github.com/users/jesmrec","html_url":"https://github.com/jesmrec","followers_url":"https://api.github.com/users/jesmrec/followers","following_url":"https://api.github.com/users/jesmrec/following{/other_user}","gists_url":"https://api.github.com/users/jesmrec/gists{/gist_id}","starred_url":"https://api.github.com/users/jesmrec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jesmrec/subscriptions","organizations_url":"https://api.github.com/users/jesmrec/orgs","repos_url":"https://api.github.com/users/jesmrec/repos","events_url":"https://api.github.com/users/jesmrec/events{/privacy}","received_events_url":"https://api.github.com/users/jesmrec/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-15T08:39:00Z","updated_at":"2016-01-15T11:56:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5cb6407a921c1204b09847127d949b0186029562","assignee":null,"milestone":{"url":"https://api.github.com/repos/owncloud/QA/milestones/6","html_url":"https://github.com/owncloud/QA/milestones/iOS%203.4.7-current","labels_url":"https://api.github.com/repos/owncloud/QA/milestones/6/labels","id":1431097,"number":6,"title":"iOS 3.4.7-current","description":"","creator":{"login":"rperezb","id":1846927,"avatar_url":"https://avatars.githubusercontent.com/u/1846927?v=3","gravatar_id":"","url":"https://api.github.com/users/rperezb","html_url":"https://github.com/rperezb","followers_url":"https://api.github.com/users/rperezb/followers","following_url":"https://api.github.com/users/rperezb/following{/other_user}","gists_url":"https://api.github.com/users/rperezb/gists{/gist_id}","starred_url":"https://api.github.com/users/rperezb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rperezb/subscriptions","organizations_url":"https://api.github.com/users/rperezb/orgs","repos_url":"https://api.github.com/users/rperezb/repos","events_url":"https://api.github.com/users/rperezb/events{/privacy}","received_events_url":"https://api.github.com/users/rperezb/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":8,"state":"open","created_at":"2015-11-26T12:51:19Z","updated_at":"2016-01-15T11:21:54Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/owncloud/QA/pulls/74/commits","review_comments_url":"https://api.github.com/repos/owncloud/QA/pulls/74/comments","review_comment_url":"https://api.github.com/repos/owncloud/QA/pulls/comments{/number}","comments_url":"https://api.github.com/repos/owncloud/QA/issues/74/comments","statuses_url":"https://api.github.com/repos/owncloud/QA/statuses/b5b1cd702cdf6630f3219511505270f46722a3b3","head":{"label":"owncloud:share_edit_privileges_ios","ref":"share_edit_privileges_ios","sha":"b5b1cd702cdf6630f3219511505270f46722a3b3","user":{"login":"owncloud","id":1645051,"avatar_url":"https://avatars.githubusercontent.com/u/1645051?v=3","gravatar_id":"","url":"https://api.github.com/users/owncloud","html_url":"https://github.com/owncloud","followers_url":"https://api.github.com/users/owncloud/followers","following_url":"https://api.github.com/users/owncloud/following{/other_user}","gists_url":"https://api.github.com/users/owncloud/gists{/gist_id}","starred_url":"https://api.github.com/users/owncloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owncloud/subscriptions","organizations_url":"https://api.github.com/users/owncloud/orgs","repos_url":"https://api.github.com/users/owncloud/repos","events_url":"https://api.github.com/users/owncloud/events{/privacy}","received_events_url":"https://api.github.com/users/owncloud/received_events","type":"Organization","site_admin":false},"repo":{"id":39527221,"name":"QA","full_name":"owncloud/QA","owner":{"login":"owncloud","id":1645051,"avatar_url":"https://avatars.githubusercontent.com/u/1645051?v=3","gravatar_id":"","url":"https://api.github.com/users/owncloud","html_url":"https://github.com/owncloud","followers_url":"https://api.github.com/users/owncloud/followers","following_url":"https://api.github.com/users/owncloud/following{/other_user}","gists_url":"https://api.github.com/users/owncloud/gists{/gist_id}","starred_url":"https://api.github.com/users/owncloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owncloud/subscriptions","organizations_url":"https://api.github.com/users/owncloud/orgs","repos_url":"https://api.github.com/users/owncloud/repos","events_url":"https://api.github.com/users/owncloud/events{/privacy}","received_events_url":"https://api.github.com/users/owncloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/owncloud/QA","description":"Repository for public test plans for owncloud components and apps","fork":false,"url":"https://api.github.com/repos/owncloud/QA","forks_url":"https://api.github.com/repos/owncloud/QA/forks","keys_url":"https://api.github.com/repos/owncloud/QA/keys{/key_id}","collaborators_url":"https://api.github.com/repos/owncloud/QA/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/owncloud/QA/teams","hooks_url":"https://api.github.com/repos/owncloud/QA/hooks","issue_events_url":"https://api.github.com/repos/owncloud/QA/issues/events{/number}","events_url":"https://api.github.com/repos/owncloud/QA/events","assignees_url":"https://api.github.com/repos/owncloud/QA/assignees{/user}","branches_url":"https://api.github.com/repos/owncloud/QA/branches{/branch}","tags_url":"https://api.github.com/repos/owncloud/QA/tags","blobs_url":"https://api.github.com/repos/owncloud/QA/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/owncloud/QA/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/owncloud/QA/git/refs{/sha}","trees_url":"https://api.github.com/repos/owncloud/QA/git/trees{/sha}","statuses_url":"https://api.github.com/repos/owncloud/QA/statuses/{sha}","languages_url":"https://api.github.com/repos/owncloud/QA/languages","stargazers_url":"https://api.github.com/repos/owncloud/QA/stargazers","contributors_url":"https://api.github.com/repos/owncloud/QA/contributors","subscribers_url":"https://api.github.com/repos/owncloud/QA/subscribers","subscription_url":"https://api.github.com/repos/owncloud/QA/subscription","commits_url":"https://api.github.com/repos/owncloud/QA/commits{/sha}","git_commits_url":"https://api.github.com/repos/owncloud/QA/git/commits{/sha}","comments_url":"https://api.github.com/repos/owncloud/QA/comments{/number}","issue_comment_url":"https://api.github.com/repos/owncloud/QA/issues/comments{/number}","contents_url":"https://api.github.com/repos/owncloud/QA/contents/{+path}","compare_url":"https://api.github.com/repos/owncloud/QA/compare/{base}...{head}","merges_url":"https://api.github.com/repos/owncloud/QA/merges","archive_url":"https://api.github.com/repos/owncloud/QA/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/owncloud/QA/downloads","issues_url":"https://api.github.com/repos/owncloud/QA/issues{/number}","pulls_url":"https://api.github.com/repos/owncloud/QA/pulls{/number}","milestones_url":"https://api.github.com/repos/owncloud/QA/milestones{/number}","notifications_url":"https://api.github.com/repos/owncloud/QA/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/owncloud/QA/labels{/name}","releases_url":"https://api.github.com/repos/owncloud/QA/releases{/id}","created_at":"2015-07-22T19:55:39Z","updated_at":"2016-01-12T16:41:23Z","pushed_at":"2016-01-15T11:32:27Z","git_url":"git://github.com/owncloud/QA.git","ssh_url":"git@github.com:owncloud/QA.git","clone_url":"https://github.com/owncloud/QA.git","svn_url":"https://github.com/owncloud/QA","homepage":null,"size":122,"stargazers_count":2,"watchers_count":2,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":25,"forks":3,"open_issues":25,"watchers":2,"default_branch":"master"}},"base":{"label":"owncloud:master","ref":"master","sha":"681f44ccf30bcb55e68d2556020acc91d074b02a","user":{"login":"owncloud","id":1645051,"avatar_url":"https://avatars.githubusercontent.com/u/1645051?v=3","gravatar_id":"","url":"https://api.github.com/users/owncloud","html_url":"https://github.com/owncloud","followers_url":"https://api.github.com/users/owncloud/followers","following_url":"https://api.github.com/users/owncloud/following{/other_user}","gists_url":"https://api.github.com/users/owncloud/gists{/gist_id}","starred_url":"https://api.github.com/users/owncloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owncloud/subscriptions","organizations_url":"https://api.github.com/users/owncloud/orgs","repos_url":"https://api.github.com/users/owncloud/repos","events_url":"https://api.github.com/users/owncloud/events{/privacy}","received_events_url":"https://api.github.com/users/owncloud/received_events","type":"Organization","site_admin":false},"repo":{"id":39527221,"name":"QA","full_name":"owncloud/QA","owner":{"login":"owncloud","id":1645051,"avatar_url":"https://avatars.githubusercontent.com/u/1645051?v=3","gravatar_id":"","url":"https://api.github.com/users/owncloud","html_url":"https://github.com/owncloud","followers_url":"https://api.github.com/users/owncloud/followers","following_url":"https://api.github.com/users/owncloud/following{/other_user}","gists_url":"https://api.github.com/users/owncloud/gists{/gist_id}","starred_url":"https://api.github.com/users/owncloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owncloud/subscriptions","organizations_url":"https://api.github.com/users/owncloud/orgs","repos_url":"https://api.github.com/users/owncloud/repos","events_url":"https://api.github.com/users/owncloud/events{/privacy}","received_events_url":"https://api.github.com/users/owncloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/owncloud/QA","description":"Repository for public test plans for owncloud components and apps","fork":false,"url":"https://api.github.com/repos/owncloud/QA","forks_url":"https://api.github.com/repos/owncloud/QA/forks","keys_url":"https://api.github.com/repos/owncloud/QA/keys{/key_id}","collaborators_url":"https://api.github.com/repos/owncloud/QA/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/owncloud/QA/teams","hooks_url":"https://api.github.com/repos/owncloud/QA/hooks","issue_events_url":"https://api.github.com/repos/owncloud/QA/issues/events{/number}","events_url":"https://api.github.com/repos/owncloud/QA/events","assignees_url":"https://api.github.com/repos/owncloud/QA/assignees{/user}","branches_url":"https://api.github.com/repos/owncloud/QA/branches{/branch}","tags_url":"https://api.github.com/repos/owncloud/QA/tags","blobs_url":"https://api.github.com/repos/owncloud/QA/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/owncloud/QA/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/owncloud/QA/git/refs{/sha}","trees_url":"https://api.github.com/repos/owncloud/QA/git/trees{/sha}","statuses_url":"https://api.github.com/repos/owncloud/QA/statuses/{sha}","languages_url":"https://api.github.com/repos/owncloud/QA/languages","stargazers_url":"https://api.github.com/repos/owncloud/QA/stargazers","contributors_url":"https://api.github.com/repos/owncloud/QA/contributors","subscribers_url":"https://api.github.com/repos/owncloud/QA/subscribers","subscription_url":"https://api.github.com/repos/owncloud/QA/subscription","commits_url":"https://api.github.com/repos/owncloud/QA/commits{/sha}","git_commits_url":"https://api.github.com/repos/owncloud/QA/git/commits{/sha}","comments_url":"https://api.github.com/repos/owncloud/QA/comments{/number}","issue_comment_url":"https://api.github.com/repos/owncloud/QA/issues/comments{/number}","contents_url":"https://api.github.com/repos/owncloud/QA/contents/{+path}","compare_url":"https://api.github.com/repos/owncloud/QA/compare/{base}...{head}","merges_url":"https://api.github.com/repos/owncloud/QA/merges","archive_url":"https://api.github.com/repos/owncloud/QA/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/owncloud/QA/downloads","issues_url":"https://api.github.com/repos/owncloud/QA/issues{/number}","pulls_url":"https://api.github.com/repos/owncloud/QA/pulls{/number}","milestones_url":"https://api.github.com/repos/owncloud/QA/milestones{/number}","notifications_url":"https://api.github.com/repos/owncloud/QA/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/owncloud/QA/labels{/name}","releases_url":"https://api.github.com/repos/owncloud/QA/releases{/id}","created_at":"2015-07-22T19:55:39Z","updated_at":"2016-01-12T16:41:23Z","pushed_at":"2016-01-15T11:32:27Z","git_url":"git://github.com/owncloud/QA.git","ssh_url":"git@github.com:owncloud/QA.git","clone_url":"https://github.com/owncloud/QA.git","svn_url":"https://github.com/owncloud/QA","homepage":null,"size":122,"stargazers_count":2,"watchers_count":2,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":25,"forks":3,"open_issues":25,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/owncloud/QA/pulls/74"},"html":{"href":"https://github.com/owncloud/QA/pull/74"},"issue":{"href":"https://api.github.com/repos/owncloud/QA/issues/74"},"comments":{"href":"https://api.github.com/repos/owncloud/QA/issues/74/comments"},"review_comments":{"href":"https://api.github.com/repos/owncloud/QA/pulls/74/comments"},"review_comment":{"href":"https://api.github.com/repos/owncloud/QA/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/owncloud/QA/pulls/74/commits"},"statuses":{"href":"https://api.github.com/repos/owncloud/QA/statuses/b5b1cd702cdf6630f3219511505270f46722a3b3"}}}}