-
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.
add test to remove versions using CLI command
Signed-off-by: prashant-gurung899 <[email protected]>
- Loading branch information
1 parent
8e9ccf0
commit b0ffe5b
Showing
3 changed files
with
32 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
16 changes: 16 additions & 0 deletions
16
tests/acceptance/features/cliCommands/removeVersions.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,16 @@ | ||
@env-config | ||
Feature: remove versions via CLI command | ||
|
||
|
||
Scenario: remove old versions of resources in storage | ||
Given user "Alice" has been created with default attributes and without skeleton files | ||
And user "Alice" has uploaded file with content "This is version 1" to "textfile.txt" | ||
And user "Alice" has uploaded file with content "This is version 2" to "textfile.txt" | ||
And user "Alice" has uploaded file with content "This is version 3" to "textfile.txt" | ||
And the administrator has stopped the server | ||
When the administrator removes all the file versions using the CLI | ||
Then the command should be successful | ||
And the command output should contain "✅ Deleted 2 revisions (6 files / 2 blobs)" | ||
When user "Alice" gets the number of versions of file "textfile.txt" | ||
Then the HTTP status code should be "207" | ||
And the number of versions should be "0" |