mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-11-28 11:07:09 -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
37 lines
1.3 KiB
Gherkin
37 lines
1.3 KiB
Gherkin
Feature: refuse access
|
|
As an administrator
|
|
I want to refuse access to unauthenticated and disabled users
|
|
So that I can secure the system
|
|
|
|
Background:
|
|
Given using OCS API version "1"
|
|
|
|
@issue-2285
|
|
Scenario Outline: unauthenticated call
|
|
# cannot perform with spaces WebDAV due to the absence of user
|
|
Given using <dav-path-version> DAV path
|
|
When an unauthenticated client connects to the DAV endpoint using the WebDAV API
|
|
Then the HTTP status code should be "401"
|
|
And there should be no duplicate headers
|
|
And the following headers should be set
|
|
| header | value |
|
|
| WWW-Authenticate | Basic realm="%productname%", charset="UTF-8" |
|
|
Examples:
|
|
| dav-path-version |
|
|
| old |
|
|
| new |
|
|
|
|
@issue-2285
|
|
Scenario Outline: disabled user cannot use webdav
|
|
Given using <dav-path-version> DAV path
|
|
And user "Alice" has been created with default attributes
|
|
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "textfile0.txt"
|
|
And user "Alice" has been disabled
|
|
When user "Alice" downloads file "/textfile0.txt" using the WebDAV API
|
|
Then the HTTP status code should be "401"
|
|
Examples:
|
|
| dav-path-version |
|
|
| old |
|
|
| new |
|
|
| spaces |
|