summaryrefslogtreecommitdiff
path: root/tests/unit/cli/docker_client_test.py
Commit message (Collapse)AuthorAge
* Fix flake8Ulysses Souza2020-08-21
| | | | Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
* Update API version for docker clientUlysses Souza2020-08-21
| | | | Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
* Update tests to use the version on docker clientUlysses Souza2020-08-21
| | | | Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
* Removed Python2 supportalexrecuenco2020-08-21
| | | | | | | | | | | | | | | | | | | | | Closes: #6890 Some remarks, - `# coding ... utf-8` statements are not needed - isdigit on strings instead of a try-catch. - Default opening mode is read, so we can do `open()` without the `'r'` everywhere - Removed inheritinng from `object` class, it isn't necessary in python3. - `super(ClassName, self)` can now be replaced with `super()` - Use of itertools and `chain` on a couple places dealing with sets. - Used the operator module instead of lambdas when warranted `itemgetter(0)` instead of `lambda x: x[0]` `attrgetter('name')` instead of `lambda x: x.name` - `sorted` returns a list, so no need to use `list(sorted(...))` - Removed `dict()` using dictionary comprehensions whenever possible - Attempted to remove python3.2 support Signed-off-by: alexrecuenco <alejandrogonzalezrecuenco@gmail.com>
* Removed Python2 supportBastian Venthur2020-06-03
| | | | | | Closes: #6890 Signed-off-by: Bastian Venthur <bastian.venthur@flixbus.com>
* fix warning method is deprecated with testsInconnu082019-05-15
| | | | Signed-off-by: Taufiq Rahman <taufiqrx8@gmail.com>
* Retrieve certs from default path if not provided explicitlyJoffrey F2018-02-21
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Test and build on 3.6 (replaces 3.4) ; dist 3.6-compiled binariesJoffrey F2018-02-01
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Fix DOCKER_TLS_VERIFY bugJoffrey F2018-02-01
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Support mixed use of TLS flags and TLS environment variablesJoffrey F2018-01-19
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Replace unittest-style asserts with pytest assertsJoffrey F2018-01-04
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Recognize COMPOSE_TLS_VERSION env var in tls_config_from_optionsJoffrey F2017-03-22
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Use docker-py's default behavior when no explicit host on WindowsJoffrey F2016-09-28
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Force default host on windows to the default TCP host (instead of npipe)Joffrey F2016-09-16
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Remove surrounding quotes from TLS paths, if presentJoffrey F2016-08-09
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Fix stacktrace when handling timeout errorAanand Prasad2016-07-29
| | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* Add user agent to API callsBen Firshman2016-07-27
| | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Fix timeout value in error messageAanand Prasad2016-07-07
| | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* Remove obsolete assert_hostname testsJoffrey F2016-03-30
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Fix assert_hostname logic in tls_config_from_optionsJoffrey F2016-03-28
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add support for DOCKER_* variables in .env fileJoffrey F2016-03-24
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* tls_config_from_options unit testsJoffrey F2016-03-22
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* custom timeout test rewriteJoffrey F2015-09-02
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Support python 3Daniel Nephin2015-08-25
| | | | Signed-off-by: Daniel Nephin <dnephin@gmail.com>
* Run pre-commit on all filesDaniel Nephin2015-08-24
| | | | Signed-off-by: Daniel Nephin <dnephin@gmail.com>
* [pep8] make test files and config files pep8 validakoskaaa2015-03-25
| | | | Signed-off-by: akoskaaa <akos.hochrein@prezi.com>
* Use docker-py 1.0.0Zoltan Nagy2015-03-02
| | | | Signed-off-by: Zoltan Nagy <abesto@abesto.net>
* WIP: rename Fig to ComposeAanand Prasad2015-01-20
| | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* Some minor cleanup from yelp/figDaniel Nephin2014-12-11
| | | | Signed-off-by: Daniel Nephin <dnephin@yelp.com>
* Resolves #553, Resolves #546 - bug fixes with unit testsDaniel Nephin2014-10-18
Signed-off-by: Daniel Nephin <dnephin@gmail.com>