Add intergration tests

This commit is contained in:
Roeland Jago Douma 2016-03-31 10:07:40 +02:00
parent db5ea95e29
commit ab034f0593
2 changed files with 31 additions and 0 deletions

View File

@ -16,6 +16,7 @@ Feature: capabilities
| files_sharing | resharing | 1 |
| files_sharing | federation@@@outgoing | 1 |
| files_sharing | federation@@@incoming | 1 |
| files_sharing | group_sharing | 1 |
| files | bigfilechunking | 1 |
| files | undelete | 1 |
| files | versioning | 1 |
@ -35,6 +36,7 @@ Feature: capabilities
| files_sharing | resharing | 1 |
| files_sharing | federation@@@outgoing | 1 |
| files_sharing | federation@@@incoming | 1 |
| files_sharing | group_sharing | 1 |
| files | bigfilechunking | 1 |
| files | undelete | 1 |
| files | versioning | 1 |
@ -73,6 +75,7 @@ Feature: capabilities
| files_sharing | resharing | 1 |
| files_sharing | federation@@@outgoing | 1 |
| files_sharing | federation@@@incoming | 1 |
| files_sharing | group_sharing | 1 |
| files | bigfilechunking | 1 |
| files | undelete | 1 |
| files | versioning | 1 |
@ -92,6 +95,7 @@ Feature: capabilities
| files_sharing | resharing | EMPTY |
| files_sharing | federation@@@outgoing | 1 |
| files_sharing | federation@@@incoming | 1 |
| files_sharing | group_sharing | 1 |
| files | bigfilechunking | 1 |
| files | undelete | 1 |
| files | versioning | 1 |
@ -111,6 +115,7 @@ Feature: capabilities
| files_sharing | resharing | 1 |
| files_sharing | federation@@@outgoing | EMPTY |
| files_sharing | federation@@@incoming | 1 |
| files_sharing | group_sharing | 1 |
| files | bigfilechunking | 1 |
| files | undelete | 1 |
| files | versioning | 1 |
@ -130,6 +135,7 @@ Feature: capabilities
| files_sharing | resharing | 1 |
| files_sharing | federation@@@outgoing | 1 |
| files_sharing | federation@@@incoming | EMPTY |
| files_sharing | group_sharing | 1 |
| files | bigfilechunking | 1 |
| files | undelete | 1 |
| files | versioning | 1 |
@ -150,6 +156,7 @@ Feature: capabilities
| files_sharing | resharing | 1 |
| files_sharing | federation@@@outgoing | 1 |
| files_sharing | federation@@@incoming | 1 |
| files_sharing | group_sharing | 1 |
| files | bigfilechunking | 1 |
| files | undelete | 1 |
| files | versioning | 1 |
@ -170,6 +177,7 @@ Feature: capabilities
| files_sharing | resharing | 1 |
| files_sharing | federation@@@outgoing | 1 |
| files_sharing | federation@@@incoming | 1 |
| files_sharing | group_sharing | 1 |
| files | bigfilechunking | 1 |
| files | undelete | 1 |
| files | versioning | 1 |
@ -190,6 +198,7 @@ Feature: capabilities
| files_sharing | resharing | 1 |
| files_sharing | federation@@@outgoing | 1 |
| files_sharing | federation@@@incoming | 1 |
| files_sharing | group_sharing | 1 |
| files | bigfilechunking | 1 |
| files | undelete | 1 |
| files | versioning | 1 |
@ -212,6 +221,27 @@ Feature: capabilities
| files_sharing | resharing | 1 |
| files_sharing | federation@@@outgoing | 1 |
| files_sharing | federation@@@incoming | 1 |
| 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 |
| files | bigfilechunking | 1 |
| files | undelete | 1 |
| files | versioning | 1 |

View File

@ -51,5 +51,6 @@ class CapabilitiesContext implements Context, SnippetAcceptingContext {
$this->modifyServerConfig('core', 'shareapi_allow_public_notification', 'no');
$this->modifyServerConfig('core', 'shareapi_default_expire_date', 'no');
$this->modifyServerConfig('core', 'shareapi_enforce_expire_date', 'no');
$this->modifyServerConfig('core', 'shareapi_allow_group_sharing', 'yes');
}
}