0
0
Fork 0
mirror of https://github.com/nextcloud/server.git synced 2025-04-28 19:13:08 +00:00
nextcloud_server/build/integration/files_features/metadata.feature
Louis Chemineau c2f2f21673
feat: Support deleting metadata from WebDAV
The `$value` will be `null` if the update is wrapped inside a `<d:remove>...</d:remove>` block.

Signed-off-by: Louis Chemineau <louis@chmn.me>
2025-03-04 12:34:11 +01:00

16 lines
906 B
Gherkin

# SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-only
Feature: metadata
Scenario: Setting metadata works
Given user "user0" exists
When User "user0" uploads file with content "AAA" to "/test.txt"
And User "user0" sets the "metadata-files-live-photo" prop with value "metadata-value" on "/test.txt"
Then User "user0" should see the prop "metadata-files-live-photo" equal to "metadata-value" for file "/test.txt"
Scenario: Deleting metadata works
Given user "user0" exists
When User "user0" uploads file with content "AAA" to "/test.txt"
And User "user0" sets the "metadata-files-live-photo" prop with value "metadata-value" on "/test.txt"
And User "user0" deletes the "metadata-files-live-photo" prop on "/test.txt"
Then User "user0" should not see the prop "metadata-files-live-photo" for file "/test.txt"