[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:
Sabin Panta
2023-06-30 12:22:42 +05:45
committed by GitHub
parent f0d99683f0
commit 9b4244b086
7 changed files with 67 additions and 55 deletions
@@ -14,11 +14,11 @@ Feature: shares are received in the default folder for received shares
And user "Alice" has created folder "FOLDER"
When user "Alice" shares folder "/FOLDER" with user "Brian" using the sharing API
And user "Brian" accepts share "/FOLDER" offered by user "Alice" using the sharing API
And user "Brian" unshares folder "Shares/FOLDER" using the WebDAV API
And user "Brian" declines share "/Shares/FOLDER" offered by user "Alice" using the sharing API
And user "Brian" shares folder "/Shares" with user "Alice" using the sharing API
Then the OCS status code of responses on each endpoint should be "<ocs_status_code>" respectively
And the HTTP status code of responses on each endpoint should be "<http_status_code>" respectively
Examples:
| ocs_api_version | ocs_status_code | http_status_code |
| 1 | 100, 100, 400 | 200, 200, 204, 200 |
| 2 | 200, 200, 400 | 200, 200, 204, 400 |
| ocs_api_version | ocs_status_code | http_status_code |
| 1 | 100, 100, 100, 400 | 200, 200, 200, 200 |
| 2 | 200, 200, 200, 400 | 200, 200, 200, 400 |