2016-02-29 19:30:02 +03:00
|
|
|
Feature: caldav
|
|
|
|
Scenario: Accessing a not existing calendar of another user
|
|
|
|
Given user "user0" exists
|
2017-02-10 16:01:26 +03:00
|
|
|
When "admin" requests calendar "user0/MyCalendar" on the endpoint "/remote.php/dav/calendars/"
|
2016-02-29 19:30:02 +03:00
|
|
|
Then The CalDAV HTTP status code should be "404"
|
|
|
|
And The exception is "Sabre\DAV\Exception\NotFound"
|
|
|
|
And The error message is "Node with name 'MyCalendar' could not be found"
|
|
|
|
|
2017-02-10 16:01:26 +03:00
|
|
|
Scenario: Accessing a not shared calendar of another user
|
|
|
|
Given user "user0" exists
|
|
|
|
Given "admin" creates a calendar named "MyCalendar"
|
|
|
|
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 "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 via the legacy endpoint
|
|
|
|
Given user "user0" exists
|
|
|
|
Given "admin" creates a calendar named "MyCalendar"
|
|
|
|
Given The CalDAV HTTP status code should be "201"
|
|
|
|
When "user0" requests calendar "admin/MyCalendar" on the endpoint "/remote.php/caldav/calendars/"
|
|
|
|
Then The CalDAV HTTP status code should be "404"
|
|
|
|
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
|
|
|
|
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 "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
|
|
|
|
When "user0" requests calendar "admin/MyCalendar" on the endpoint "/remote.php/caldav/calendars/"
|
|
|
|
Then The CalDAV HTTP status code should be "404"
|
|
|
|
And The exception is "Sabre\DAV\Exception\NotFound"
|
|
|
|
And The error message is "Node with name 'MyCalendar' could not be found"
|
2016-02-29 19:30:02 +03:00
|
|
|
|
|
|
|
Scenario: Accessing a not existing calendar of myself
|
|
|
|
Given user "user0" exists
|
2017-02-10 16:01:26 +03:00
|
|
|
When "user0" requests calendar "admin/MyCalendar" on the endpoint "/remote.php/dav/calendars/"
|
2016-02-29 19:30:02 +03:00
|
|
|
Then The CalDAV HTTP status code should be "404"
|
|
|
|
And The exception is "Sabre\DAV\Exception\NotFound"
|
|
|
|
And The error message is "Node with name 'MyCalendar' could not be found"
|
|
|
|
|
2017-02-10 16:01:26 +03:00
|
|
|
Scenario: Creating a new calendar
|
|
|
|
When "admin" creates a calendar named "MyCalendar"
|
|
|
|
Then The CalDAV HTTP status code should be "201"
|
|
|
|
And "admin" requests calendar "admin/MyCalendar" on the endpoint "/remote.php/dav/calendars/"
|
|
|
|
Then The CalDAV HTTP status code should be "207"
|