mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-12-05 05:43:36 -05:00
* tests: remove unused tags from the acceptance tests Remove the tags that neither the CI of opencloud nor the one of reva filters on, and that no hook uses: @smokeTest, @skipOnStorage:ceph, @skipOnStorage:scality, @skipOnOpencloud-decomposeds3-Storage (the CI only runs posix and decomposed), @sqliteDB, @notification and @skip-local-run. A tag line left empty becomes an empty line, so that the line numbers of the scenarios, which the expected failures of opencloud and reva refer to, stay the same. Also fix the typo @@skipOnReva, and write the issue tags the same way: @issues-<n> becomes @issue-<n>, @web-issue-<n> becomes @issue-web-<n>. Assisted-by: Claude Code:claude-opus-5-5 * tests: run the search properties scenarios as expected failures The two scenarios that check the properties of search results were skipped, since the search REPORT returns an empty d:getetag (#3501) and the step retried the whole check for 20 seconds, which made them too slow as expected failures. - retry the search only until the entry is indexed, then check its properties once: once found, the entry is complete, so a wrong value fails right away - check what the search returns: d:getcontentlength for files, the real size of 12 bytes, a file id of the form <uuid>$<uuid>!<uuid>, anchored patterns, and no oc:owner-id and oc:owner-display-name, which the search response never contains - list them as expected failures of #3501 instead of skipping them Without the d:getetag check, both scenarios pass. Assisted-by: Claude Code:claude-opus-5-5 * lint fix
51 lines
3.0 KiB
Gherkin
51 lines
3.0 KiB
Gherkin
@env-config @skipOnOpencloud-decomposed-Storage
|
|
Feature: posixfs consistency CLI command
|
|
As an administrator
|
|
I want to check and repair the consistency of the posix filesystem metadata
|
|
So that files with broken metadata (name, blobsize, parent id, ...) get fixed
|
|
|
|
# WATCH_FS=false so the watcher does not re-assimilate the corrupted metadata before the command runs
|
|
Background:
|
|
Given the config "STORAGE_USERS_POSIX_WATCH_FS" has been set to "false"
|
|
And user "Alice" has been created with default attributes
|
|
|
|
|
|
Scenario: consistency fixes a corrupted name attribute
|
|
Given user "Alice" has uploaded file with content "content" to "textfile.txt"
|
|
When the administrator sets the extended attribute "user.oc.name" of file "textfile.txt" of user "Alice" to "corrupted.txt" on the POSIX filesystem
|
|
Then the command should be successful
|
|
When the administrator gets the extended attribute "user.oc.name" of file "textfile.txt" of user "Alice" on the POSIX filesystem
|
|
Then the command output should contain "corrupted.txt"
|
|
When the administrator checks the posixfs consistency using the CLI
|
|
Then the command should be successful
|
|
And the command output should contain "Fixed name attribute"
|
|
When the administrator gets the extended attribute "user.oc.name" of file "textfile.txt" of user "Alice" on the POSIX filesystem
|
|
Then the command output should contain "textfile.txt"
|
|
And the command output should not contain "corrupted.txt"
|
|
|
|
|
|
Scenario: consistency fixes a corrupted blobsize attribute
|
|
Given user "Alice" has uploaded file with content "content" to "textfile.txt"
|
|
When the administrator sets the extended attribute "user.oc.blobsize" of file "textfile.txt" of user "Alice" to "0" on the POSIX filesystem
|
|
Then the command should be successful
|
|
When the administrator checks the posixfs consistency using the CLI
|
|
Then the command should be successful
|
|
And the command output should contain "Fixed blobsize"
|
|
When the administrator gets the extended attribute "user.oc.blobsize" of file "textfile.txt" of user "Alice" on the POSIX filesystem
|
|
Then the command output should contain "7"
|
|
|
|
|
|
Scenario: consistency fixes corrupted checksums only with the --fix-checksums flag
|
|
Given user "Alice" has uploaded file with content "content" to "textfile.txt"
|
|
When the administrator sets the extended attribute "user.oc.cs.sha1" of file "textfile.txt" of user "Alice" to "corrupted" on the POSIX filesystem
|
|
Then the command should be successful
|
|
When the administrator checks the posixfs consistency using the CLI
|
|
Then the command should be successful
|
|
And the command output should not contain "Fixed checksum"
|
|
When the administrator checks the posixfs consistency using the CLI with flag "--fix-checksums"
|
|
Then the command should be successful
|
|
And the command output should contain "Fixed checksum"
|
|
When the administrator checks the posixfs consistency using the CLI with flag "--fix-checksums"
|
|
Then the command should be successful
|
|
And the command output should not contain "Fixed checksum"
|