2024-07-10 14:31:37 +05:45
@env-config
Feature: backup consistency
2025-08-11 12:55:07 +05:45
As an administrator
2024-07-10 14:31:37 +05:45
I want to check my data for inconsistencies
So that I can backup my data
2024-10-16 12:13:33 +05:45
Background:
2024-11-29 09:39:21 +05:45
Given user " Alice " has been created with default attributes
2024-10-16 12:13:33 +05:45
2024-07-10 14:31:37 +05:45
Scenario: check backup consistency via CLI command
2024-11-29 09:39:21 +05:45
Given these users have been created with default attributes:
2024-07-10 14:31:37 +05:45
| username |
| 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
2024-10-16 12:13:33 +05:45
And the command output should contain " 💚 No inconsistency found. The backup in '%storage_path%' seems to be valid. "
@issue-9498
Scenario: check backup consistency after uploading file multiple times via TUS
Given user " Alice " uploads a file " filesForUpload/textfile.txt " to " /today.txt " with mtime " today " via TUS inside of the space " Personal " using the WebDAV API
And user " Alice " uploads a file " filesForUpload/textfile.txt " to " /today.txt " with mtime " today " via TUS inside of the space " Personal " using the WebDAV API
And user " Alice " uploads a file " filesForUpload/textfile.txt " to " /today.txt " with mtime " today " via TUS inside of the space " Personal " using the WebDAV API
2026-01-22 10:51:06 +01:00
# Wait for postprocessing to complete before stopping server to avoid race condition where
# backup consistency check finds metadata referencing blobs that haven't been finalized yet
And the administrator waits for " 2 " seconds
2024-10-16 12:13:33 +05:45
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. "
And the administrator has started the server
When user " Alice " gets the number of versions of file " today.txt "
Then the HTTP status code should be " 207 "
And the number of versions should be " 1 "
@issue-9498
Scenario: check backup consistency after uploading a file multiple times
Given user " Alice " has uploaded file with content " hello world " to " /textfile0.txt "
And user " Alice " has uploaded file with content " hello world " to " /textfile0.txt "
And user " Alice " has uploaded file with content " hello world " to " /textfile0.txt "
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. "
And the administrator has started the server
When user " Alice " gets the number of versions of file " /textfile0.txt "
Then the HTTP status code should be " 207 "
2025-01-23 15:24:59 +05:45
And the number of versions should be " 2 "