summaryrefslogtreecommitdiff
path: root/tests/unit
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* 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>
* | Merge pull request #1168 from docker/aiden0z-masterJoffrey F2016-08-251-0/+9
|\ \ | | | | | | Support pids_limit in HostConfig
| * | Docs and tests for pids_limit.aiden0z-masterJoffrey F2016-08-231-0/+9
| |/ | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | Fix creating containers with env vars with unicode charactersfermayo2016-08-251-0/+20
| | | | | | | | Signed-off-by: Fernando Mayo <fernando@docker.com>
* | Merge pull request #1082 from masci/fix_stream_helperJoffrey F2016-08-231-1/+41
|\ \ | |/ |/| Invoke self._result passing `json=True` when `decode=True`
| * invoke self._result with json=True if decode=TrueMassimiliano Pippi2016-06-071-1/+41
| | | | | | | | Signed-off-by: Massimiliano Pippi <massi@datadoghq.com>
* | support MemoryReservation and KernelMemoryKay Yan2016-08-231-0/+14
| | | | | | | | Signed-off-by: Kay Yan <kay.yan@daocloud.io>
* | Merge branch 'master' of https://github.com/srikalyan/docker-py into ↵Joffrey F2016-08-231-1/+10
|\ \ | | | | | | | | | srikalyan-master
| * | Added support for user namespace.Srikalyan Swayampakula2016-06-301-1/+10
| | | | | | | | | | | | Signed-off-by: Srikalyan Swayampakula <srikalyansswayam@gmail.com>
* | | Merge branch 'jp-cpushares' of https://github.com/joshpurvis/docker-py into ↵Joffrey F2016-08-231-0/+54
|\ \ \ | | | | | | | | | | | | joshpurvis-jp-cpushares
| * | | Move cpu_shares and cpuset_cpu to HostConfig when API >= 1.18Josh Purvis2016-08-151-0/+54
| | | | | | | | | | | | | | | | Signed-off-by: Josh Purvis <joshua.purvis@gmail.com>
* | | | Merge pull request #1131 from Knetic/dnsoptsJoffrey F2016-08-231-0/+13
|\ \ \ \ | |/ / / |/| | | Implemented dns_opt support (from api 1.21)
| * | | Implemented dns_opt support (from api 1.21)George Lester2016-08-071-0/+13
| | | | | | | | | | | | | | | | Signed-off-by: George Lester <glester491@gmail.com>
* | | | docker client consistency: don't quote ':/'Tomas Tomecek2016-08-101-2/+8
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | E.g. docker client `/v1.21/images/localhost:5000/busybox/push?tag=` docker-py `/v1.21/images/localhost%3A5000%2Fbusybox/push` Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
* | | Avoid crashing in update_headers decorator when headers kwarg is None1148-update-headers-fixJoffrey F2016-08-021-1/+34
| | | | | | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | | Add support for sysctl when creating containerJari Takkala2016-08-011-0/+27
| | | | | | | | | | | | | | | | | | Closes #1144 Signed-off-by: Jari Takkala <jtakkala@gmail.com>
* | | Add support for IPv6 docker host connections.1135-ipv6-docker-hostJoffrey F2016-07-271-1/+9
| | | | | | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | | Default to npipe address on WindowsAanand Prasad2016-07-261-2/+2
| | | | | | | | | | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* | | Add unit testsKeerthan Reddy Mala2016-07-221-0/+26
| | | | | | | | | | | | Signed-off-by: Keerthan Reddy Mala <kmala@deis.com>
* | | Set custom user agent on clientBen Firshman2016-07-201-0/+30
| | | | | | | | | | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* | | Mock read_from_socket methodJoffrey F2016-07-131-1/+6
| | | | | | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>