Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tests-only][full-ci] Improve Then step in apiShareReshareToShares2 suite #39963

Merged
merged 1 commit into from
Apr 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ Feature: resharing can be done on a reshared resource
And user "Carol" has shared file "/Shares/textfile0_shared.txt" with user "David"
And user "David" has accepted share "<pending_share_path>" offered by user "Carol"
When user "Brian" deletes file "/textfile0_shared.txt" using the WebDAV API
Then the content of file "/Shares/textfile0_shared.txt" for user "Carol" should be "ownCloud test text file 0"
Then the HTTP status code should be "204"
And the content of file "/Shares/textfile0_shared.txt" for user "Carol" should be "ownCloud test text file 0"
And the content of file "/Shares/textfile0_shared.txt" for user "David" should be "ownCloud test text file 0"
@skipOnOcV10.6 @skipOnOcV10.7 @skipOnOcV10.8.0
Examples:
Expand All @@ -47,5 +48,6 @@ Feature: resharing can be done on a reshared resource
And user "Carol" has shared file "/Shares/textfile0.txt" with user "David"
And user "David" has accepted share "/textfile0.txt" offered by user "Carol"
When user "Brian" deletes file "/Shares/textfile0.txt" using the WebDAV API
Then the content of file "/Shares/textfile0.txt" for user "Carol" should be "ownCloud test text file 0"
Then the HTTP status code should be "204"
And the content of file "/Shares/textfile0.txt" for user "Carol" should be "ownCloud test text file 0"
And the content of file "/Shares/textfile0.txt" for user "David" should be "ownCloud test text file 0"
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ Feature: resharing can be disabled
When user "Alice" shares file "/textfile0.txt" with user "Brian" with permissions "share,update,read" using the sharing API
Then the OCS status code should be "<ocs_status_code>"
And the HTTP status code should be "200"
When user "Brian" accepts share "/textfile0.txt" offered by user "Alice" using the sharing API
Then the OCS status code should be "<ocs_status_code>"
And the HTTP status code should be "200"
And user "Brian" should be able to accept pending share "/textfile0.txt" offered by user "Alice"
And as "Brian" file "/Shares/textfile0.txt" should exist
Examples:
| ocs_api_version | ocs_status_code |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ Feature: a subfolder of a received share can be reshared
When user "Brian" shares folder "/Shares/TMP/SUB" with user "Carol" with permissions "share,read" using the sharing API
Then the OCS status code should be "<ocs_status_code>"
And the HTTP status code should be "200"
When user "Carol" accepts share "<pending_sub_share_path>" offered by user "Brian" using the sharing API
Then the OCS status code should be "<ocs_status_code>"
And the HTTP status code should be "200"
And user "Carol" should be able to accept pending share "<pending_sub_share_path>" offered by user "Brian"
And as "Carol" folder "/Shares/SUB" should exist
And as "Brian" folder "/Shares/TMP/SUB" should exist
@skipOnOcV10.6 @skipOnOcV10.7 @skipOnOcV10.8.0
Expand Down