# Task NEX-219 - Check that the direct upload api endpoints are properly covered with all the possible test cases

Project: Stream Nextcloud app "OpenProject Integration"
Status: closed
URL: https://community.openproject.org/work_packages/NEX-219

## Details

| Attribute | Value |
| --- | --- |
| Assignee | Swikriti Tripathi |
| Date |  |
| Priority | Medium |
| Target versions | Nextcloud Integration 2.3.0 |
| Category |  |
| Labels |  |

## Description

We have API tests for direct upload endpoints in 

[https://github.com/nextcloud/integration\_openproject/blob/master/tests/acceptance/features/api/directUpload.feature](https://github.com/nextcloud/integration_openproject/blob/master/tests/acceptance/features/api/directUpload.feature)

[https://github.com/nextcloud/integration\_openproject/blob/master/tests/acceptance/features/api/directUploadPrepare.feature](https://github.com/nextcloud/integration_openproject/blob/master/tests/acceptance/features/api/directUploadPrepare.feature)

  

Go through them and make sure that all the possible cases are covered for instance sharing with different permissions, and the create/update permissions of the file. If something is missing add the new API tests
