diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-03-11 14:15:09 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-03-11 14:15:09 +0100 |
commit | 722188e5030bbce6a00a455115db516d08e4e54d (patch) | |
tree | 89e01a1d10aac94b0a940c10682370f798f650b8 | |
parent | aad8aa0970f0593c213e7ed2baf924878b135393 (diff) | |
download | nextcloud-server-722188e5030bbce6a00a455115db516d08e4e54d.tar.gz nextcloud-server-722188e5030bbce6a00a455115db516d08e4e54d.zip |
Add integration tests for the "anti user iteration"
-rw-r--r-- | build/integration/features/sharees.feature | 54 |
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 |