[tests-only] [full-ci] Refactoring unshare step definition code (#6608)
* added unshare scenerio * remove unshare keyword from step definition * refactoring of step definition codes * refactor
This commit is contained in:
+17
-3
@@ -74,7 +74,7 @@ Feature: sharing
|
||||
And as "Alice" file "/shared_file.txt" should exist in the trashbin
|
||||
And as "Brian" file "/shared_file.txt" should exist in the trashbin
|
||||
|
||||
|
||||
|
||||
Scenario: deleting a folder out of a share as recipient creates a backup for the owner
|
||||
Given using OCS API version "1"
|
||||
And user "Alice" has created folder "/shared"
|
||||
@@ -106,8 +106,8 @@ Feature: sharing
|
||||
And user "Carol" has stored etag of element "/PARENT"
|
||||
And user "Brian" has stored etag of element "/"
|
||||
And user "Brian" has stored etag of element "/Shares"
|
||||
When user "Brian" unshares file "/Shares/parent.txt" using the WebDAV API
|
||||
Then the HTTP status code should be "204"
|
||||
When user "Brian" declines share "/Shares/parent.txt" offered by user "Carol" using the sharing API
|
||||
Then the HTTP status code should be "200"
|
||||
And the etag of element "/" of user "Brian" should have changed
|
||||
And the etag of element "/Shares" of user "Brian" should have changed
|
||||
And the etag of element "/PARENT" of user "Carol" should not have changed
|
||||
@@ -226,3 +226,17 @@ Feature: sharing
|
||||
| ocs_api_version | ocs_status_code | http_status_code |
|
||||
| 1 | 404 | 200 |
|
||||
| 2 | 404 | 404 |
|
||||
|
||||
|
||||
Scenario Outline: unshare a shared resources
|
||||
Given using OCS API version "<ocs_api_version>"
|
||||
And user "Alice" has shared file "textfile0.txt" with user "Brian"
|
||||
And user "Brian" has accepted share "/textfile0.txt" offered by user "Alice"
|
||||
When user "Alice" unshares file "textfile0.txt" shared to "Brian"
|
||||
Then the OCS status code should be "<ocs_status_code>"
|
||||
And the HTTP status code should be "<http_status_code>"
|
||||
And as "Brian" file "/Shares/textfile0.txt" should not exist
|
||||
Examples:
|
||||
| ocs_api_version | ocs_status_code | http_status_code |
|
||||
| 1 | 100 | 200 |
|
||||
| 2 | 200 | 200 |
|
||||
|
||||
Reference in New Issue
Block a user