mirror of
https://github.com/nextcloud/server.git
synced 2026-10-13 00:51:06 +02:00
30 lines
1.8 KiB
Gherkin
30 lines
1.8 KiB
Gherkin
# SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
Feature: calendar delegation
|
|
Calendar delegation grants another user/principal control of a calendar account,
|
|
including all calendars the delegator can access.
|
|
|
|
@caldav-delegation
|
|
Scenario: admin grants user0 read access to her calendar account
|
|
Given user "admin" exists
|
|
And user "user0" exists
|
|
When "admin" updates property "{DAV:}group-member-set" to href "/remote.php/dav/principals/users/user0" of principal "users/admin/calendar-proxy-read" on the endpoint "/remote.php/dav/principals/"
|
|
Then The CalDAV response should be multi status
|
|
And The CalDAV response should contain an href "/remote.php/dav/principals/users/admin/calendar-proxy-read"
|
|
And The CalDAV response should contain a property "{DAV:}group-member-set"
|
|
|
|
@caldav-delegation
|
|
Scenario: admin grants write access to her calendar account
|
|
Given user "admin" exists
|
|
And user "user0" exists
|
|
When "admin" updates property "{DAV:}group-member-set" to href "/remote.php/dav/principals/users/user0" of principal "users/admin/calendar-proxy-write" on the endpoint "/remote.php/dav/principals/"
|
|
Then The CalDAV response should be multi status
|
|
And The CalDAV response should contain an href "/remote.php/dav/principals/users/admin/calendar-proxy-write"
|
|
And The CalDAV response should contain a property "{DAV:}group-member-set"
|
|
|
|
Scenario: Admin cannot grant User1 access to User0's calendar account
|
|
Given user "admin" exists
|
|
And user "user0" exists
|
|
And user "user1" exists
|
|
When "admin" updates property "{DAV:}group-member-set" to href "/remote.php/dav/principals/users/user1" of principal "users/user0/calendar-proxy-write" on the endpoint "/remote.php/dav/principals/"
|
|
Then The CalDAV HTTP status code should be "404" |