carddav.feature 1.3 KB

123456789101112131415161718192021222324
  1. Feature: carddav
  2. Scenario: Accessing a not existing addressbook of another user
  3. Given user "user0" exists
  4. When "admin" requests addressbook "user0/MyAddressbook" with statuscode "404"
  5. And The CardDAV exception is "Sabre\DAV\Exception\NotFound"
  6. And The CardDAV error message is "Addressbook with name 'MyAddressbook' could not be found"
  7. Scenario: Accessing a not shared addressbook of another user
  8. Given user "user0" exists
  9. Given "admin" creates an addressbook named "MyAddressbook" with statuscode "201"
  10. When "user0" requests addressbook "admin/MyAddressbook" with statuscode "404"
  11. And The CardDAV exception is "Sabre\DAV\Exception\NotFound"
  12. And The CardDAV error message is "Addressbook with name 'MyAddressbook' could not be found"
  13. Scenario: Accessing a not existing addressbook of myself
  14. Given user "user0" exists
  15. When "user0" requests addressbook "admin/MyAddressbook" with statuscode "404"
  16. And The CardDAV exception is "Sabre\DAV\Exception\NotFound"
  17. And The CardDAV error message is "Addressbook with name 'MyAddressbook' could not be found"
  18. Scenario: Creating a new addressbook
  19. When "admin" creates an addressbook named "MyAddressbook" with statuscode "201"
  20. Then "admin" requests addressbook "admin/MyAddressbook" with statuscode "200"