-
Notifications
You must be signed in to change notification settings - Fork 2
Funktionen_StorageResource
Here you find the storage functions. A storage is an organisation area inside the data structure. postgres: storage = schema
URL: {{base_url}}/{{smartdata}}/smartdata/storage/create?name=teststorage
Method: POST
Body: None
- Sending POST CreateStorage Request
- Storage created
- Response with State 201 CREATED
Testcases:
- testCreateStorage()
- testCreateSecondStorage()
Exceptions:
- A storage should be created that allready exists
- Response with State NOT_MODIFIED
Testcases:
- testCreateStorageAllreadyExists()
URL: {{base_url}}/{{smartdata}}/smartdata/storage/getAbilities?name=teststorage
Method: GET
- Sending GET request
- Returns a list of abilities with names and versions.
- Response state: 200 OK
Testcases:
- testGetAbilities()
Exceptions:
- Storage does not have abilities
- Responds with an empty list
- Response state: 200 OK
URL: {{base_url}}/{{smartdata}}/smartdata/storage/getCollections?name=teststorage
Method: GET
- Sending GET request
- All available Collections in Storage are listed (JSON)
- Response state: 200 OK
Testcases:
- testGetCollections()
Exceptions:
- There are no Collections in Storage
- Resulting list is empty (JSON)
- Response state: 200 OK
Testcases:
- testGetCollectionsNoOne()
URL: {{base_url}}/{{smartdata}}/smartdata/storage/getCollections?name=teststorage&exclude='label_labels','label_observedobject','tbl_datatype','tbl_locations'
- Sending GET request
- Resulting list contains all collection but not that ones stated at exclude
- Response state: 200 OK
URL: {{base_url}}/{{smartdata}}/smartdata/storage/delete?name=teststorage
Method: DELETE
- Sending delete requet
- Storage is remove from database
- Response state: 200 OK
Testcases:
- testDeleteStorage()
Exeptions:
- Storage does not exists
- Response state: NOT_MODIFIED