diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2016-03-21 12:25:58 +0300 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2016-03-22 19:13:34 +0300 |
commit | 6719f8ca60e10b0f1064935ecccf708383532a89 (patch) | |
tree | 15f43e511ab5d87e7230e4a6fe7d66029ad346b6 /build | |
parent | e69a09756b17009ebe76862cf92f6494487ae8cc (diff) |
Add intergration tests
* Only for sharees right now
* Sharing intergration tests fail due to the test setup we have right
now
Diffstat (limited to 'build')
-rw-r--r-- | build/integration/features/bootstrap/ShareesContext.php | 1 | ||||
-rw-r--r-- | build/integration/sharees_features/sharees.feature | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/build/integration/features/bootstrap/ShareesContext.php b/build/integration/features/bootstrap/ShareesContext.php index de50eeb2beb..bd08ae6e138 100644 --- a/build/integration/features/bootstrap/ShareesContext.php +++ b/build/integration/features/bootstrap/ShareesContext.php @@ -68,5 +68,6 @@ class ShareesContext implements Context, SnippetAcceptingContext { protected function resetAppConfigs() { $this->modifyServerConfig('core', 'shareapi_only_share_with_group_members', 'no'); $this->modifyServerConfig('core', 'shareapi_allow_share_dialog_user_enumeration', 'yes'); + $this->modifyServerConfig('core', 'shareapi_allow_group_sharing', 'yes'); } } diff --git a/build/integration/sharees_features/sharees.feature b/build/integration/sharees_features/sharees.feature index 5765b937a67..58570cfc5f1 100644 --- a/build/integration/sharees_features/sharees.feature +++ b/build/integration/sharees_features/sharees.feature @@ -222,3 +222,19 @@ Feature: sharees Then "groups" sharees returned is empty Then "exact remotes" sharees returned is empty Then "remotes" sharees returned is empty + + Scenario: Group sharees not returned when group sharing is disabled + Given As an "test" + And parameter "shareapi_allow_group_sharing" of app "core" is set to "no" + 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 are + | Sharee1 | 0 | Sharee1 | + 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 |