summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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 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>
* Add test for import_image with changes param1064-import-changesJoffrey F2016-09-061-0/+42
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* 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-312-2/+30
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add support for labels and enable_ipv6 in create_networkJoffrey F2016-08-311-1/+26
| | | | | | Tests + docs 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-232-2/+83
|\ \ \ | | | | | | | | | | | | joshpurvis-jp-cpushares
| * | | Move cpu_shares and cpuset_cpu to HostConfig when API >= 1.18Josh Purvis2016-08-152-2/+83
| | | | | | | | | | | | | | | | Signed-off-by: Josh Purvis <joshua.purvis@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>
* | | | 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>
* | | | Private images support in create_service / update_service1085-service-supportJoffrey F2016-08-231-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactor auth header computation Add tasks methods and documentation. Signed-off-by: Joffrey F <joffrey@docker.com>
* | | | Add services documentationJoffrey F2016-08-221-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | | | New docker.types subpackage containing advanced config dictionary typesJoffrey F2016-08-191-3/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Tests and docs updated to match docker.utils.types has been moved to docker.types Signed-off-by: Joffrey F <joffrey@docker.com>
* | | | Service API integration testsJoffrey F2016-08-171-0/+100
| | | | | | | | | | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | | | Remove references to "ExecutionDriver"Brian Goff2016-08-173-39/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Docker no longer has an `ExecutionDriver` as of Docker 1.11. The field in the `docker info` API will not be present in 1.13. Found this while working on docker/docker#25721 Signed-off-by: Brian Goff <cpuguy83@gmail.com>
* | | | docker client consistency: don't quote ':/'Tomas Tomecek2016-08-171-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>
* | | | Add `nodes` and `inspect_node` methodsswarm-supportJoffrey F2016-08-111-0/+29
| | | | | | | | | | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | | | Add support for custom name in SwarmSpecJoffrey F2016-08-041-0/+18
| | | | | | | | | | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | | | Update arguments for several Swarm API methodsJoffrey F2016-08-041-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add Client.update_swarm method Add test for Client.update_swarm Signed-off-by: Joffrey F <joffrey@docker.com>
* | | | Add new init_swarm test with custom specJoffrey F2016-08-031-1/+13
| | | | | | | | | | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | | | Update swarm methods to include newly added parametersJoffrey F2016-08-031-0/+55
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | Rename swarm methods to be more explicit Utility methods / types to create swarm spec objects Integration tests Signed-off-by: Joffrey F <joffrey@docker.com>
* | | Test fixes and updated Makefile for 1.12 testingtest_fixes_1.12Joffrey F2016-08-031-1/+1
| | | | | | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.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>
* | | Send LinkLocalIPs as part of IPAMConfig dictionarycompose-3757-linklocal-fixJoffrey F2016-07-251-0/+21
| | | | | | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.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>
* | | Rename read methods for clarityAanand Prasad2016-07-132-4/+4
| | | | | | | | | | | | | | | | | | | | | read_socket() is now just read(), because its behaviour is consistent with `os.read` et al. Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* | | Rename next_packet_size to next_frame_sizeAanand Prasad2016-07-132-4/+4
| | | | | | | | | | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* | | Move socket-reading test helpers into docker.utils.socketAanand Prasad2016-07-133-50/+9
| | | | | | | | | | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* | | Mock read_from_socket methodJoffrey F2016-07-131-1/+6
| | | | | | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | | Read from socket after sending TCP upgrade headers.Joffrey F2016-07-131-2/+2
| | | | | | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | | Add hijack hints for non-detached exec api callsDavid Gageot2016-07-131-2/+30
| | | | | | | | | | | | Signed-off-by: David Gageot <david@gageot.net>
* | | volumes,create: support adding labelsTomas Tomecek2016-07-132-1/+20
| | | | | | | | | | | | | | | | | | Fixes #1102 Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
* | | Change double underscore in test case names for _set_auth_headersJustin Michalicek2016-07-121-3/+3
| | | | | | | | | | | | | | | | | | * Change test__set_auth_headers_* methods to test_set_auth_headers_* Signed-off-by: Justin Michalicek <jmichalicek@gmail.com>
* | | Update build unit testsJustin Michalicek2016-07-121-1/+60
|/ / | | | | | | | | | | | | | | | | | | | | * Test that the request from build when the client has auth configs contains the correct X-Registry-Config header * Test that BuildApiMixin._set_auth_headers() updates the passed in headers dict with auth data from the client * Test that BuildApiMixin._set_auth_headers() leaves headers dict intact when there is no _auth_config on the client. Signed-off-by: Justin Michalicek <jmichalicek@gmail.com>
* | Add integration tests for different types of kill signalsJoffrey F2016-06-281-0/+30
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>