docker-py/tests
Sam Thursfield 42b91885a2 Rework Unix connection code so that 'chunked' transfers work
This allows streaming a system to the 'import' command, rather than
having to read the whole thing into memory before sending it.

Previously both the UnixAdapter and the docker.Client objects would
track the 'base URL' of the Docker daemon (socket path in the case of
local Unix-domain socket connections). The Client object would construct
URLs which contained the path to the socket with the path of the Docker
API call appended. The UnixHTTPConnection instance would then remove the
known socket path from the URL.

This relied on all calls going through the HTTPConnection.request()
function, where the URL could be rewritten. In the case of 'chunked'
HTTP POST requests this doesn't happen, so such calls would request
a path still including the socket path and would receive a 404 error.

The client now constructs URLs containing just the path of the desired API
endpoint, and expects the Unix socket transport to know the path to the
Docker daemon's socket.
2015-01-05 12:05:39 +00:00
..
testdata/certs utils: add kwargs_from_env 2014-10-29 10:05:49 -07:00
__init__.py Create tests module for setuptools test support 2013-07-13 01:07:04 -05:00
fake_api.py Rework Unix connection code so that 'chunked' transfers work 2015-01-05 12:05:39 +00:00
integration_test.py Improved integration tests to run on python3 and close sessions after in tearDown phase 2014-12-18 17:46:41 -08:00
test.py Rework Unix connection code so that 'chunked' transfers work 2015-01-05 12:05:39 +00:00
utils_test.py Use create_host_config in start (unifying parameter processing) 2014-12-18 18:03:27 -08:00