Add proper description to a feature file

This commit is contained in:
Swikriti Tripathi
2023-05-09 10:07:18 +05:45
parent 5b909f5923
commit c969faf8ef
20 changed files with 171 additions and 138 deletions
@@ -1,5 +1,8 @@
@api
Feature: sharing
As a user
I want to check the webdav share permissions
So that I know the resources have proper permissions
Background:
Given using OCS API version "1"
@@ -9,7 +12,7 @@ Feature: sharing
| Brian |
@smokeTest
Scenario Outline: Correct webdav share-permissions for owned file
Scenario Outline: check webdav share-permissions for owned file
Given using <dav-path> DAV path
And user "Alice" has uploaded file with content "foo" to "/tmp.txt"
When user "Alice" gets the following properties of file "/tmp.txt" using the WebDAV API
@@ -28,7 +31,7 @@ Feature: sharing
| spaces |
Scenario Outline: Correct webdav share-permissions for received file with edit and reshare permissions
Scenario Outline: check webdav share-permissions for received file with edit and reshare permissions
Given using <dav-path> DAV path
And user "Alice" has uploaded file with content "foo" to "/tmp.txt"
And user "Alice" has shared file "/tmp.txt" with user "Brian"
@@ -44,7 +47,7 @@ Feature: sharing
| new |
Scenario Outline: Correct webdav share-permissions for received group shared file with edit and reshare permissions
Scenario Outline: check webdav share-permissions for received group shared file with edit and reshare permissions
Given using <dav-path> DAV path
And group "grp1" has been created
And user "Brian" has been added to group "grp1"
@@ -66,7 +69,7 @@ Feature: sharing
| new |
@issue-2213
Scenario Outline: Correct webdav share-permissions for received file with edit permissions but no reshare permissions
Scenario Outline: check webdav share-permissions for received file with edit permissions but no reshare permissions
Given using <dav-path> DAV path
And user "Alice" has uploaded file with content "foo" to "/tmp.txt"
And user "Alice" has shared file "tmp.txt" with user "Brian"
@@ -81,7 +84,7 @@ Feature: sharing
| new |
@issue-2213
Scenario Outline: Correct webdav share-permissions for received group shared file with edit permissions but no reshare permissions
Scenario Outline: check webdav share-permissions for received group shared file with edit permissions but no reshare permissions
Given using <dav-path> DAV path
And group "grp1" has been created
And user "Brian" has been added to group "grp1"
@@ -103,7 +106,7 @@ Feature: sharing
| new |
@issue-2213
Scenario Outline: Correct webdav share-permissions for received file with reshare permissions but no edit permissions
Scenario Outline: check webdav share-permissions for received file with reshare permissions but no edit permissions
Given using <dav-path> DAV path
And user "Alice" has uploaded file with content "foo" to "/tmp.txt"
And user "Alice" has shared file "tmp.txt" with user "Brian"
@@ -118,7 +121,7 @@ Feature: sharing
| new |
Scenario Outline: Correct webdav share-permissions for received group shared file with reshare permissions but no edit permissions
Scenario Outline: check webdav share-permissions for received group shared file with reshare permissions but no edit permissions
Given using <dav-path> DAV path
And group "grp1" has been created
And user "Brian" has been added to group "grp1"
@@ -140,7 +143,7 @@ Feature: sharing
| new |
Scenario Outline: Correct webdav share-permissions for owned folder
Scenario Outline: check webdav share-permissions for owned folder
Given using <dav-path> DAV path
And user "Alice" has created folder "/tmp"
When user "Alice" gets the following properties of folder "/" using the WebDAV API
@@ -159,7 +162,7 @@ Feature: sharing
| spaces |
Scenario Outline: Correct webdav share-permissions for received folder with all permissions
Scenario Outline: check webdav share-permissions for received folder with all permissions
Given using <dav-path> DAV path
And user "Alice" has created folder "/tmp"
And user "Alice" has shared file "/tmp" with user "Brian"
@@ -175,7 +178,7 @@ Feature: sharing
| new |
Scenario Outline: Correct webdav share-permissions for received group shared folder with all permissions
Scenario Outline: check webdav share-permissions for received group shared folder with all permissions
Given using <dav-path> DAV path
And group "grp1" has been created
And user "Brian" has been added to group "grp1"
@@ -196,7 +199,7 @@ Feature: sharing
| new |
@issue-2213
Scenario Outline: Correct webdav share-permissions for received folder with all permissions but edit
Scenario Outline: check webdav share-permissions for received folder with all permissions but edit
Given using <dav-path> DAV path
And user "Alice" has created folder "/tmp"
And user "Alice" has shared file "/tmp" with user "Brian"
@@ -211,7 +214,7 @@ Feature: sharing
| new |
Scenario Outline: Correct webdav share-permissions for received group shared folder with all permissions but edit
Scenario Outline: check webdav share-permissions for received group shared folder with all permissions but edit
Given using <dav-path> DAV path
And group "grp1" has been created
And user "Brian" has been added to group "grp1"
@@ -233,7 +236,7 @@ Feature: sharing
| new |
Scenario Outline: Correct webdav share-permissions for received folder with all permissions but create
Scenario Outline: check webdav share-permissions for received folder with all permissions but create
Given using <dav-path> DAV path
And user "Alice" has created folder "/tmp"
And user "Alice" has shared file "/tmp" with user "Brian"
@@ -248,7 +251,7 @@ Feature: sharing
| new |
Scenario Outline: Correct webdav share-permissions for received group shared folder with all permissions but create
Scenario Outline: check webdav share-permissions for received group shared folder with all permissions but create
Given using <dav-path> DAV path
And group "grp1" has been created
And user "Brian" has been added to group "grp1"
@@ -270,7 +273,7 @@ Feature: sharing
| new |
Scenario Outline: Correct webdav share-permissions for received folder with all permissions but delete
Scenario Outline: check webdav share-permissions for received folder with all permissions but delete
Given using <dav-path> DAV path
And user "Alice" has created folder "/tmp"
And user "Alice" has shared file "/tmp" with user "Brian"
@@ -285,7 +288,7 @@ Feature: sharing
| new |
Scenario Outline: Correct webdav share-permissions for received group shared folder with all permissions but delete
Scenario Outline: check webdav share-permissions for received group shared folder with all permissions but delete
Given using <dav-path> DAV path
And group "grp1" has been created
And user "Brian" has been added to group "grp1"
@@ -307,7 +310,7 @@ Feature: sharing
| new |
Scenario Outline: Correct webdav share-permissions for received folder with all permissions but share
Scenario Outline: check webdav share-permissions for received folder with all permissions but share
Given using <dav-path> DAV path
And user "Alice" has created folder "/tmp"
And user "Alice" has shared file "/tmp" with user "Brian"
@@ -322,7 +325,7 @@ Feature: sharing
| new |
Scenario Outline: Correct webdav share-permissions for received group shared folder with all permissions but share
Scenario Outline: check webdav share-permissions for received group shared folder with all permissions but share
Given using <dav-path> DAV path
And group "grp1" has been created
And user "Brian" has been added to group "grp1"
@@ -1,5 +1,8 @@
@api
Feature: share access by ID
As an API consumer (app)
I want to access a share by its id
So that the app can more easily manage shares
Background:
Given these users have been created with default attributes and without skeleton files:
@@ -8,7 +11,7 @@ Feature: share access by ID
| Brian |
Scenario Outline: Get a share with a valid share ID
Scenario Outline: get a share with a valid share ID
Given using OCS API version "<ocs_api_version>"
And user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt"
When user "Alice" shares file "textfile0.txt" with user "Brian" using the sharing API
@@ -35,7 +38,7 @@ Feature: share access by ID
| 2 | 200 |
Scenario Outline: Get a share with an invalid share id
Scenario Outline: get a share with an invalid share id
Given using OCS API version "<ocs_api_version>"
When user "Alice" gets share with id "<share_id>" using the sharing API
Then the OCS status code should be "404"
@@ -1,11 +1,14 @@
@api
Feature: sharing
As a user
I want to upload resources to a folder shared to me
So that other people can access the resource
Background:
Given user "Alice" has been created with default attributes and without skeleton files
Scenario: Uploading file to a user read-only share folder does not work
Scenario: uploading file to a user read-only share folder does not work
Given user "Brian" has been created with default attributes and without skeleton files
And user "Alice" has created folder "FOLDER"
And user "Alice" has created a share with settings
@@ -19,7 +22,7 @@ Feature: sharing
And as "Alice" file "/FOLDER/textfile.txt" should not exist
Scenario Outline: Uploading file to a group read-only share folder does not work
Scenario Outline: uploading file to a group read-only share folder does not work
Given using <dav-path> DAV path
And user "Brian" has been created with default attributes and without skeleton files
And group "grp1" has been created
@@ -40,7 +43,7 @@ Feature: sharing
| new |
Scenario Outline: Uploading file to a user upload-only share folder works
Scenario Outline: uploading file to a user upload-only share folder works
Given using <dav-path> DAV path
And user "Brian" has been created with default attributes and without skeleton files
And user "Alice" has created folder "FOLDER"
@@ -66,7 +69,7 @@ Feature: sharing
| new |
Scenario Outline: Uploading file to a group upload-only share folder works
Scenario Outline: uploading file to a group upload-only share folder works
Given using <dav-path> DAV path
And user "Brian" has been created with default attributes and without skeleton files
And group "grp1" has been created
@@ -94,7 +97,7 @@ Feature: sharing
| new |
@smokeTest
Scenario Outline: Uploading file to a user read/write share folder works
Scenario Outline: uploading file to a user read/write share folder works
Given using <dav-path> DAV path
And user "Brian" has been created with default attributes and without skeleton files
And user "Alice" has created folder "FOLDER"
@@ -118,7 +121,7 @@ Feature: sharing
| new |
Scenario Outline: Uploading file to a group read/write share folder works
Scenario Outline: uploading file to a group read/write share folder works
Given using <dav-path> DAV path
And user "Brian" has been created with default attributes and without skeleton files
And group "grp1" has been created
@@ -144,7 +147,7 @@ Feature: sharing
| new |
@smokeTest @skipOnGraph
Scenario Outline: Check quota of owners parent directory of a shared file
Scenario Outline: check quota of owners parent directory of a shared file
Given using <dav-path> DAV path
And user "Brian" has been created with default attributes and without skeleton files
And the quota of user "Brian" has been set to "0"
@@ -167,7 +170,7 @@ Feature: sharing
| new |
@skipOnGraph
Scenario Outline: Uploading to a user shared folder with read/write permission when the sharer has insufficient quota does not work
Scenario Outline: uploading to a user shared folder with read/write permission when the sharer has insufficient quota does not work
Given using <dav-path> DAV path
And user "Brian" has been created with default attributes and small skeleton files
And user "Alice" has created folder "FOLDER"
@@ -187,7 +190,7 @@ Feature: sharing
| new |
Scenario Outline: Uploading to a group shared folder with read/write permission when the sharer has insufficient quota does not work
Scenario Outline: uploading to a group shared folder with read/write permission when the sharer has insufficient quota does not work
Given using <dav-path> DAV path
And user "Brian" has been created with default attributes and without skeleton files
And group "grp1" has been created
@@ -209,7 +212,7 @@ Feature: sharing
| new |
@skipOnGraph
Scenario Outline: Uploading to a user shared folder with upload-only permission when the sharer has insufficient quota does not work
Scenario Outline: uploading to a user shared folder with upload-only permission when the sharer has insufficient quota does not work
Given using <dav-path> DAV path
And user "Brian" has been created with default attributes and without skeleton files
And user "Alice" has created folder "FOLDER"
@@ -229,7 +232,7 @@ Feature: sharing
| new |
@skipOnGraph
Scenario Outline: Uploading to a group shared folder with upload-only permission when the sharer has insufficient quota does not work
Scenario Outline: uploading to a group shared folder with upload-only permission when the sharer has insufficient quota does not work
Given using <dav-path> DAV path
And user "Brian" has been created with default attributes and without skeleton files
And group "grp1" has been created
@@ -251,7 +254,7 @@ Feature: sharing
| new |
Scenario Outline: Sharer can download file uploaded with different permission by sharee to a shared folder
Scenario Outline: sharer can download file uploaded with different permission by sharee to a shared folder
Given using <dav-path> DAV path
And user "Brian" has been created with default attributes and without skeleton files
And user "Alice" has created folder "FOLDER"