summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-03-11 14:15:09 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2016-03-11 14:15:09 +0100
commit722188e5030bbce6a00a455115db516d08e4e54d (patch)
tree89e01a1d10aac94b0a940c10682370f798f650b8 /build
parentaad8aa0970f0593c213e7ed2baf924878b135393 (diff)
downloadnextcloud-server-722188e5030bbce6a00a455115db516d08e4e54d.tar.gz
nextcloud-server-722188e5030bbce6a00a455115db516d08e4e54d.zip
Add integration tests for the "anti user iteration"
Diffstat (limited to 'build')
-rw-r--r--build/integration/features/sharees.feature54
1 files changed, 54 insertions, 0 deletions
diff --git a/build/integration/features/sharees.feature b/build/integration/features/sharees.feature
index ea3a2c9bcea..35a80e72062 100644
--- a/build/integration/features/sharees.feature
+++ b/build/integration/features/sharees.feature
@@ -40,6 +40,60 @@ Feature: sharees
And "exact remotes" sharees returned is empty
And "remotes" sharees returned is empty
+# TODO need to move the appconfig setting from Capabilities to Basic/Provisioning
+# Scenario: Search without exact match no iteration allowed
+# Given user "test" exists
+# And user "Sharee1" exists
+# And group "ShareeGroup" exists
+# And As an "test"
+# When getting sharees for
+# | search | Sharee |
+# | itemType | file |
+# Then the OCS status code should be "100"
+# And the HTTP status code should be "200"
+# And "exact users" sharees returned is empty
+# And "users" sharees returned is empty
+# And "exact groups" sharees returned is empty
+# And "groups" sharees returned is empty
+# And "exact remotes" sharees returned is empty
+# And "remotes" sharees returned is empty
+#
+# Scenario: Search with exact match no iteration allowed
+# Given user "test" exists
+# And user "Sharee1" exists
+# And group "ShareeGroup" exists
+# And As an "test"
+# When getting sharees for
+# | search | Sharee1 |
+# | itemType | file |
+# Then the OCS status code should be "100"
+# And the HTTP status code should be "200"
+# And "exact users" sharees returned are
+# | Sharee1 | 0 | Sharee1 |
+# And "users" sharees returned is empty
+# And "exact groups" sharees returned is empty
+# And "groups" sharees returned is empty
+# And "exact remotes" sharees returned is empty
+# And "remotes" sharees returned is empty
+#
+# Scenario: Search with exact match group no iteration allowed
+# Given user "test" exists
+# And user "Sharee1" exists
+# And group "ShareeGroup" exists
+# And As an "test"
+# When getting sharees for
+# | search | ShareeGroup |
+# | itemType | file |
+# Then the OCS status code should be "100"
+# And the HTTP status code should be "200"
+# And "exact users" sharees returned is empty
+# And "users" sharees returned is empty
+# And "exact groups" sharees returned are
+# | ShareeGroup | 1 | ShareeGroup |
+# And "groups" sharees returned is empty
+# And "exact remotes" sharees returned is empty
+# And "remotes" sharees returned is empty
+
Scenario: Search with exact match
Given user "test" exists
And user "Sharee1" exists