Skip to content

Commit

Permalink
added creating user Brian step in background
Browse files Browse the repository at this point in the history
  • Loading branch information
swoichha committed Dec 22, 2020
1 parent c444159 commit bc5aabe
Showing 1 changed file with 3 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ Feature: sharing
Given the administrator has set the default folder for received shares to "Shares"
And auto-accept shares has been disabled
And user "Alice" has been created with default attributes and skeleton files
And user "Brian" has been created with default attributes and skeleton files


Scenario: Uploading file to a user read-only share folder does not work
Given user "Brian" has been created with default attributes and skeleton files
And user "Alice" has created a share with settings
Given user "Alice" has created a share with settings
| path | FOLDER |
| shareType | user |
| permissions | read |
Expand All @@ -22,7 +22,6 @@ Feature: sharing

Scenario Outline: Uploading file to a group read-only share folder does not work
Given using <dav-path> DAV path
Given user "Brian" has been created with default attributes and skeleton files
And group "grp1" has been created
And user "Brian" has been added to group "grp1"
And user "Alice" has created a share with settings
Expand All @@ -42,7 +41,6 @@ Feature: sharing

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 skeleton files
And user "Alice" has created a share with settings
| path | FOLDER |
| shareType | user |
Expand All @@ -67,7 +65,6 @@ Feature: sharing

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 skeleton files
And group "grp1" has been created
And user "Brian" has been added to group "grp1"
And user "Alice" has created a share with settings
Expand All @@ -94,7 +91,6 @@ Feature: sharing
@smokeTest
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 skeleton files
And user "Alice" has created a share with settings
| path | FOLDER |
| shareType | user |
Expand All @@ -117,7 +113,6 @@ Feature: sharing

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 skeleton files
And group "grp1" has been created
And user "Brian" has been added to group "grp1"
And user "Alice" has created a share with settings
Expand All @@ -142,7 +137,6 @@ Feature: sharing
@smokeTest
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 skeleton files
And the quota of user "Brian" has been set to "0"
And user "Alice" has moved file "/welcome.txt" to "/myfile.txt"
And user "Alice" has shared file "myfile.txt" with user "Brian"
Expand All @@ -165,7 +159,6 @@ Feature: sharing

Scenario Outline: Uploading to a user shared folder with read/write permission when the sharer has unsufficient quota does not work
Given using <dav-path> DAV path
And user "Brian" has been created with default attributes and skeleton files
And user "Alice" has created a share with settings
| path | FOLDER |
| shareType | user |
Expand All @@ -184,7 +177,6 @@ Feature: sharing

Scenario Outline: Uploading to a group shared folder with read/write permission when the sharer has unsufficient quota does not work
Given using <dav-path> DAV path
And user "Brian" has been created with default attributes and skeleton files
And group "grp1" has been created
And user "Brian" has been added to group "grp1"
And user "Alice" has created a share with settings
Expand All @@ -205,7 +197,6 @@ Feature: sharing

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 skeleton files
And user "Alice" has created a share with settings
| path | FOLDER |
| shareType | user |
Expand All @@ -224,7 +215,6 @@ Feature: sharing

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 skeleton files
And group "grp1" has been created
And user "Brian" has been added to group "grp1"
And user "Alice" has created a share with settings
Expand All @@ -245,7 +235,6 @@ Feature: sharing

Scenario: Uploading a file in to a shared folder without edit permissions
Given using new DAV path
And user "Brian" has been created with default attributes and skeleton files
And user "Alice" creates folder "/READ_ONLY" using the WebDAV API
And user "Alice" has created a share with settings
| path | /READ_ONLY |
Expand All @@ -262,7 +251,6 @@ Feature: sharing

Scenario Outline: Sharer can download file uploaded with read/write 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 a share with settings
| path | FOLDER |
| shareType | user |
Expand All @@ -272,15 +260,14 @@ Feature: sharing
And user "Brian" has uploaded file with content "some content" to "/Shares/FOLDER/textFile.txt"
When user "Alice" downloads file "/FOLDER/textFile.txt" using the WebDAV API
Then the HTTP status code should be "200"
And the downloaded content should be "ownCloud test text file 0"
And the downloaded content should be "some content"
Examples:
| dav-path |
| old |
| new |

Scenario Outline: Sharer can download file uploaded with upload-only 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 a share with settings
| path | FOLDER |
| shareType | user |
Expand Down

0 comments on commit bc5aabe

Please sign in to comment.