Skip to content

Commit

Permalink
Merge pull request #34680 from owncloud/testOCSFilesExternalMount
Browse files Browse the repository at this point in the history
test response of files_external ocs endpoint
  • Loading branch information
Vincent Petry authored Mar 5, 2019
2 parents 1ea677b + 332e615 commit c5bc76c
Showing 1 changed file with 19 additions and 0 deletions.
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 |

0 comments on commit c5bc76c

Please sign in to comment.