From 332e6151d3423e4b2ec31889f72bfc1bc5b4342e Mon Sep 17 00:00:00 2001 From: Artur Neumann Date: Tue, 5 Mar 2019 12:32:24 +0545 Subject: [PATCH] test response of files_external ocs endpoint --- .../features/apiMain/external-storage.feature | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tests/acceptance/features/apiMain/external-storage.feature b/tests/acceptance/features/apiMain/external-storage.feature index 96b84959c580..ef9921c91b20 100644 --- a/tests/acceptance/features/apiMain/external-storage.feature +++ b/tests/acceptance/features/apiMain/external-storage.feature @@ -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 "" + And user "user0" has been created with default attributes + When user "user0" sends HTTP method "GET" to OCS API endpoint "" + Then the OCS status code should be "" + And the HTTP status code should be "" + 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 |