2015-12-02 17:29:42 +00:00
|
|
|
Feature: capabilities
|
|
|
|
Background:
|
|
|
|
Given using api version "1"
|
|
|
|
|
|
|
|
Scenario: getting capabilities with admin user
|
|
|
|
Given As an "admin"
|
|
|
|
When sending "GET" to "/cloud/capabilities"
|
|
|
|
Then the HTTP status code should be "200"
|
|
|
|
And fields of capabilities match with
|
2015-12-11 12:39:04 +00:00
|
|
|
| capability | path_to_element | value |
|
|
|
|
| core | pollinterval | 60 |
|
|
|
|
| core | webdav-root | remote.php/webdav |
|
|
|
|
| files_sharing | api_enabled | 1 |
|
|
|
|
| files_sharing | public@@@enabled | 1 |
|
|
|
|
| files_sharing | public@@@upload | 1 |
|
|
|
|
| files_sharing | resharing | 1 |
|
|
|
|
| files_sharing | federation@@@outgoing | 1 |
|
|
|
|
| files_sharing | federation@@@incoming | 1 |
|
2016-03-31 08:07:40 +00:00
|
|
|
| files_sharing | group_sharing | 1 |
|
2015-12-11 12:39:04 +00:00
|
|
|
| files | bigfilechunking | 1 |
|
|
|
|
| files | undelete | 1 |
|
|
|
|
| files | versioning | 1 |
|
2015-12-02 17:29:42 +00:00
|
|
|
|
2015-12-11 11:18:06 +00:00
|
|
|
Scenario: Changing public upload
|
2015-12-04 14:08:16 +00:00
|
|
|
Given As an "admin"
|
2015-12-09 10:27:30 +00:00
|
|
|
And parameter "shareapi_allow_public_upload" of app "core" is set to "no"
|
2015-12-04 14:08:16 +00:00
|
|
|
When sending "GET" to "/cloud/capabilities"
|
|
|
|
Then the HTTP status code should be "200"
|
|
|
|
And fields of capabilities match with
|
2015-12-11 12:39:04 +00:00
|
|
|
| capability | path_to_element | value |
|
|
|
|
| core | pollinterval | 60 |
|
|
|
|
| core | webdav-root | remote.php/webdav |
|
|
|
|
| files_sharing | api_enabled | 1 |
|
|
|
|
| files_sharing | public@@@enabled | 1 |
|
|
|
|
| files_sharing | public@@@upload | EMPTY |
|
|
|
|
| files_sharing | resharing | 1 |
|
|
|
|
| files_sharing | federation@@@outgoing | 1 |
|
|
|
|
| files_sharing | federation@@@incoming | 1 |
|
2016-03-31 08:07:40 +00:00
|
|
|
| files_sharing | group_sharing | 1 |
|
2015-12-11 12:39:04 +00:00
|
|
|
| files | bigfilechunking | 1 |
|
|
|
|
| files | undelete | 1 |
|
|
|
|
| files | versioning | 1 |
|
2015-12-04 14:08:16 +00:00
|
|
|
|
2015-12-11 11:18:06 +00:00
|
|
|
Scenario: Disabling share api
|
|
|
|
Given As an "admin"
|
|
|
|
And parameter "shareapi_enabled" of app "core" is set to "no"
|
|
|
|
When sending "GET" to "/cloud/capabilities"
|
|
|
|
Then the HTTP status code should be "200"
|
|
|
|
And fields of capabilities match with
|
2015-12-11 12:39:04 +00:00
|
|
|
| capability | path_to_element | value |
|
|
|
|
| core | pollinterval | 60 |
|
|
|
|
| core | webdav-root | remote.php/webdav |
|
|
|
|
| files_sharing | api_enabled | EMPTY |
|
|
|
|
| files_sharing | public@@@enabled | EMPTY |
|
|
|
|
| files_sharing | public@@@upload | EMPTY |
|
|
|
|
| files_sharing | resharing | EMPTY |
|
|
|
|
| files_sharing | federation@@@outgoing | 1 |
|
|
|
|
| files_sharing | federation@@@incoming | 1 |
|
|
|
|
| files | bigfilechunking | 1 |
|
|
|
|
| files | undelete | 1 |
|
|
|
|
| files | versioning | 1 |
|
2015-12-11 11:18:06 +00:00
|
|
|
|
|
|
|
Scenario: Disabling public links
|
|
|
|
Given As an "admin"
|
|
|
|
And parameter "shareapi_allow_links" of app "core" is set to "no"
|
|
|
|
When sending "GET" to "/cloud/capabilities"
|
|
|
|
Then the HTTP status code should be "200"
|
|
|
|
And fields of capabilities match with
|
2015-12-11 12:39:04 +00:00
|
|
|
| capability | path_to_element | value |
|
|
|
|
| core | pollinterval | 60 |
|
|
|
|
| core | webdav-root | remote.php/webdav |
|
|
|
|
| files_sharing | api_enabled | 1 |
|
|
|
|
| files_sharing | public@@@enabled | EMPTY |
|
|
|
|
| files_sharing | public@@@upload | EMPTY |
|
|
|
|
| files_sharing | resharing | 1 |
|
|
|
|
| files_sharing | federation@@@outgoing | 1 |
|
|
|
|
| files_sharing | federation@@@incoming | 1 |
|
2016-03-31 08:07:40 +00:00
|
|
|
| files_sharing | group_sharing | 1 |
|
2015-12-11 12:39:04 +00:00
|
|
|
| files | bigfilechunking | 1 |
|
|
|
|
| files | undelete | 1 |
|
|
|
|
| files | versioning | 1 |
|
2015-12-11 11:18:06 +00:00
|
|
|
|
|
|
|
Scenario: Changing resharing
|
|
|
|
Given As an "admin"
|
|
|
|
And parameter "shareapi_allow_resharing" of app "core" is set to "no"
|
|
|
|
When sending "GET" to "/cloud/capabilities"
|
|
|
|
Then the HTTP status code should be "200"
|
|
|
|
And fields of capabilities match with
|
2015-12-11 12:39:04 +00:00
|
|
|
| capability | path_to_element | value |
|
|
|
|
| core | pollinterval | 60 |
|
|
|
|
| core | webdav-root | remote.php/webdav |
|
|
|
|
| files_sharing | api_enabled | 1 |
|
|
|
|
| files_sharing | public@@@enabled | 1 |
|
|
|
|
| files_sharing | public@@@upload | 1 |
|
|
|
|
| files_sharing | resharing | EMPTY |
|
|
|
|
| files_sharing | federation@@@outgoing | 1 |
|
|
|
|
| files_sharing | federation@@@incoming | 1 |
|
2016-03-31 08:07:40 +00:00
|
|
|
| files_sharing | group_sharing | 1 |
|
2015-12-11 12:39:04 +00:00
|
|
|
| files | bigfilechunking | 1 |
|
|
|
|
| files | undelete | 1 |
|
|
|
|
| files | versioning | 1 |
|
2015-12-11 11:18:06 +00:00
|
|
|
|
|
|
|
Scenario: Changing federation outgoing
|
|
|
|
Given As an "admin"
|
|
|
|
And parameter "outgoing_server2server_share_enabled" of app "files_sharing" is set to "no"
|
|
|
|
When sending "GET" to "/cloud/capabilities"
|
|
|
|
Then the HTTP status code should be "200"
|
|
|
|
And fields of capabilities match with
|
2015-12-11 12:39:04 +00:00
|
|
|
| capability | path_to_element | value |
|
|
|
|
| core | pollinterval | 60 |
|
|
|
|
| core | webdav-root | remote.php/webdav |
|
|
|
|
| files_sharing | api_enabled | 1 |
|
|
|
|
| files_sharing | public@@@enabled | 1 |
|
|
|
|
| files_sharing | public@@@upload | 1 |
|
|
|
|
| files_sharing | resharing | 1 |
|
|
|
|
| files_sharing | federation@@@outgoing | EMPTY |
|
|
|
|
| files_sharing | federation@@@incoming | 1 |
|
2016-03-31 08:07:40 +00:00
|
|
|
| files_sharing | group_sharing | 1 |
|
2015-12-11 12:39:04 +00:00
|
|
|
| files | bigfilechunking | 1 |
|
|
|
|
| files | undelete | 1 |
|
|
|
|
| files | versioning | 1 |
|
2015-12-02 17:29:42 +00:00
|
|
|
|
2015-12-11 11:18:06 +00:00
|
|
|
Scenario: Changing federation incoming
|
|
|
|
Given As an "admin"
|
|
|
|
And parameter "incoming_server2server_share_enabled" of app "files_sharing" is set to "no"
|
|
|
|
When sending "GET" to "/cloud/capabilities"
|
|
|
|
Then the HTTP status code should be "200"
|
|
|
|
And fields of capabilities match with
|
2015-12-11 12:39:04 +00:00
|
|
|
| capability | path_to_element | value |
|
|
|
|
| core | pollinterval | 60 |
|
|
|
|
| core | webdav-root | remote.php/webdav |
|
|
|
|
| files_sharing | api_enabled | 1 |
|
|
|
|
| files_sharing | public@@@enabled | 1 |
|
|
|
|
| files_sharing | public@@@upload | 1 |
|
|
|
|
| files_sharing | resharing | 1 |
|
|
|
|
| files_sharing | federation@@@outgoing | 1 |
|
|
|
|
| files_sharing | federation@@@incoming | EMPTY |
|
2016-03-31 08:07:40 +00:00
|
|
|
| files_sharing | group_sharing | 1 |
|
2015-12-11 12:39:04 +00:00
|
|
|
| files | bigfilechunking | 1 |
|
|
|
|
| files | undelete | 1 |
|
|
|
|
| files | versioning | 1 |
|
2015-12-02 17:29:42 +00:00
|
|
|
|
2015-12-11 12:39:04 +00:00
|
|
|
Scenario: Changing password enforce
|
|
|
|
Given As an "admin"
|
|
|
|
And parameter "shareapi_enforce_links_password" of app "core" is set to "yes"
|
|
|
|
When sending "GET" to "/cloud/capabilities"
|
|
|
|
Then the HTTP status code should be "200"
|
|
|
|
And fields of capabilities match with
|
|
|
|
| capability | path_to_element | value |
|
|
|
|
| core | pollinterval | 60 |
|
|
|
|
| core | webdav-root | remote.php/webdav |
|
|
|
|
| files_sharing | api_enabled | 1 |
|
|
|
|
| files_sharing | public@@@enabled | 1 |
|
|
|
|
| files_sharing | public@@@upload | 1 |
|
|
|
|
| files_sharing | public@@@password@@@enforced | 1 |
|
|
|
|
| files_sharing | resharing | 1 |
|
|
|
|
| files_sharing | federation@@@outgoing | 1 |
|
|
|
|
| files_sharing | federation@@@incoming | 1 |
|
2016-03-31 08:07:40 +00:00
|
|
|
| files_sharing | group_sharing | 1 |
|
2015-12-11 12:39:04 +00:00
|
|
|
| files | bigfilechunking | 1 |
|
|
|
|
| files | undelete | 1 |
|
|
|
|
| files | versioning | 1 |
|
2015-12-02 17:29:42 +00:00
|
|
|
|
2015-12-11 12:39:04 +00:00
|
|
|
Scenario: Changing public notifications
|
|
|
|
Given As an "admin"
|
|
|
|
And parameter "shareapi_allow_public_notification" of app "core" is set to "yes"
|
|
|
|
When sending "GET" to "/cloud/capabilities"
|
|
|
|
Then the HTTP status code should be "200"
|
|
|
|
And fields of capabilities match with
|
|
|
|
| capability | path_to_element | value |
|
|
|
|
| core | pollinterval | 60 |
|
|
|
|
| core | webdav-root | remote.php/webdav |
|
|
|
|
| files_sharing | api_enabled | 1 |
|
|
|
|
| files_sharing | public@@@enabled | 1 |
|
|
|
|
| files_sharing | public@@@upload | 1 |
|
|
|
|
| files_sharing | public@@@send_mail | 1 |
|
|
|
|
| files_sharing | resharing | 1 |
|
|
|
|
| files_sharing | federation@@@outgoing | 1 |
|
|
|
|
| files_sharing | federation@@@incoming | 1 |
|
2016-03-31 08:07:40 +00:00
|
|
|
| files_sharing | group_sharing | 1 |
|
2015-12-11 12:39:04 +00:00
|
|
|
| files | bigfilechunking | 1 |
|
|
|
|
| files | undelete | 1 |
|
|
|
|
| files | versioning | 1 |
|
2015-12-02 17:29:42 +00:00
|
|
|
|
2015-12-11 12:39:04 +00:00
|
|
|
Scenario: Changing expire date
|
|
|
|
Given As an "admin"
|
|
|
|
And parameter "shareapi_default_expire_date" of app "core" is set to "yes"
|
|
|
|
When sending "GET" to "/cloud/capabilities"
|
|
|
|
Then the HTTP status code should be "200"
|
|
|
|
And fields of capabilities match with
|
|
|
|
| capability | path_to_element | value |
|
|
|
|
| core | pollinterval | 60 |
|
|
|
|
| core | webdav-root | remote.php/webdav |
|
|
|
|
| files_sharing | api_enabled | 1 |
|
|
|
|
| files_sharing | public@@@enabled | 1 |
|
|
|
|
| files_sharing | public@@@upload | 1 |
|
|
|
|
| files_sharing | public@@@expire_date@@@enabled | 1 |
|
|
|
|
| files_sharing | resharing | 1 |
|
|
|
|
| files_sharing | federation@@@outgoing | 1 |
|
|
|
|
| files_sharing | federation@@@incoming | 1 |
|
2016-03-31 08:07:40 +00:00
|
|
|
| files_sharing | group_sharing | 1 |
|
2015-12-11 12:39:04 +00:00
|
|
|
| files | bigfilechunking | 1 |
|
|
|
|
| files | undelete | 1 |
|
|
|
|
| files | versioning | 1 |
|
2015-12-02 17:29:42 +00:00
|
|
|
|
2015-12-11 12:39:04 +00:00
|
|
|
Scenario: Changing expire date enforcing
|
|
|
|
Given As an "admin"
|
|
|
|
And parameter "shareapi_default_expire_date" of app "core" is set to "yes"
|
|
|
|
And parameter "shareapi_enforce_expire_date" of app "core" is set to "yes"
|
|
|
|
When sending "GET" to "/cloud/capabilities"
|
|
|
|
Then the HTTP status code should be "200"
|
|
|
|
And fields of capabilities match with
|
|
|
|
| capability | path_to_element | value |
|
|
|
|
| core | pollinterval | 60 |
|
|
|
|
| core | webdav-root | remote.php/webdav |
|
|
|
|
| files_sharing | api_enabled | 1 |
|
|
|
|
| files_sharing | public@@@enabled | 1 |
|
|
|
|
| files_sharing | public@@@upload | 1 |
|
|
|
|
| files_sharing | public@@@expire_date@@@enabled | 1 |
|
|
|
|
| files_sharing | public@@@expire_date@@@enforced | 1 |
|
|
|
|
| files_sharing | resharing | 1 |
|
|
|
|
| files_sharing | federation@@@outgoing | 1 |
|
|
|
|
| files_sharing | federation@@@incoming | 1 |
|
2016-03-31 08:07:40 +00:00
|
|
|
| files_sharing | group_sharing | 1 |
|
|
|
|
| files | bigfilechunking | 1 |
|
|
|
|
| files | undelete | 1 |
|
|
|
|
| files | versioning | 1 |
|
|
|
|
|
|
|
|
Scenario: Changing group sharing allowed
|
|
|
|
Given As an "admin"
|
|
|
|
And parameter "shareapi_allow_group_sharing" of app "core" is set to "no"
|
|
|
|
When sending "GET" to "/cloud/capabilities"
|
|
|
|
Then the HTTP status code should be "200"
|
|
|
|
And fields of capabilities match with
|
|
|
|
| capability | path_to_element | value |
|
|
|
|
| core | pollinterval | 60 |
|
|
|
|
| core | webdav-root | remote.php/webdav |
|
|
|
|
| files_sharing | api_enabled | 1 |
|
|
|
|
| files_sharing | public@@@enabled | 1 |
|
|
|
|
| files_sharing | public@@@upload | 1 |
|
|
|
|
| files_sharing | resharing | 1 |
|
|
|
|
| files_sharing | federation@@@outgoing | 1 |
|
|
|
|
| files_sharing | federation@@@incoming | 1 |
|
|
|
|
| files_sharing | group_sharing | EMPTY |
|
2015-12-11 12:39:04 +00:00
|
|
|
| files | bigfilechunking | 1 |
|
|
|
|
| files | undelete | 1 |
|
|
|
|
| files | versioning | 1 |
|