-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds cli test for cleaning the orphaned remote storage
- Loading branch information
1 parent
5de055c
commit 44db268
Showing
3 changed files
with
83 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
tests/acceptance/features/cliExternalStorage/Sharing.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
@cli @api @federation-app-required @files_sharing-app-required | ||
Feature: | ||
As a admin | ||
I want to cleanup orphaned remote storages | ||
So that users will not get undesirable failure | ||
|
||
Background: | ||
Given using server "REMOTE" | ||
And user "Alice" has been created with default attributes and without skeleton files | ||
And using server "LOCAL" | ||
And user "Brian" has been created with default attributes and without skeleton files | ||
|
||
Scenario Outline: Clean up the orphaned remote storage after deleting the original shares | ||
Given using OCS API version "<ocs-api-version>" | ||
And using server "REMOTE" | ||
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "textfile0.txt" | ||
And user "Alice" from server "REMOTE" has shared "/textfile0.txt" with user "Brian" from server "LOCAL" | ||
And user "Brian" from server "LOCAL" has accepted the last pending share | ||
And user "Alice" has deleted the last share | ||
And using server "LOCAL" | ||
When the administrator cleanups all the orphaned remote storages of shares | ||
Then 1 orphaned remote storage should have been cleared | ||
|
||
Examples: | ||
| ocs-api-version | | ||
| 1 | | ||
| 2 | |