[tests-only][full-ci] Add tests for checking the end of expiration date (#5819)
* Add tests to check the end of an expiration date * fix style * fix style * enable group share test * skip group share test on ocis
This commit is contained in:
@@ -146,3 +146,30 @@ Feature: Share a file or folder that is inside a space
|
||||
Then the HTTP status code should be "200"
|
||||
And the information about the last share for user "Brian" should include
|
||||
| expiration | |
|
||||
|
||||
|
||||
Scenario: check the end of expiration date in user share
|
||||
Given user "Alice" has created a share inside of space "share sub-item" with settings:
|
||||
| path | folder |
|
||||
| shareWith | Brian |
|
||||
| role | viewer |
|
||||
| expireDate | 2042-01-01T23:59:59+0100 |
|
||||
And user "Brian" has accepted share "/folder" offered by user "Alice"
|
||||
When user "Alice" expires the last share
|
||||
Then the HTTP status code should be "200"
|
||||
Then as "Brian" folder "Shares/folder" should not exist
|
||||
|
||||
@issue-5823 @skip
|
||||
Scenario: check the end of expiration date in group share
|
||||
Given group "sales" has been created
|
||||
And the administrator has added a user "Brian" to the group "sales" using GraphApi
|
||||
And user "Alice" has created a share inside of space "share sub-item" with settings:
|
||||
| path | folder |
|
||||
| shareWith | sales |
|
||||
| shareType | 1 |
|
||||
| role | viewer |
|
||||
| expireDate | 2042-01-01T23:59:59+0100 |
|
||||
And user "Brian" has accepted share "/folder" offered by user "Alice"
|
||||
When user "Alice" expires the last share
|
||||
Then the HTTP status code should be "200"
|
||||
Then as "Brian" folder "Shares/folder" should not exist
|
||||
|
||||
Reference in New Issue
Block a user