aboutsummaryrefslogtreecommitdiffstats
path: root/build/integration/dav_features/caldav.feature
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2024-10-30 12:25:26 +0100
committerDaniel Kesselberg <mail@danielkesselberg.de>2024-11-22 11:55:25 +0100
commit6b383faf418dc7d748197cf30c65e5220dfd2def (patch)
tree2a35d18fbd7ed4e7b41a60913c8c97542426a2db /build/integration/dav_features/caldav.feature
parent3c3b7f9edab8b87183d2d41fa9500f4cbb403484 (diff)
downloadnextcloud-server-6b383faf418dc7d748197cf30c65e5220dfd2def.tar.gz
nextcloud-server-6b383faf418dc7d748197cf30c65e5220dfd2def.zip
Revert "fix(dav): Always respond custom error page on exceptions"
This reverts commit 9992e7d4395a773fec7148cf5b4111f894cb40b7. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'build/integration/dav_features/caldav.feature')
-rw-r--r--build/integration/dav_features/caldav.feature18
1 files changed, 12 insertions, 6 deletions
diff --git a/build/integration/dav_features/caldav.feature b/build/integration/dav_features/caldav.feature
index aa1e3f6bde8..031685b580d 100644
--- a/build/integration/dav_features/caldav.feature
+++ b/build/integration/dav_features/caldav.feature
@@ -5,7 +5,8 @@ Feature: caldav
Given user "user0" exists
When "admin" requests calendar "user0/MyCalendar" on the endpoint "/remote.php/dav/calendars/"
Then The CalDAV HTTP status code should be "404"
- And The exception is "Internal Server Error"
+ And The exception is "Sabre\DAV\Exception\NotFound"
+ And The error message is "Node with name 'MyCalendar' could not be found"
Scenario: Accessing a not shared calendar of another user
Given user "user0" exists
@@ -13,7 +14,8 @@ Feature: caldav
Given The CalDAV HTTP status code should be "201"
When "user0" requests calendar "admin/MyCalendar" on the endpoint "/remote.php/dav/calendars/"
Then The CalDAV HTTP status code should be "404"
- And The exception is "Internal Server Error"
+ And The exception is "Sabre\DAV\Exception\NotFound"
+ And The error message is "Calendar with name 'MyCalendar' could not be found"
Scenario: Accessing a not shared calendar of another user via the legacy endpoint
Given user "user0" exists
@@ -28,7 +30,8 @@ Feature: caldav
Given user "user0" exists
When "user0" requests calendar "admin/MyCalendar" on the endpoint "/remote.php/dav/calendars/"
Then The CalDAV HTTP status code should be "404"
- And The exception is "Internal Server Error"
+ And The exception is "Sabre\DAV\Exception\NotFound"
+ And The error message is "Node with name 'MyCalendar' could not be found"
Scenario: Accessing a not existing calendar of another user via the legacy endpoint
Given user "user0" exists
@@ -41,7 +44,8 @@ Feature: caldav
Given user "user0" exists
When "user0" requests calendar "admin/MyCalendar" on the endpoint "/remote.php/dav/calendars/"
Then The CalDAV HTTP status code should be "404"
- And The exception is "Internal Server Error"
+ And The exception is "Sabre\DAV\Exception\NotFound"
+ And The error message is "Node with name 'MyCalendar' could not be found"
Scenario: Creating a new calendar
When "admin" creates a calendar named "MyCalendar"
@@ -62,7 +66,8 @@ Feature: caldav
Given user "user0" exists
When "user0" sends a create calendar request to "admin/MyCalendar2" on the endpoint "/remote.php/dav/calendars/"
Then The CalDAV HTTP status code should be "404"
- And The exception is "Internal Server Error"
+ And The exception is "Sabre\DAV\Exception\NotFound"
+ And The error message is "Node with name 'admin' could not be found"
Scenario: Create calendar request for existing calendar of another user
Given user "user0" exists
@@ -70,7 +75,8 @@ Feature: caldav
Then The CalDAV HTTP status code should be "201"
When "user0" sends a create calendar request to "admin/MyCalendar2" on the endpoint "/remote.php/dav/calendars/"
Then The CalDAV HTTP status code should be "404"
- And The exception is "Internal Server Error"
+ And The exception is "Sabre\DAV\Exception\NotFound"
+ And The error message is "Node with name 'admin' could not be found"
Scenario: Update a principal's schedule-default-calendar-URL
Given user "user0" exists