mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-01 09:52:23 -06:00
more spaces tests
This commit is contained in:
@@ -118,25 +118,29 @@ PASSWORD=admin
|
||||
- root: `https://<server-uri>/dav/spaces/<space-id>`
|
||||
- [example commands for operations](#webdav)
|
||||
|
||||
| Test Case | Expected Result | Example / Comment |
|
||||
|---------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------|-------------------|
|
||||
| create a space | space should exist | |
|
||||
| create a space with special characters as a name & description | space should exist | |
|
||||
| create a space, delete the space | space should not exist | |
|
||||
| create a space, share the space with a user | space should be accessible | |
|
||||
| create a space, share the space with a group | space should be accessible, space content is shared among all users | |
|
||||
| create a space, share the space with a group, disable the space | space should not be accessible | |
|
||||
| create a space, share the space with a user, disable the space, restore the space | space should be accessible | |
|
||||
| create a space, disable the space, delete the space, restore the space | it should not be possible to restore the space | |
|
||||
| create a space, disable the space, try to share the space | sharing the space should not be possible | |
|
||||
| create a space, try delete the space | it should not be possible to delete an enabled space | |
|
||||
| create & share a space with a group with viewer role, do CRUD file/folder operations with WebDAV | space content is readable but neither space not content should not be writable | |
|
||||
| create & share a space with a group with editor role, do CRUD file/folder operations with WebDAV | space and content should be writable | |
|
||||
| create a space, try CRUD file/folder operations with WebDAV on the space with a user that its not shared with | space and content should not be accessible | |
|
||||
| create a space with a quota, share the space, upload files till the quota is exceeded | upload should work till quota is full, uploads should not work when quota is full | |
|
||||
| share file/folders from inside a space (see other sharing section) | sharing works and obeys the permissions | |
|
||||
| try the various space operations with invalid data | good error output, server does not crash | |
|
||||
| try the various space operations without the correct permissions | operations are not possible without sufficient permissions | |
|
||||
| Test Case | Expected Result | Example / Comment |
|
||||
|-------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------|--------------------|
|
||||
| create a space | space should exist | |
|
||||
| create a space with special characters as a name & description | space should exist | |
|
||||
| create a space, delete the space | space should not exist | |
|
||||
| create a space, share the space with a user | space should be accessible | |
|
||||
| create a space, share the space with a group | space should be accessible, space content is shared among all users | |
|
||||
| create a space, share the space with a group, disable the space | space should not be accessible | |
|
||||
| create a space, share the space with a user, disable the space, restore the space | space should be accessible | |
|
||||
| create a space, disable the space, delete the space, restore the space | it should not be possible to restore the space | |
|
||||
| create a space, disable the space, try to share the space | sharing the space should not be possible | |
|
||||
| create a space, try delete the space | it should not be possible to delete an enabled space | |
|
||||
| create & share a space with a group with viewer role, do CRUD file/folder operations with WebDAV | space content is readable but neither space not content should not be writable | |
|
||||
| create & share a space with a group with editor role, do CRUD file/folder operations with WebDAV | space and content should be writable | |
|
||||
| create a space, try CRUD file/folder operations with WebDAV on the space with a user that its not shared with | space and content should not be accessible | |
|
||||
| create a space with a quota, share the space, upload files till the quota is exceeded | upload should work till quota is full, uploads should not work when quota is full | |
|
||||
| share file/folders from inside a space (see other sharing section) | sharing works and obeys the permissions | |
|
||||
| create a space, rename the space | new name should be displayed in API calls and web | TODO curl examples |
|
||||
| create a space, change description of the space | new description should be displayed in API calls and web | TODO curl examples |
|
||||
| create a space, set quota, change quota of the space | new quota is obeyed | TODO curl examples |
|
||||
| create a space, set quota, change quota of the space to a value that is lower than the sum of data already stored | new quota is obeyed, new files cannot be uploaded | TODO curl examples |
|
||||
| try the various space operations with invalid data | good error output, server does not crash | |
|
||||
| try the various space operations without the correct permissions | operations are not possible without sufficient permissions | |
|
||||
|
||||
|
||||
## Web
|
||||
@@ -186,6 +190,7 @@ Prerequisite:
|
||||
| Share a folder with a group. | It is shared correctly. | |
|
||||
| Share a folder with userB giving edit permissions. As userB do CRUD operations on items inside the received folder | userB doesn't find any problem while interacting with files. | |
|
||||
| Use your mobile device to access the UI | All elements reachable | |
|
||||
| TODO spaces tests in web | | |
|
||||
|
||||
## Desktop Client
|
||||
|
||||
|
||||
Reference in New Issue
Block a user