Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable10] test response of files_external ocs endpoint #34682

Merged
merged 1 commit into from
Mar 5, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions tests/acceptance/features/apiMain/external-storage.feature
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,22 @@ Feature: external-storage
When user "user0" uploads file "filesForUpload/textfile.txt" to filenames based on "/local_storage/testquota.txt" with all mechanisms using the WebDAV API
Then the HTTP status code of all upload responses should be "201"
And as "user0" the files uploaded to "/local_storage/testquota.txt" with all mechanisms should exist

Scenario Outline: query OCS endpoint for information about the mount
Given using OCS API version "<ocs_api_version>"
And user "user0" has been created with default attributes
When user "user0" sends HTTP method "GET" to OCS API endpoint "<endpoint>"
Then the OCS status code should be "<ocs-code>"
And the HTTP status code should be "<http-code>"
And the fields of the last response should include
| id | A_NUMBER |
| name | local_storage |
| type | dir |
| backend | Local |
| scope | system |
| permissions | 1 |
| class | local |
Examples:
| ocs_api_version | endpoint | ocs-code | http-code |
| 1 | /apps/files_external/api/v1/mounts | 100 | 200 |
| 2 | /apps/files_external/api/v1/mounts | 200 | 200 |