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
39 lines
1.6 KiB
Gherkin
39 lines
1.6 KiB
Gherkin
@skipOnReva
|
|
Feature: resources shared with the same name are received with unique names
|
|
As a user
|
|
I want to share resources with same name
|
|
So that I can make sure the naming is handled properly by the server
|
|
|
|
Background:
|
|
Given using OCS API version "1"
|
|
And these users have been created with default attributes:
|
|
| username |
|
|
| Alice |
|
|
| Brian |
|
|
| Carol |
|
|
|
|
@issue-2131
|
|
Scenario: unique target names for incoming shares
|
|
Given user "Alice" has created folder "/foo"
|
|
And user "Brian" has created folder "/foo"
|
|
When user "Alice" shares folder "/foo" with user "Carol" using the sharing API
|
|
And user "Brian" shares folder "/foo" with user "Carol" using the sharing API
|
|
Then the OCS status code of responses on all endpoints should be "100"
|
|
And the HTTP status code of responses on all endpoints should be "200"
|
|
And user "Carol" should see the following elements
|
|
| Shares/foo |
|
|
| /Shares/foo (1) |
|
|
|
|
@issue-2131
|
|
Scenario: unique target names for incoming shares when auto-accepting is disabled
|
|
Given user "Brian" has disabled auto-accepting
|
|
And user "Alice" has created folder "/foo"
|
|
And user "Brian" has created folder "/foo"
|
|
When user "Alice" shares folder "/foo" with user "Carol" using the sharing API
|
|
And user "Brian" shares folder "/foo" with user "Carol" using the sharing API
|
|
Then the OCS status code of responses on all endpoints should be "100"
|
|
And the HTTP status code of responses on all endpoints should be "200"
|
|
And user "Carol" should see the following elements
|
|
| Shares/foo |
|
|
| /Shares/foo (1) |
|