summaryrefslogtreecommitdiff
path: root/tests/unit
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1315 from bfirsh/rename-docker-py-to-docker-sdk-pythonJoffrey F2016-12-021-1/+1
|\ | | | | Start to rename docker-py to docker-sdk-python
| * Start to rename docker-py to docker-sdk-pythonBen Firshman2016-11-281-1/+1
| | | | | | | | | | | | | | | | | | | | Pretty much everything except renaming the GitHub repo and documentation, which is not actually done yet. Nearer the release we can do a search/replace for all that stuff. Ref #1310 Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* | Merge branch 'master' of https://github.com/walkerlee/docker-py into ↵Joffrey F2016-12-021-1/+1
|\ \ | | | | | | | | | | | | | | | walkerlee-master Signed-off-by: Joffrey F <joffrey@docker.com>
| * | Add docker network IPAM options parameterWalker Lee2016-10-272-2/+4
| | | | | | | | | | | | Signed-off-by: Walker Lee <walkerlee.tw@gmail.com>
* | | Merge pull request #1328 from docker/ssladapter_transport_moduleBen Firshman2016-12-021-1/+1
|\ \ \ | | | | | | | | Move ssladapter to transport module
| * | | Move ssladapter to transport modulessladapter_transport_moduleJoffrey F2016-12-011-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
| * | | Client -> DockerClientJoffrey F2016-12-011-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | | | Move config type creation from docker.utils functions to classes inconfig_typesJoffrey F2016-12-014-248/+265
|/ / / | | | | | | | | | | | | | | | docker.types Signed-off-by: Joffrey F <joffrey@docker.com>
* | | Merge pull request #1303 from aanand/helpful-containers-warningBen Firshman2016-12-011-0/+11
|\ \ \ | | | | | | | | Show a helpful warning when people try to call `client.containers()`
| * | | Show a helpful warning when people try to call `client.containers()`Aanand Prasad2016-11-281-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | People upgrading to docker-py 2.0 without being aware of the new client API will likely try to call the old `containers()` method. This adds a helpful warning telling them to use APIClient to get the old API. Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* | | | Merge pull request #1308 from docker/docker_clientJoffrey F2016-11-302-3/+3
|\ \ \ \ | | | | | | | | | | Rename Client -> DockerClient
| * | | | Rename Client -> DockerClientdocker_clientJoffrey F2016-11-282-3/+3
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | Replace references to old Client with APIClient Moved contents of services.md to appropriate locations Signed-off-by: Joffrey F <joffrey@docker.com>
* | | | Merge pull request #1277 from ↵Ben Firshman2016-11-291-1/+75
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | bodnarbm/do-not-traverse-ignored-directories-with-no-potential-exceptions Do not traverse excluded directories that are not prefixes of dockerignore exceptions.
| * | | | Add unit tests for should_check_directory.Brandon Bodnar2016-11-261-1/+75
| |/ / / | | | | | | | | | | | | Signed-off-by: Brandon Bodnar <bodnarbm@gmail.com>
* | | | Merge pull request #1297 from docker/stepanstipl-allow_custom_pid_modeJoffrey F2016-11-281-0/+13
|\ \ \ \ | | | | | | | | | | Allow custom pid mode
| * | | | Re-enable pid_mode checks for API < 1.24stepanstipl-allow_custom_pid_modeJoffrey F2016-11-281-0/+13
| | |/ / | |/| | | | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | | | Merge pull request #1309 from bfirsh/remove-maintainer-from-dockerfilesJoffrey F2016-11-281-5/+0
|\ \ \ \ | | | | | | | | | | Remove MAINTAINER from Dockerfiles
| * | | | Remove MAINTAINER from DockerfilesBen Firshman2016-11-241-5/+0
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | It was deprecated in https://github.com/docker/docker/pull/25466 (Sorry @shin- ;) Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* | | | Merge pull request #1317 from ↵Joffrey F2016-11-281-1/+9
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | bfirsh/fix-environment-variable-file-with-new-lines Fix parsing for an environment file with newlines
| * | | Fix parsing for an environment file with newlinesJon Cotton2016-11-281-1/+9
| |/ / | | | | | | | | | | | | | | | Fixes the new, purposely broken test added in the previous commit. Signed-off-by: Jon Cotton <jc@finaltransfer.net>
* | | Remove support for host_config in Client.startJoffrey F2016-11-281-35/+11
|/ / | | | | | | | | | | | | Any additional arguments passed to start will raise a DeprecatedMethod (DockerException) exception. Signed-off-by: Joffrey F <joffrey@docker.com>
* | Add helpful error for APIClient methods on ClientBen Firshman2016-11-221-0/+14
| | | | | | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* | Add new user-focused APIBen Firshman2016-11-2211-32/+1013
| | | | | | | | | | | | See #1086 Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* | Move APIClient tests into single fileBen Firshman2016-11-222-79/+71
| | | | | | | | | | | | For some reason this was spread across two files. Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* | Rename DockerClientTest to BaseAPIClientTestBen Firshman2016-11-228-18/+18
| | | | | | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* | Rename Client to APIClientBen Firshman2016-11-229-42/+45
| | | | | | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* | Drop support for Python 2.6Ben Firshman2016-11-226-43/+35
| | | | | | | | | | | | | | Because it's ancient. If you're still using it, you can use an old version of docker-py. Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* | Make docker.ssladaptor a single fileBen Firshman2016-11-221-1/+1
| | | | | | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* | Make docker.auth a single fileBen Firshman2016-11-222-7/+5
| | | | | | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* | Merge pull request #1236 from docker/host_config_isolationJoffrey F2016-11-171-1/+12
|\ \ | | | | | | Add support for isolation param in host config
| * | Add support for isolation param in host confighost_config_isolationJoffrey F2016-09-291-1/+12
| | | | | | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | | Merge pull request #1281 from ↵Joffrey F2016-11-141-1/+2
|\ \ \ | | | | | | | | | | | | | | | | TomasTomecek/1265-ssl-test-no-sslX-support-in-openssl ssl,test: OpenSSL may not support ssl2
| * | | ssl,test: OpenSSL may not support ssl2Tomas Tomecek2016-11-141-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | Fixes #1265 Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
* | | | Fix linting errorAanand Prasad2016-11-141-0/+1
|/ / / | | | | | | | | | | | | | | | | | | This seems to have been ignored by older versions of flake8, and fixed in version 3.1.0 or 3.1.1. Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* | | Fix broken unit testBen Firshman2016-11-071-1/+1
| | | | | | | | | | | | | | | | | | Introduced by https://github.com/docker/docker-py/pull/1230 Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* | | Merge pull request #1230 from LabattFoodService/updateNodeJoffrey F2016-11-072-0/+41
|\ \ \ | |_|/ |/| | enable setting of node labels #1225
| * | enable setting of node labels #1225Nathan Shirlberg2016-09-272-0/+41
| |/ | | | | | | | | | | | | | | Added update_node function to enable setting labels on nodes. This exposes the Update a Node function from the Docker API and should enable promoting/demoting manager nodes inside a swarm. Signed-off-by: Nathan Shirlberg <nshirlberg@labattfood.com>
* | Update tests to avoid failures on Windows platformsJoffrey F2016-10-144-58/+98
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | Merge pull request #1256 from docker/format_env_unicode_bugJoffrey F2016-10-131-2/+17
|\ \ | | | | | | Do not break when calling format_environment with unicode values
| * | Do not break when calling format_environment with unicode valuesformat_env_unicode_bugJoffrey F2016-10-121-2/+17
| | | | | | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | | Remove trailing slashes in result of utils.parse_hostbase_url_trailing_slashJoffrey F2016-10-121-0/+5
|/ / | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | Move requires_api_version to helpersBen Firshman2016-10-033-18/+18
|/ | | | | | | Because it's a helper, not a base thing. In preparation for moving/deleting the unit test base classes. Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Merge pull request #1210 from docker/identity-token-supportJoffrey F2016-09-161-1/+25
|\ | | | | Add support for identity tokens in config file
| * Add support for identity tokens in config file.identity-token-supportJoffrey F2016-09-151-1/+25
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | Fix a few pep8 issuesBen Firshman2016-09-142-4/+4
|/ | | | | | autopep8 --in-place --recursive --experimental -aaa --ignore E309 . Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Fix unit test which doesn't do anythingBen Firshman2016-09-072-37/+10
| | | | | | | It also overrode the fake API inspect endpoint with a broken response. Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Fix licensesBen Firshman2016-09-052-28/+0
| | | | | | | * Complete main LICENSE * Remove unnecessary licenses from individual files Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Add support for force disconnect1105-network-apiJoffrey F2016-08-311-1/+1
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Merge pull request #1167 from docker/1075-from-env-versionJoffrey F2016-08-251-0/+8
|\ | | | | Support version parameter in `Client.from_env`
| * Support version parameter in `Client.from_env`1075-from-env-versionJoffrey F2016-08-251-0/+8
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>