Merge pull request #9578 from owncloud/backup-consistency-cli-test

[tests-only][full-ci]adding test for backup consistency cli command
This commit is contained in:
Sawjan Gurung
2024-07-11 15:25:52 +05:45
committed by GitHub
4 changed files with 59 additions and 0 deletions
@@ -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."