From bc5aabe75cc7f0ac8dfb882ff9c109f465da3b29 Mon Sep 17 00:00:00 2001 From: swoichha Date: Tue, 22 Dec 2020 15:53:55 +0545 Subject: [PATCH] added creating user Brian step in background --- .../uploadToShare.feature | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/tests/acceptance/features/apiShareOperationsToShares/uploadToShare.feature b/tests/acceptance/features/apiShareOperationsToShares/uploadToShare.feature index 52fe55cd25ed..b6cee31e8575 100644 --- a/tests/acceptance/features/apiShareOperationsToShares/uploadToShare.feature +++ b/tests/acceptance/features/apiShareOperationsToShares/uploadToShare.feature @@ -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 | @@ -22,7 +22,6 @@ Feature: sharing Scenario Outline: Uploading file to a group read-only share folder does not work Given using 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 @@ -42,7 +41,6 @@ Feature: sharing Scenario Outline: Uploading file to a user upload-only share folder works Given using 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 | @@ -67,7 +65,6 @@ Feature: sharing Scenario Outline: Uploading file to a group upload-only share folder works Given using 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 @@ -94,7 +91,6 @@ Feature: sharing @smokeTest Scenario Outline: Uploading file to a user read/write share folder works Given using 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 | @@ -117,7 +113,6 @@ Feature: sharing Scenario Outline: Uploading file to a group read/write share folder works Given using 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 @@ -142,7 +137,6 @@ Feature: sharing @smokeTest Scenario Outline: Check quota of owners parent directory of a shared file Given using 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" @@ -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 - 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 | @@ -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 - 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 @@ -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 - 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 | @@ -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 - 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 @@ -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 | @@ -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 - 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 | @@ -272,7 +260,7 @@ 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 | @@ -280,7 +268,6 @@ Feature: sharing Scenario Outline: Sharer can download file uploaded with upload-only permission by sharee to a shared folder Given using 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 |