-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cli test for delete empty trash bin directory
- Loading branch information
Showing
4 changed files
with
61 additions
and
0 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
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
24 changes: 24 additions & 0 deletions
24
tests/acceptance/features/cliCommands/cleanupEmptyTrashBin.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,24 @@ | ||
@env-config | ||
Feature: delete empty trash bin folder via CLI command | ||
|
||
|
||
Scenario: delete empty trashbin folders | ||
Given the user "Admin" has created a new user with the following attributes: | ||
| userName | Alice | | ||
| displayName | Alice Hansen | | ||
| password | %alt1% | | ||
And user "Alice" has created the following folders | ||
| path | | ||
| folder-to-delete | | ||
| folder-to-restore | | ||
And user "Alice" has uploaded file with content "test file" to "testfile.txt" | ||
And user "Alice" has deleted the following resources | ||
| path | | ||
| folder-to-delete | | ||
| folder-to-restore | | ||
| testfile.txt | | ||
And user "Alice" has restored the folder with original path "folder-to-restore" | ||
And user "Alice" has deleted the folder with original path "folder-to-delete" from the trashbin using the trashbin API | ||
And the administrator has stopped the server | ||
When the administrator deletes the empty trashbin folders using the CLI | ||
Then the command should be successful |