[storage] Add temporary url functionality to openstack storage #493
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull requests adds temporary url functionality to openstack storage. It is modeled off of the code written specifically for the rackspace provider as well as the similar implementation from pyrax.
With this update, you can both set and get the temporary url key associated with your account in addition to generating the temporary url itself.
Because the rackspace storage provider uses the openstack provider's storageClient object, it was necessary to add the additional file file
account.jsalong with the corresponding extend inclient/index.js.There were no previous tests written for openstack storage so I have created a few simple ones for this new functionality. Due to my unfamiliarity with
hockthey may be more verbose than is needed but they do seem to model the functionality as expected. Note:npm testcurrently fails (as seen in the failed travis builds) due to some issue with blanket. After removing theblanketintegration, tests run but there are 14 failing, none of which dealt with openstack storage. Both of these concerns were outside of the scope of this pull request so I did not investigate them too deeply. The newly added tests all complete successfully.This pull request should close #422 and and possibly #376