Hey all,
The current version of deltacloud-client doesn't support HTTP redirects. When
you do
DeltaCloud.new('mockuser', 'mockpassword', 'http://localhost:3001')
with `deltacloudd -i mock` listening on the port 3001, the connection will
fail, because the client doesn't proces the response properly.
(note that the mock server redirects '/' to '/api')
These two patches add tests for this and implement a solution.
[PATCH 1/2] Add tests for URLs that return HTTP redirect
[PATCH 2/2] Follow HTTP redirects for API URLs in the client
Please let me know what you think and chew me up if you can find a better
solution -- I'm not very familiar with the codebase.
Cheers,
Tomas Sedovic