summaryrefslogtreecommitdiff
path: root/tests/unit/utils_test.py
Commit message (Collapse)AuthorAgeFilesLines
* Docs and tests for pids_limit.aiden0z-masterJoffrey F2016-08-231-0/+9
| | | | Signed-off-by: Joffrey F <joffrey@docker.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>
* | Implemented dns_opt support (from api 1.21)George Lester2016-08-071-0/+13
| | | | | | | | Signed-off-by: George Lester <glester491@gmail.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 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>
* Merge pull request #1066 from yunzhu-li/blkio-controlJoffrey F2016-06-151-0/+19
|\ | | | | Add support for Block IO constraints in HostConfig
| * Add support for Block IO constraints in HostConfigyunzhu-li2016-06-051-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | This adds support for Block IO constraint options: - blkio-weight - blkio-weight-device - device-read-bps - device-write-bps - device-read-iops - device-write-iops Signed-off-by: yunzhu-li <contact@yunzhu.li>
* | Update parse_host and testsJoffrey F2016-06-021-4/+3
|/ | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* support Python 3.5Thomas Grainger2016-05-191-51/+19
| | | | Signed-off-by: Thomas Grainger <tom.grainger@procensus.com>
* Resolve path traversal in .dockerignore patternsAanand Prasad2016-05-161-0/+8
| | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* Merge pull request #1004 from klj613/allow-equals-character-in-env-fileJoffrey F2016-04-271-0/+8
|\ | | | | makes it possible to have '=' in the env file
| * makes it possible to have '=' in the env fileKristian Lewis Jones2016-03-221-0/+8
| | | | | | | | | | | | note that the docker command line flag --env-file also allows '=' in the env file Signed-off-by: Kristian Lewis Jones <klj613@kristianlewisjones.com>
* | Tests for match_hostname backportJoffrey F2016-03-291-17/+0
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | Support OomScoreAdj in host configurationAditya Marella2016-03-221-0/+10
| | | | | | | | Signed-off-by: Aditya Marella <aditya.marella@gmail.com>
* | Support passing an alternate environment dict to kwargs_from_envkwargs_from_env_altJoffrey F2016-03-211-0/+14
|/ | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* If tcp host is provided while TLS is enabled, convert to httpstcp-to-https-parsehostJoffrey F2016-03-171-1/+6
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Fix enable_tls issue #984Joffrey F2016-03-111-13/+1
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Fix TLS regressionsAanand Prasad2016-02-231-3/+1
| | | | | | | | | - Set `verify` to the CA cert path if one has been specified, rather than `True` - Don't set `assert_fingerprint` Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* Never exclude Dockerfile from the build context.926-ignored_dockerfilesJoffrey F2016-02-091-5/+17
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Merge pull request #920 from docker/ssl_version_simplerJoffrey F2016-02-051-0/+17
|\ | | | | Remove obsolete SSL version computation
| * Remove obsolete SSL version computationssl_version_simplerJoffrey F2016-02-031-0/+17
| | | | | | | | | | | | | | | | Recent versions of urllib3 (including the one packaged by requests) will automatically reject SSLv2/3. Additional test to check urllib3's behavior (mostly for release/packaging) Signed-off-by: Joffrey F <joffrey@docker.com>
* | Re-write kwargs_from_env to handle TLS options betterMike Dougherty2016-02-041-4/+51
| | | | | | | | | | | | | | | | This more closely matches the way the docker client interprets the relevant environment variables. Among other things, it's now possible to set DOCKER_TLS_VERIFY=false. Signed-off-by: Mike Dougherty <mike.dougherty@docker.com>
* | Add support for shm_size.Spencer Rinehart2016-02-041-0/+8
|/ | | | | | | --shm-size was added to Docker in 1.10 via docker/docker#16168. See docker/compose#2823 for more details. Signed-off-by: Spencer Rinehart <anubis@overthemonkey.com>
* Support unspecified protocol in base_url when using TLS894-docker_host_envJoffrey F2016-01-281-0/+5
| | | | | | (assume HTTPS) Signed-off-by: Joffrey F <joffrey@docker.com>
* parse_bytes: Add ability to handle 64-bit integers in py2Joffrey F2016-01-181-5/+20
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Improve host devices supportJoffrey F2016-01-181-1/+60
| | | | | | | | Add unit tests for utils.parse_devices Rewrite documentation Support dict and string format for device declaration Signed-off-by: Joffrey F <joffrey@docker.com>
* Normalise/fix networking API JSON keysAanand Prasad2016-01-181-6/+6
| | | | | | | - Use CamelCase - `auxaddresses` -> `AuxiliaryAddresses` Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* Implement support for network-scoped aliasesAanand Prasad2016-01-141-1/+9
| | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* allow custom ipam options when creating networksRyan Belgrave2016-01-041-1/+16
| | | | Signed-off-by: Ryan Belgrave <rmb1993@gmail.com>
* Improve get_paths performance by not descending into ignored directoriesThomas Boyt2015-12-081-3/+3
| | | | Signed-off-by: Thomas Boyt <thomas@ledgerx.com>
* Add tests for new cases covered by parse_repository_tag860-deprecate-resolve-repo-nameJoffrey F2015-11-241-14/+46
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* create_host_config: allow setting oom_kill_disableMichael Schubert2015-11-101-1/+8
| | | | Signed-off-by: Michael Schubert <schu@schu.io>
* Fix py3.2 test failure and unicode behaviorJoffrey F2015-10-271-5/+9
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Support unicode commands.Daniel Nephin2015-10-261-1/+14
| | | | Signed-off-by: Daniel Nephin <dnephin@gmail.com>
* Reorganize test directoriesreorganize_testsJoffrey F2015-10-211-0/+716
More clearly separate unit and integration tests Allow splitting into multiple files Cleaner Signed-off-by: Joffrey F <joffrey@docker.com>