deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Fix for HTTP redirects in the deltacloud-client
Date Mon, 11 Oct 2010 12:29:55 GMT
Hey all,

The current version of deltacloud-client doesn't support HTTP redirects. When
you do'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.

Tomas Sedovic

View raw message