mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-03-03 19:39:19 -06:00
test: wait and check for sync status before action
This commit is contained in:
@@ -20,6 +20,7 @@ Feature: enable or disable sync of incoming shares
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
And user "Brian" has a share "<resource>" synced
|
||||
When user "Brian" disables sync of share "<resource>" using the Graph API
|
||||
Then the HTTP status code should be "204"
|
||||
When user "Brian" lists the shares shared with him using the Graph API
|
||||
@@ -141,6 +142,7 @@ Feature: enable or disable sync of incoming shares
|
||||
| sharee | grp1 |
|
||||
| shareType | group |
|
||||
| permissionsRole | Viewer |
|
||||
And user "Alice" has a share "<resource>" synced
|
||||
When user "Alice" disables sync of share "<resource>" using the Graph API
|
||||
Then the HTTP status code should be "204"
|
||||
And user "Alice" should have sync disabled for share "<resource>"
|
||||
@@ -196,6 +198,7 @@ Feature: enable or disable sync of incoming shares
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
And user "Brian" has a share "<resource>" synced
|
||||
When user "Brian" disables sync of share "<resource>" using the Graph API
|
||||
Then the HTTP status code should be "204"
|
||||
When user "Brian" lists the shares shared with him using the Graph API
|
||||
@@ -289,6 +292,7 @@ Feature: enable or disable sync of incoming shares
|
||||
| sharee | grp1 |
|
||||
| shareType | group |
|
||||
| permissionsRole | Viewer |
|
||||
And user "Alice" has a share "<resource>" synced
|
||||
When user "Alice" disables sync of share "<resource>" using the Graph API
|
||||
Then the HTTP status code should be "204"
|
||||
And user "Alice" should have sync disabled for share "<resource>"
|
||||
@@ -766,6 +770,7 @@ Feature: enable or disable sync of incoming shares
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
And user "Brian" has a share "<resource>" synced
|
||||
When user "Brian" enables sync of share "<resource>" offered by "Alice" from "Personal" space using the Graph API
|
||||
Then the HTTP status code should be "409"
|
||||
And the JSON data of the response should match
|
||||
@@ -867,6 +872,7 @@ Feature: enable or disable sync of incoming shares
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
And user "Brian" has a share "<resource>" synced
|
||||
When user "Brian" enables sync of share "<resource>" offered by "Alice" from "NewSpace" space using the Graph API
|
||||
Then the HTTP status code should be "409"
|
||||
And the JSON data of the response should match
|
||||
|
||||
@@ -192,6 +192,7 @@ Feature: copying file using file id
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Editor |
|
||||
And user "Brian" has a share "folder" synced
|
||||
When user "Brian" copies a file "Shares/folder/sub-folder/test.txt" into "Shares/folder" inside space "Shares" using file-id path "<dav-path>"
|
||||
Then the HTTP status code should be "201"
|
||||
And for user "Brian" folder "folder" of the space "Shares" should contain these files:
|
||||
@@ -219,6 +220,7 @@ Feature: copying file using file id
|
||||
| permissionsRole | Editor |
|
||||
And user "Brian" has uploaded file with content "some data" to "/test.txt"
|
||||
And we save it into "FILEID"
|
||||
And user "Brian" has a share "folder" synced
|
||||
When user "Brian" copies a file "/test.txt" into "Shares/folder" inside space "Shares" using file-id path "<dav-path>"
|
||||
Then the HTTP status code should be "201"
|
||||
And for user "Brian" folder "folder" of the space "Shares" should contain these files:
|
||||
@@ -244,6 +246,7 @@ Feature: copying file using file id
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Editor |
|
||||
And user "Brian" has a share "folder" synced
|
||||
When user "Brian" copies a file "/test.txt" into "/" inside space "Personal" using file-id path "<dav-path>"
|
||||
Then the HTTP status code should be "201"
|
||||
And for user "Brian" folder "folder" of the space "Shares" should contain these files:
|
||||
|
||||
Reference in New Issue
Block a user