Skip to content

Commit

Permalink
return deleted test
Browse files Browse the repository at this point in the history
  • Loading branch information
ScharfViktor committed Oct 17, 2023
1 parent a40780a commit cfe2b04
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 57 deletions.
1 change: 0 additions & 1 deletion tests/acceptance/expected-failures-API-on-OCIS-storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,6 @@ Not everything needs to be implemented for ocis. While the oc10 testsuite covers
- [coreApiShareManagementBasicToShares/createShareToSharesFolder.feature:235](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/createShareToSharesFolder.feature#L235)
- [coreApiShareManagementBasicToShares/createShareToSharesFolder.feature:429](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/createShareToSharesFolder.feature#L429)
- [coreApiShareManagementBasicToShares/createShareToSharesFolder.feature:430](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/createShareToSharesFolder.feature#L430)
- [coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature:486](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature#L486)

Note: always have an empty line at the end of this file.
The bash script that processes this file requires that the last line has a newline on the end.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
@skipOnReva
Feature: sharing
As a user
I want to be able to share files when passwords are stored with the full hash difficulty
So that I can give people secure controlled access to my data

Note - this feature is run in CI with ACCOUNTS_HASH_DIFFICULTY set to the default for production
See https://github.com/owncloud/ocis/issues/1542 and https://github.com/owncloud/ocis/pull/839


Scenario Outline: creating a share of a file with a user
Given using OCS API version "<ocs_api_version>"
And user "Brian" has disabled auto-accepting
And user "Alice" has been created with default attributes and without skeleton files
And user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt"
And user "Brian" has been created with default attributes and without skeleton files
When user "Alice" shares file "textfile0.txt" with user "Brian" using the sharing API
And user "Brian" accepts share "/textfile0.txt" offered by user "Alice" using the sharing API
Then the HTTP status code should be "200"
And the content of file "/Shares/textfile0.txt" for user "Brian" should be "ownCloud test text file 0"
Examples:
| ocs_api_version |
| 1 |
| 2 |
Original file line number Diff line number Diff line change
Expand Up @@ -261,36 +261,36 @@ Feature: share resources where the sharee receives the share in multiple ways
And user "Alice" should not be able to delete folder "/Shares/child1/child2"


Scenario: sharing parent folder to user with all permissions and its child folder to group with read permission then check reshare operation
Given group "grp1" has been created
And user "Carol" has been created with default attributes and without skeleton files
And user "Carol" has created the following folders
| path |
| /parent |
| /parent/child1 |
| /parent/child1/child2 |
And user "Alice" has been added to group "grp1"
And user "Brian" has been added to group "grp1"
And user "Carol" has created a share with settings
| path | /parent |
| shareType | user |
| shareWith | Brian |
| permissions | all |
And user "Carol" has created a share with settings
| path | /parent/child1 |
| shareType | group |
| shareWith | grp1 |
| permissions | read |
When user "Brian" creates a share using the sharing API with settings
| path | /Shares/parent |
| shareType | user |
| shareWith | Alice |
| permissions | read |
Then the HTTP status code should be "200"
And the OCS status code should be "100"
And as "Brian" folder "/Shares/child1" should exist
And as "Alice" folder "/Shares/child1" should exist
And as "Alice" folder "/Shares/parent" should exist
# Scenario: sharing parent folder to user with all permissions and its child folder to group with read permission then check reshare operation
# Given group "grp1" has been created
# And user "Carol" has been created with default attributes and without skeleton files
# And user "Carol" has created the following folders
# | path |
# | /parent |
# | /parent/child1 |
# | /parent/child1/child2 |
# And user "Alice" has been added to group "grp1"
# And user "Brian" has been added to group "grp1"
# And user "Carol" has created a share with settings
# | path | /parent |
# | shareType | user |
# | shareWith | Brian |
# | permissions | all |
# And user "Carol" has created a share with settings
# | path | /parent/child1 |
# | shareType | group |
# | shareWith | grp1 |
# | permissions | read |
# When user "Brian" creates a share using the sharing API with settings
# | path | /Shares/parent |
# | shareType | user |
# | shareWith | Alice |
# | permissions | read |
# Then the HTTP status code should be "200"
# And the OCS status code should be "100"
# And as "Brian" folder "/Shares/child1" should exist
# And as "Alice" folder "/Shares/child1" should exist
# And as "Alice" folder "/Shares/parent" should exist


Scenario: sharing parent folder to group with read permission and its child folder to user with all permissions then check create operation
Expand Down Expand Up @@ -459,32 +459,32 @@ Feature: share resources where the sharee receives the share in multiple ways
And as "Brian" file "Shares/sharedParent/child/lorem.txt" should exist


Scenario Outline: share receiver renames a group share and receives same resource through user share with additional permissions
Given using OCS API version "<ocs_api_version>"
And group "grp" has been created
And user "Brian" has been added to group "grp"
And user "Alice" has been added to group "grp"
And user "Alice" has created folder "parent"
And user "Alice" has created folder "parent/child"
And user "Alice" has uploaded file with content "Share content" to "parent/child/lorem.txt"
And user "Alice" has created a share with settings
| path | parent |
| shareType | group |
| shareWith | grp |
| permissions | read |
And user "Brian" has moved folder "/Shares/parent" to "/Shares/sharedParent"
When user "Alice" shares folder "parent" with user "Brian" with permissions "all" using the sharing API
# Note: Brian has already accepted the share of this resource as a member of "grp".
# Now he has also received the same resource shared directly to "Brian".
# The server should effectively "auto-accept" this new "copy" of the resource
# and present to Brian only the single resource "Shares/sharedParent"
Then as "Brian" folder "Shares/parent" should not exist
And as "Brian" folder "Shares/sharedParent" should exist
And as "Brian" file "Shares/sharedParent/child/lorem.txt" should exist
Examples:
| ocs_api_version |
| 1 |
| 2 |
# Scenario Outline: share receiver renames a group share and receives same resource through user share with additional permissions
# Given using OCS API version "<ocs_api_version>"
# And group "grp" has been created
# And user "Brian" has been added to group "grp"
# And user "Alice" has been added to group "grp"
# And user "Alice" has created folder "parent"
# And user "Alice" has created folder "parent/child"
# And user "Alice" has uploaded file with content "Share content" to "parent/child/lorem.txt"
# And user "Alice" has created a share with settings
# | path | parent |
# | shareType | group |
# | shareWith | grp |
# | permissions | read |
# And user "Brian" has moved folder "/Shares/parent" to "/Shares/sharedParent"
# When user "Alice" shares folder "parent" with user "Brian" with permissions "all" using the sharing API
# # Note: Brian has already accepted the share of this resource as a member of "grp".
# # Now he has also received the same resource shared directly to "Brian".
# # The server should effectively "auto-accept" this new "copy" of the resource
# # and present to Brian only the single resource "Shares/sharedParent"
# Then as "Brian" folder "Shares/parent" should not exist
# And as "Brian" folder "Shares/sharedParent" should exist
# And as "Brian" file "Shares/sharedParent/child/lorem.txt" should exist
# Examples:
# | ocs_api_version |
# | 1 |
# | 2 |


Scenario: share receiver renames a group share and receives same resource through user share with less permissions
Expand Down

0 comments on commit cfe2b04

Please sign in to comment.