summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix stop timeout bugfix_649Joffrey F2015-06-241-0/+5
|
* Merge branch 'allow-any-mode' of https://github.com/aanand/docker-py into ↵Joffrey F2015-06-181-0/+47
|\ | | | | | | aanand-allow-any-mode
| * Allow any mode string to be passed into a volume bindAanand Prasad2015-06-051-0/+47
| | | | | | | | | | | | | | | | Volume binds now take a "mode" key, whose value can be any string. "ro" is still supported. It is an error to specify both "ro" and "mode". Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* | Bumped default API version == 1.19Joffrey F2015-06-181-1/+1
| |
* | Add volume_driver param to client.create_containerLuke Marsden2015-06-181-0/+31
| | | | | | | | | | | | | | - Add appropriate test which also asserts that volume names can be passed through to drivers. - Add new param to docs. Signed-off-by: Luke Marsden <luke@clusterhq.com>
* | Fixed integration testJoffrey F2015-06-181-1/+1
| |
* | Allow binds to be specified as a list of stringsAanand Prasad2015-06-121-0/+30
|/ | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* Merge pull request #562 from smothiki/memsJoffrey F2015-05-201-1/+7
|\ | | | | make memory units compatible with native docker cli
| * make memory units compatible with native docker clismothiki2015-05-071-1/+7
| | | | | | | | Signed-off-by: sivaram mothiki <smothiki@engineyard.com>
* | Separate check_resource inspect testsJoffrey F2015-05-201-13/+20
| |
* | Fix #602. Raise ValueError on empty argument to inspect_{container,image}() ↵Matt Bogosian2015-05-171-0/+12
| | | | | | | | methods.
* | Merge pull request #593 from docker/deprecate_start_hostconfigJoffrey F2015-05-082-501/+186
|\ \ | | | | | | Deprecate start hostconfig
| * | Added deprecation warning for host config in startJoffrey F2015-05-082-501/+186
| |/
* | unit testcpusetcpusJoffrey F2015-05-081-0/+1
|/
* Fixes for #586Joffrey F2015-05-061-0/+2
|
* exec_resize is incorrectly passing param as jsonXiaojian Huang2015-04-281-16/+4
|
* Fix #573Joffrey F2015-04-281-2/+8
|
* Added unit tests for container limits in buildJoffrey F2015-04-271-0/+19
|
* * Separate file to store constantsJoffrey F2015-04-271-69/+71
| | | | * Added container_limits param to Client.build
* Updated exec API documentationexec_reworkJoffrey F2015-04-271-1/+0
|
* Exec API testsJoffrey F2015-04-273-27/+147
|
* Added check_resource decorator to interrupt command if container or image ↵Joffrey F2015-04-241-0/+15
| | | | argument is None
* Added tests for log_config paramlogconfig-supportJoffrey F2015-04-242-2/+47
|
* Handle ID truncate on client side in containers list (and changed default ↵client_side_truncJoffrey F2015-04-222-5/+9
| | | | from True to False)
* revertJoffrey F2015-04-221-6/+0
|
* Added integration testJoffrey F2015-04-222-0/+35
|
* Improved ulimit testsJoffrey F2015-04-222-1/+26
|
* assertRaises 2.6 compatJoffrey F2015-04-221-6/+3
|
* Add tests for ulimitsJoffrey F2015-04-221-4/+34
|
* BaseTestCase shims assertInJoffrey F2015-04-222-2/+14
|
* Merge branch 'sam/import-improvements' of ↵Joffrey F2015-04-223-16/+177
|\ | | | | | | | | | | | | | | | | https://github.com/ssssam/docker-py into ssssam-sam/import-improvements Conflicts: docker/client.py docker/unixconn/unixconn.py tests/integration_test.py
| * Add integration tests for Client.import_image() functionSam Thursfield2015-01-051-2/+160
| | | | | | | | | | | | Currently TestImportFromStream fails, because something is going wrong with the HTTP chunked transfer-encoding. This didn't work before, either (for a different reason).
| * Rewrite Client.import_image() and add less-magical versionsSam Thursfield2015-01-051-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Rather than have one function that can do 5 things and attempts to guess what the user wanted, it's good to have a function for each possible method of importing an image. Error cases are handled a lot better this way. The unit test test_import_image_from_file() was changed to be test_import_image_from_bytes(), because if we try to import a temporary file in the test, the 'data' parameter of the 'fake_request' object is an instance of a funny internal type like <_io.BufferedReader name='/tmp/tmpc9chux'> and it's very hard to match such a thing with `mock.assert_called_with()`.
| * Rework Unix connection code so that 'chunked' transfers workSam Thursfield2015-01-052-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | line lengthYuval Kohavi2015-04-111-3/+8
| | | | | | | | Signed-off-by: Yuval Kohavi <yuval.kohavi@gmail.com>
* | python 2.6 compatibleYuval Kohavi2015-04-111-6/+3
| | | | | | | | Signed-off-by: Yuval Kohavi <yuval.kohavi@gmail.com>
* | Adding port utils to split port rangesYuval Kohavi2015-04-031-0/+95
| | | | | | | | Signed-off-by: Yuval Kohavi <yuval.kohavi@gmail.com>
* | Use assertRaises in a backward compatible fashionJoffrey F2015-03-251-2/+4
| |
* | Added assertIn shim for py2.6Joffrey F2015-03-251-0/+5
| |
* | docs and unit test for security_optJoffrey F2015-03-251-0/+13
| |
* | Finish labels implementation, add tests and docsAanand Prasad2015-03-201-0/+48
| | | | | | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* | Update default API version to 1.18Aanand Prasad2015-03-201-2/+2
| | | | | | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* | Fix unit testsJoffrey F2015-03-051-1/+2
| |
* | Auto-detect integration testsJoffrey F2015-03-051-0/+22
| |
* | detect server version when version="auto"Tomas Tomecek2015-03-052-1/+27
| | | | | | | | | | | | heavily inspired by PR#281 Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
* | Properly close files and sockets in unit testsRoman Mohr2015-02-281-32/+31
| |
* | Merge pull request #502 from cpuguy83/498_dockerignore_special_namesJoffrey F2015-02-271-0/+4
|\ \ | | | | | | Add special cases for .dockerignore
| * | Add special cases for .dockerignoreBrian Goff2015-02-241-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #498 Allowing `Dockerfile` and `.dockerignore` in the exclusion filter completely breaks the build on docker < 1.5 In Docker 1.5 these entries are treated as special cases when included in the .dockerignore and are still sent as part of the context. The daemon ends up excluding them from any `ADD`, `COPY`, and cache validation. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
* | | Merge pull request #509 from docker/lxc_driver_test_compatJoffrey F2015-02-271-4/+16
|\ \ \ | | | | | | | | Lxc driver test compat
| * | | I suck at pythonlxc_driver_test_compatJoffrey F2015-02-261-5/+5
| | | |