summaryrefslogtreecommitdiff
path: root/tests/unit
Commit message (Collapse)AuthorAgeFilesLines
* Use same split rules for Dockerfile as other include/exclude patterns1956-dockerignore-include-dockerfileJoffrey F2018-03-141-0/+5
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Merge pull request #1928 from mnottale/fix-spurious-resolution-macos-slowdownJoffrey F2018-02-271-1/+1
|\ | | | | Workaround requests resolving our unix socket URL on macosx.
| * Workaround requests resolving our unix socket URL on macosx.Matthieu Nottale2018-02-261-1/+1
| | | | | | | | Signed-off-by: Matthieu Nottale <matthieu.nottale@docker.com>
* | Merge pull request #1927 from mefyl/masterJoffrey F2018-02-261-0/+16
|\ \ | |/ |/| Add test for "/.." patterns in .dockerignore.
| * Add test for "/.." patterns in .dockerignore.mefyl2018-02-261-0/+16
| | | | | | | | Signed-off-by: mefyl <quentin.hocquet@docker.com>
* | Merge branch 'release' into 3.1.0-releaseJoffrey F2018-02-221-1/+0
|\ \ | |/ |/| | | | | | | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com> Conflicts: docker/version.py tests/unit/api_test.py tests/unit/utils_test.py
| * Rewrite access check in create_archive with EAFPJoffrey F2018-02-051-2/+6
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
| * Add login data to the right subdict in auth_configsJoffrey F2018-02-051-0/+18
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
| * Add workaround for bpo-32713Joffrey F2018-02-051-0/+12
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | Fix .dockerignore: accept wildcard in inclusion pattern, honor last line ↵mefyl2018-02-211-64/+20
| | | | | | | | | | | | precedence. Signed-off-by: mefyl <quentin.hocquet@docker.com>
* | Fix dockerignore handling of absolute path exceptions.mefyl2018-02-211-0/+7
| | | | | | | | Signed-off-by: mefyl <quentin.hocquet@docker.com>
* | Revert "Correctly support absolute paths in .dockerignore"mefyl2018-02-191-17/+10
| | | | | | | | | | | | This reverts commit 34d50483e20e86cb7ab22700e036a5c4d319268a. Signed-off-by: mefyl <quentin.hocquet@docker.com>
* | Fix test_login flakesJoffrey F2018-02-141-6/+7
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | Merge pull request #1906 from docker/1352-data_stream_controlJoffrey F2018-02-142-3/+11
|\ \ | | | | | | Add chunk_size parameter to data downloading methods
| * | Add chunk_size parameter to data downloading methods (export, get_archive, save)1352-data_stream_controlJoffrey F2018-02-142-3/+11
| | | | | | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | | Fix authconfig resolution when credStore is used combined with login()1861-credstore_loginJoffrey F2018-02-131-0/+13
|/ / | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | Correctly support absolute paths in .dockerignorec5672-dockerignore-abspathJoffrey F2018-02-121-10/+17
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | Merge pull request #1901 from docker/1899-create_archive_fixJoffrey F2018-02-051-2/+6
|\ \ | | | | | | Rewrite access check in create_archive with EAFP
| * | Rewrite access check in create_archive with EAFP1899-create_archive_fixJoffrey F2018-02-051-2/+6
| |/ | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | Merge pull request #1896 from docker/1895-login-authsJoffrey F2018-02-021-0/+18
|\ \ | | | | | | Add login data to the right subdict in auth_configs
| * | Add login data to the right subdict in auth_configs1895-login-authsJoffrey F2018-02-011-0/+18
| |/ | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | Add workaround for bpo-32713c5618-negative-mtime-tarJoffrey F2018-02-011-0/+12
|/ | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Update wait to always return a dictwait_returnJoffrey F2018-01-312-4/+4
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Merge pull request #1888 from docker/1884-create_volumes_win32Joffrey F2018-01-311-2/+5
|\ | | | | Correctly parse volumes with Windows paths
| * Correctly parse volumes with Windows paths1884-create_volumes_win32Joffrey F2018-01-311-2/+5
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | Refuse API version < 1.21 ; Remove associated code pathscleanup_deprecatedJoffrey F2018-01-318-157/+36
|/ | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add support for publish mode for endpointspec ports1878-publishmodeJoffrey F2018-01-311-0/+75
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Improve separation between auth_configs and general_configsimprove_authconfig_genconfig_separationJoffrey F2018-01-304-62/+93
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Use config.json for detachKeysFumiaki MATSUSHIMA2018-01-302-53/+84
| | | | Signed-off-by: Fumiaki Matsushima <mtsmfm@gmail.com>
* Properly support pulling all tags in DockerClient.images.pull1761-dockerclient-pullJoffrey F2018-01-301-2/+15
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Merge pull request #1881 from docker/pytest-assertsJoffrey F2018-01-3014-1195/+878
|\ | | | | Use pytest asserts
| * Use pytest assertspytest-assertsJoffrey F2018-01-3014-1195/+878
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | Do not break when archiving broken symlinks1841-tar-broken-symlinksJoffrey F2018-01-291-0/+26
|/ | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Return tuple instead of dict in exec_runJoffrey F2018-01-261-4/+6
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Merge branch 'add_exit_code_to_exec_run' of ↵Joffrey F2018-01-261-0/+11
|\ | | | | | | https://github.com/hnq90/docker-py into hnq90-add_exit_code_to_exec_run
| * Add exit code to exec_runHuyNQ2017-11-131-0/+11
| | | | | | | | Signed-off-by: HuyNQ <huy@huynq.net>
* | Bump default API version to 1.35Joffrey F2018-01-262-3/+6
| | | | | | | | | | | | | | | | | | Add ContainerSpec.isolation support Add until support in logs Add condition support in wait Add workdir support in exec_create Signed-off-by: Joffrey F <joffrey@docker.com>
* | Add support for experimental platform flag in build and pull1855-platform-optionJoffrey F2018-01-231-1/+1
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | Merge pull request #1727 from mbelang/join-swarn-default-listen-addressJoffrey F2017-12-182-0/+49
|\ \ | | | | | | Add join_swarm default listen address
| * | Add join_swarm default listen addressMaxime Belanger2017-08-292-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | Since the docker CLI adds a default listen address (0.0.0.0:2377) when joining a node to the swarm, the docker-py api will support the same behavior to easy configuration. Signed-off-by: Maxime Belanger <maxime.b.belanger@gmail.com>
| * | Commit d798afca made changes for the handling of '**' patterns inVeli-Matti Lintu2017-08-211-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | .dockerignore. This causes an IndexError with patterns ending with '**', e.g. 'subdir/**'. This adds a missing boundary check before checking for trailing '/'. Signed-off-by: Veli-Matti Lintu <veli-matti.lintu@nosto.com>
| * | Fix handling of non-multiplexed (TTY) streams over upgraded socketsJoffrey F2017-08-171-1/+1
| | | | | | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
| * | Allow detach and remove for api version >= 1.25 and use auto_remove when ↵David Steines2017-08-151-0/+30
| | | | | | | | | | | | | | | | | | both are set. Continue raising an exception for api versions <1.25. Signed-off-by: David Steines <d.steines@gmail.com>
| * | Leading slash in .dockerignore should be ignoredJoffrey F2017-08-151-0/+5
| | | | | | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
| * | Return generator for output of load_image endpointJoffrey F2017-08-151-0/+14
| | | | | | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | | Merge pull request #1828 from pkit/fix_error_from_httpexJoffrey F2017-12-181-1/+15
|\ \ \ | | | | | | | | fixes create_api_error_from_http_exception()
| * | | fixes create_api_error_from_http_exception()Constantine Peresypkin2017-12-181-1/+15
| | |/ | |/| | | | | | | | | | | | | | | | | | | `create_api_error_from_http_exception()` is never tested in the original code and will fail miserably when fed with empty `HTTPError` object see fixes in requests for this behaviour: https://github.com/requests/requests/pull/3179 Signed-off-by: Constantine Peresypkin <pconstantine@gmail.com>
* | | Retrieve container logs before container exits / is removed1813-run-autoremoveJoffrey F2017-12-142-5/+4
| | | | | | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | | Merge pull request #1807 from rycus86/update_service_from_prev_specJoffrey F2017-12-141-2/+2
|\ \ \ | | | | | | | | Update service from prev spec
| * | | Service model update changesViktor Adam2017-11-141-2/+2
| |/ / | | | | | | | | | Signed-off-by: Viktor Adam <rycus86@gmail.com>