test host API calls
Created by: mnsl
This PR tests that API calls to add, resize and remove host storage folders are handled properly, including various flavors of invalid calls.
Several errors from the storagemanager
module are now exported, and I added a couple of exported functions so that the tests could access storagemanager
's minimumStorageFolderSize
and maximumStorageFolderSize
constants.
I also fixed some typos.
TODO:
- a couple more tests to cover all error handling by the add/resize storage folder API calls
- test the API call to delete a specific storage sector