summaryrefslogtreecommitdiffstats
path: root/build/integration/features/carddav.feature
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2016-02-29 17:30:02 +0100
committerLukas Reschke <lukas@owncloud.com>2016-02-29 20:53:38 +0100
commitd04edfaf0dee3c2f1b4347a4ed36a79477d4a3f9 (patch)
tree0b2e653611b941193f012901a535fccd754feb25 /build/integration/features/carddav.feature
parent52d217d77519ed95a18237b09a351f83a0ae7f47 (diff)
downloadnextcloud-server-d04edfaf0dee3c2f1b4347a4ed36a79477d4a3f9.tar.gz
nextcloud-server-d04edfaf0dee3c2f1b4347a4ed36a79477d4a3f9.zip
Hides nodes from listing that the user has no access to
Diffstat (limited to 'build/integration/features/carddav.feature')
-rw-r--r--build/integration/features/carddav.feature23
1 files changed, 23 insertions, 0 deletions
diff --git a/build/integration/features/carddav.feature b/build/integration/features/carddav.feature
new file mode 100644
index 00000000000..ee9d877085d
--- /dev/null
+++ b/build/integration/features/carddav.feature
@@ -0,0 +1,23 @@
+Feature: carddav
+ Scenario: Accessing a not existing addressbook of another user
+ Given user "user0" exists
+ When "admin" requests addressbook "user0/MyAddressbook" with statuscode "404"
+ And The CardDAV exception is "Sabre\DAV\Exception\NotFound"
+ And The CardDAV error message is "Addressbook with name 'MyAddressbook' could not be found"
+
+ Scenario: Accessing a not shared addressbook of another user
+ Given user "user0" exists
+ Given "admin" creates an addressbook named "MyAddressbook" with statuscode "201"
+ When "user0" requests addressbook "admin/MyAddressbook" with statuscode "404"
+ And The CardDAV exception is "Sabre\DAV\Exception\NotFound"
+ And The CardDAV error message is "Addressbook with name 'MyAddressbook' could not be found"
+
+ Scenario: Accessing a not existing addressbook of myself
+ Given user "user0" exists
+ When "user0" requests addressbook "admin/MyAddressbook" with statuscode "404"
+ And The CardDAV exception is "Sabre\DAV\Exception\NotFound"
+ And The CardDAV error message is "Addressbook with name 'MyAddressbook' could not be found"
+
+ Scenario: Creating a new addressbook
+ When "admin" creates an addressbook named "MyAddressbook" with statuscode "201"
+ Then "admin" requests addressbook "admin/MyAddressbook" with statuscode "200"