mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-23 20:49:13 -05:00
[full-ci] ApiTests. enable auto accepting in api tests (#7477)
* enable auto accepting in test * go format
This commit is contained in:
@@ -15,7 +15,6 @@ Feature: sharing
|
||||
Scenario: correct webdav share-permissions for received file with edit and reshare permissions
|
||||
Given user "Alice" has uploaded file with content "foo" to "/tmp.txt"
|
||||
And user "Alice" has shared file "/tmp.txt" with user "Brian"
|
||||
And user "Brian" has accepted share "/tmp.txt" offered by user "Alice"
|
||||
When user "Brian" gets the following properties of file "/tmp.txt" inside space "Shares" using the WebDAV API
|
||||
| propertyName |
|
||||
| ocs:share-permissions |
|
||||
@@ -32,7 +31,6 @@ Feature: sharing
|
||||
| shareType | group |
|
||||
| permissions | share,update,read |
|
||||
| shareWith | grp1 |
|
||||
And user "Brian" has accepted share "/tmp.txt" offered by user "Alice"
|
||||
When user "Brian" gets the following properties of file "/tmp.txt" inside space "Shares" using the WebDAV API
|
||||
| propertyName |
|
||||
| ocs:share-permissions |
|
||||
@@ -43,7 +41,6 @@ Feature: sharing
|
||||
Scenario: correct webdav share-permissions for received file with edit permissions but no reshare permissions
|
||||
Given user "Alice" has uploaded file with content "foo" to "/tmp.txt"
|
||||
And user "Alice" has shared file "tmp.txt" with user "Brian"
|
||||
And user "Brian" has accepted share "/tmp.txt" offered by user "Alice"
|
||||
When user "Alice" updates the last share using the sharing API with
|
||||
| permissions | update,read |
|
||||
Then the HTTP status code should be "200"
|
||||
@@ -59,7 +56,6 @@ Feature: sharing
|
||||
| shareType | group |
|
||||
| permissions | update,read |
|
||||
| shareWith | grp1 |
|
||||
And user "Brian" has accepted share "/tmp.txt" offered by user "Alice"
|
||||
When user "Brian" gets the following properties of file "/tmp.txt" inside space "Shares" using the WebDAV API
|
||||
| propertyName |
|
||||
| ocs:share-permissions |
|
||||
@@ -70,7 +66,6 @@ Feature: sharing
|
||||
Scenario: correct webdav share-permissions for received file with reshare permissions but no edit permissions
|
||||
Given user "Alice" has uploaded file with content "foo" to "/tmp.txt"
|
||||
And user "Alice" has shared file "tmp.txt" with user "Brian"
|
||||
And user "Brian" has accepted share "/tmp.txt" offered by user "Alice"
|
||||
When user "Alice" updates the last share using the sharing API with
|
||||
| permissions | share,read |
|
||||
Then the HTTP status code should be "200"
|
||||
@@ -86,7 +81,6 @@ Feature: sharing
|
||||
| shareType | group |
|
||||
| permissions | share,read |
|
||||
| shareWith | grp1 |
|
||||
And user "Brian" has accepted share "/tmp.txt" offered by user "Alice"
|
||||
When user "Brian" gets the following properties of file "/tmp.txt" inside space "Shares" using the WebDAV API
|
||||
| propertyName |
|
||||
| ocs:share-permissions |
|
||||
@@ -97,7 +91,6 @@ Feature: sharing
|
||||
Scenario: correct webdav share-permissions for received folder with all permissions
|
||||
Given user "Alice" has created folder "/tmp"
|
||||
And user "Alice" has shared file "/tmp" with user "Brian"
|
||||
And user "Brian" has accepted share "/tmp" offered by user "Alice"
|
||||
When user "Brian" gets the following properties of folder "/tmp" inside space "Shares" using the WebDAV API
|
||||
| propertyName |
|
||||
| ocs:share-permissions |
|
||||
@@ -113,7 +106,6 @@ Feature: sharing
|
||||
| path | tmp |
|
||||
| shareType | group |
|
||||
| shareWith | grp1 |
|
||||
And user "Brian" has accepted share "/tmp" offered by user "Alice"
|
||||
When user "Brian" gets the following properties of folder "/tmp" inside space "Shares" using the WebDAV API
|
||||
| propertyName |
|
||||
| ocs:share-permissions |
|
||||
@@ -124,7 +116,6 @@ Feature: sharing
|
||||
Scenario: correct webdav share-permissions for received folder with all permissions but edit
|
||||
Given user "Alice" has created folder "/tmp"
|
||||
And user "Alice" has shared file "/tmp" with user "Brian"
|
||||
And user "Brian" has accepted share "/tmp" offered by user "Alice"
|
||||
When user "Alice" updates the last share using the sharing API with
|
||||
| permissions | share,delete,create,read |
|
||||
Then the HTTP status code should be "200"
|
||||
@@ -140,7 +131,6 @@ Feature: sharing
|
||||
| shareType | group |
|
||||
| shareWith | grp1 |
|
||||
| permissions | share,delete,create,read |
|
||||
And user "Brian" has accepted share "/tmp" offered by user "Alice"
|
||||
When user "Brian" gets the following properties of folder "/tmp" inside space "Shares" using the WebDAV API
|
||||
| propertyName |
|
||||
| ocs:share-permissions |
|
||||
@@ -151,7 +141,6 @@ Feature: sharing
|
||||
Scenario: correct webdav share-permissions for received folder with all permissions but create
|
||||
Given user "Alice" has created folder "/tmp"
|
||||
And user "Alice" has shared file "/tmp" with user "Brian"
|
||||
And user "Brian" has accepted share "/tmp" offered by user "Alice"
|
||||
When user "Alice" updates the last share using the sharing API with
|
||||
| permissions | share,delete,update,read |
|
||||
Then the HTTP status code should be "200"
|
||||
@@ -167,7 +156,6 @@ Feature: sharing
|
||||
| shareType | group |
|
||||
| shareWith | grp1 |
|
||||
| permissions | share,delete,update,read |
|
||||
And user "Brian" has accepted share "/tmp" offered by user "Alice"
|
||||
When user "Brian" gets the following properties of folder "/tmp" inside space "Shares" using the WebDAV API
|
||||
| propertyName |
|
||||
| ocs:share-permissions |
|
||||
@@ -178,7 +166,6 @@ Feature: sharing
|
||||
Scenario: correct webdav share-permissions for received folder with all permissions but delete
|
||||
Given user "Alice" has created folder "/tmp"
|
||||
And user "Alice" has shared file "/tmp" with user "Brian"
|
||||
And user "Brian" has accepted share "/tmp" offered by user "Alice"
|
||||
When user "Alice" updates the last share using the sharing API with
|
||||
| permissions | share,create,update,read |
|
||||
Then the HTTP status code should be "200"
|
||||
@@ -194,7 +181,6 @@ Feature: sharing
|
||||
| shareType | group |
|
||||
| shareWith | grp1 |
|
||||
| permissions | share,create,update,read |
|
||||
And user "Brian" has accepted share "/tmp" offered by user "Alice"
|
||||
When user "Brian" gets the following properties of folder "/tmp" inside space "Shares" using the WebDAV API
|
||||
| propertyName |
|
||||
| ocs:share-permissions |
|
||||
@@ -205,7 +191,6 @@ Feature: sharing
|
||||
Scenario: correct webdav share-permissions for received folder with all permissions but share
|
||||
Given user "Alice" has created folder "/tmp"
|
||||
And user "Alice" has shared file "/tmp" with user "Brian"
|
||||
And user "Brian" has accepted share "/tmp" offered by user "Alice"
|
||||
When user "Alice" updates the last share using the sharing API with
|
||||
| permissions | change |
|
||||
Then the HTTP status code should be "200"
|
||||
@@ -221,7 +206,6 @@ Feature: sharing
|
||||
| shareType | group |
|
||||
| shareWith | grp1 |
|
||||
| permissions | change |
|
||||
And user "Brian" has accepted share "/tmp" offered by user "Alice"
|
||||
When user "Brian" gets the following properties of folder "/tmp" inside space "Shares" using the WebDAV API
|
||||
| propertyName |
|
||||
| ocs:share-permissions |
|
||||
@@ -238,7 +222,6 @@ Feature: sharing
|
||||
| shareType | group |
|
||||
| permissions | read |
|
||||
| shareWith | grp1 |
|
||||
And user "Brian" has accepted share "/FOLDER" offered by user "Alice"
|
||||
When user "Brian" uploads a file inside space "Shares" with content "new description" to "/FOLDER/textfile.txt" using the WebDAV API
|
||||
Then the HTTP status code should be "403"
|
||||
And as "Alice" file "/FOLDER/textfile.txt" should not exist
|
||||
@@ -251,7 +234,6 @@ Feature: sharing
|
||||
| shareType | user |
|
||||
| permissions | create |
|
||||
| shareWith | Brian |
|
||||
And user "Brian" has accepted share "/FOLDER" offered by user "Alice"
|
||||
When user "Brian" uploads a file inside space "Shares" with content "new description" to "/FOLDER/textfile.txt" using the WebDAV API
|
||||
Then the HTTP status code should be "201"
|
||||
And the following headers should match these regular expressions for user "Brian"
|
||||
@@ -271,7 +253,6 @@ Feature: sharing
|
||||
| shareType | group |
|
||||
| permissions | create |
|
||||
| shareWith | grp1 |
|
||||
And user "Brian" has accepted share "/FOLDER" offered by user "Alice"
|
||||
When user "Brian" uploads a file inside space "Shares" with content "new description" to "/FOLDER/textfile.txt" using the WebDAV API
|
||||
Then the HTTP status code should be "201"
|
||||
And the following headers should match these regular expressions for user "Brian"
|
||||
@@ -289,7 +270,6 @@ Feature: sharing
|
||||
| shareType | user |
|
||||
| permissions | change |
|
||||
| shareWith | Brian |
|
||||
And user "Brian" has accepted share "/FOLDER" offered by user "Alice"
|
||||
When user "Brian" uploads a file inside space "Shares" with content "new description" to "/FOLDER/textfile.txt" using the WebDAV API
|
||||
Then the HTTP status code should be "201"
|
||||
And the content of file "/FOLDER/textfile.txt" for user "Alice" should be:
|
||||
@@ -307,7 +287,6 @@ Feature: sharing
|
||||
| shareType | group |
|
||||
| permissions | change |
|
||||
| shareWith | grp1 |
|
||||
And user "Brian" has accepted share "/FOLDER" offered by user "Alice"
|
||||
When user "Brian" uploads a file inside space "Shares" with content "new description" to "/FOLDER/textfile.txt" using the WebDAV API
|
||||
Then the HTTP status code should be "201"
|
||||
And the content of file "/FOLDER/textfile.txt" for user "Alice" should be:
|
||||
@@ -323,7 +302,6 @@ Feature: sharing
|
||||
| shareType | user |
|
||||
| permissions | change |
|
||||
| shareWith | Brian |
|
||||
And user "Brian" has accepted share "/FOLDER" offered by user "Alice"
|
||||
And user "Admin" has changed the quota of the personal space of "Alice Hansen" space to "1"
|
||||
When user "Brian" uploads a file inside space "Shares" with content "new description" to "/FOLDER/textfile.txt" using the WebDAV API
|
||||
Then the HTTP status code should be "507"
|
||||
@@ -337,7 +315,6 @@ Feature: sharing
|
||||
| shareType | user |
|
||||
| permissions | create |
|
||||
| shareWith | Brian |
|
||||
And user "Brian" has accepted share "/FOLDER" offered by user "Alice"
|
||||
And user "Admin" has changed the quota of the personal space of "Alice Hansen" space to "1"
|
||||
When user "Brian" uploads a file inside space "Shares" with content "new description" to "/FOLDER/textfile.txt" using the WebDAV API
|
||||
Then the HTTP status code should be "507"
|
||||
@@ -353,7 +330,6 @@ Feature: sharing
|
||||
| shareType | group |
|
||||
| permissions | create |
|
||||
| shareWith | grp1 |
|
||||
And user "Brian" has accepted share "/FOLDER" offered by user "Alice"
|
||||
And user "Admin" has changed the quota of the personal space of "Alice Hansen" space to "10"
|
||||
When user "Brian" uploads a file inside space "Shares" with content "new descriptionfgshsywhhh" to "/FOLDER/textfile.txt" using the WebDAV API
|
||||
Then the HTTP status code should be "507"
|
||||
@@ -367,7 +343,6 @@ Feature: sharing
|
||||
| shareType | user |
|
||||
| permissions | <permissions> |
|
||||
| shareWith | Brian |
|
||||
And user "Brian" has accepted share "/FOLDER" offered by user "Alice"
|
||||
When user "Brian" uploads a file inside space "Shares" with content "some content" to "/FOLDER/textfile.txt" using the WebDAV API
|
||||
And user "Alice" downloads file "/FOLDER/textfile.txt" using the WebDAV API
|
||||
Then the HTTP status code should be "200"
|
||||
|
||||
Reference in New Issue
Block a user