-
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.
Merge pull request #9578 from owncloud/backup-consistency-cli-test
[tests-only][full-ci]adding test for backup consistency cli command
- Loading branch information
Showing
4 changed files
with
59 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
26 changes: 26 additions & 0 deletions
26
tests/acceptance/features/cliCommands/backupConsistency.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,26 @@ | ||
@env-config | ||
Feature: backup consistency | ||
As a user | ||
I want to check my data for inconsistencies | ||
So that I can backup my data | ||
|
||
|
||
Scenario: check backup consistency via CLI command | ||
Given these users have been created with default attributes and without skeleton files: | ||
| username | | ||
| Alice | | ||
| Brian | | ||
| Carol | | ||
And user "Alice" has created folder "/uploadFolder" | ||
And user "Carol" has created folder "/uploadFolder" | ||
And user "Alice" has sent the following resource share invitation: | ||
| resource | uploadFolder | | ||
| space | Personal | | ||
| sharee | Brian | | ||
| shareType | user | | ||
| permissionsRole | Editor | | ||
And user "Carol" has deleted file "/uploadFolder" | ||
And the administrator has stopped the server | ||
When the administrator checks the backup consistency using the CLI | ||
Then the command should be successful | ||
And the command output should contain "💚 No inconsistency found. The backup in '%storage_path%' seems to be valid." |