summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #2188 from docker/c6374-credhelpersJoffrey F2018-11-303-88/+267
|\ | | | | Modernize auth management
| * Add some credHelpers testsc6374-credhelpersJoffrey F2018-11-301-51/+230
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
| * Make AuthConfig a dict subclass for backward-compatibilityJoffrey F2018-11-301-2/+2
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
| * Modernize auth managementJoffrey F2018-11-283-43/+43
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | Fix test namesJoffrey F2018-11-301-25/+28
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | Merge branch 'master' of https://github.com/little-dude/docker-py into ↵Joffrey F2018-11-304-23/+162
|\ \ | |/ |/| | | little-dude-master
| * fix exec api inconsistencyCorentin Henry2018-11-282-2/+2
| | | | | | | | Signed-off-by: Corentin Henry <corentinhenry@gmail.com>
| * tests various exec_create/exec_start combinationsCorentin Henry2018-11-281-0/+69
| | | | | | | | | | | | Test the interation of the tty, demux and stream parameters Signed-off-by: Corentin Henry <corentinhenry@gmail.com>
| * add tests for _read_from_socketCorentin Henry2018-11-281-16/+82
| | | | | | | | | | | | | | | | | | | | Check that the return value against the various combination of parameters this function can take (tty, stream, and demux). This commit also fixes a bug that the tests uncovered a bug in consume_socket_output. Signed-off-by: Corentin Henry <corentinhenry@gmail.com>
| * implement stream demultiplexing for exec commandsCorentin Henry2018-11-274-7/+11
| | | | | | | | | | | | fixes https://github.com/docker/docker-py/issues/1952 Signed-off-by: Corentin Henry <corentinhenry@gmail.com>
* | Update DockerClient.images.pull to always stream responseadw1n-i2116Joffrey F2018-11-282-7/+22
| | | | | | | | | | | | Also raise a warning when users attempt to specify the "stream" parameter Signed-off-by: Joffrey F <joffrey@docker.com>
* | Fix pulling images with `stream=True`adw1n2018-11-282-3/+6
|/ | | | | | | | | | | | | | | | | Pulling an image with option `stream=True` like this: ``` client.api.pull('docker.io/user/repo_name', tag='latest', stream=True) ``` without consuming the generator oftentimes results in premature drop of the connection. Docker daemon tries to send progress of pulling the image to the client, but it encounters an error (broken pipe) and therefore cancells the pull action: ``` Thread 1 "dockerd-dev" received signal SIGPIPE, Broken pipe. ERRO[2018-09-03T05:12:35.746497638+02:00] Not continuing with pull after error: context canceled ``` As described in issue #2116, even though client receives response with status code 200, image is not pulled. Closes #2116 Signed-off-by: Przemysław Adamek <adw1n@users.noreply.github.com>
* Correctly handle longpath prefix in process_dockerfile when joining pathsc6356-longpath-prefixJoffrey F2018-11-261-1/+63
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* tests: fix failure due to pytest deprecationCorentin Henry2018-11-211-12/+12
| | | | Signed-off-by: Corentin Henry <corentinhenry@gmail.com>
* Properly convert non-string filters to expected string formatJoffrey F2018-11-081-2/+2
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add named parameter to image.save to identify which repository name to use ↵2124-image-save-with-nameJoffrey F2018-11-061-0/+27
| | | | | | in the resulting tarball Signed-off-by: Joffrey F <joffrey@docker.com>
* Rewrite utils.parse_host to detect more invalid addresses.ssh_protocol_supportJoffrey F2018-11-011-2/+10
| | | | | | | | The method now uses parsing methods from urllib to better split provided URLs. Addresses containing query strings, parameters, passwords or fragments no longer fail silently. SSH addresses containing paths are no longer accepted. Signed-off-by: Joffrey F <joffrey@docker.com>
* Clear error for cancellable streams over SSHJoffrey F2018-11-012-1/+7
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Update tests to properly dispose of client instances in tearDownJoffrey F2018-11-014-46/+48
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Update tests for ssh protocol compatibilityJoffrey F2018-11-012-0/+5
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add xfail to ignore 18.09 beta bugJoffrey F2018-10-311-0/+5
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add support for RollbackConfigrollback_configJoffrey F2018-08-091-0/+21
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add version checks and testJoffrey F2018-08-091-0/+14
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Merge pull request #2103 from asottile/allow_uid_integer_0Joffrey F2018-08-061-0/+6
|\ | | | | Allow user=0 to be passed in create_container
| * Allow user=0 to be passed in create_containerAnthony Sottile2018-08-021-0/+6
| | | | | | | | Signed-off-by: Anthony Sottile <asottile@umich.edu>
* | Improve placement handling in DockerClient.services.createknackworks-service-create-placement-preferencesJoffrey F2018-08-031-1/+7
|/ | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Merge pull request #2063 from mtszb/masterJoffrey F2018-06-293-0/+18
|\ | | | | Add support for `uts_mode` parameter in `Client.create_host_config`.
| * Add support for `uts_mode` parameter in `Client.create_host_config`.Marco Trillo2018-06-293-0/+18
| | | | | | | | | | | | | | | | | | | | This parameter allows to set the UTS namespace of the container, as in the `--uts=X` Docker CLI parameter: <https://docs.docker.com/engine/reference/run/#uts-settings---uts> The only allowed value, if set, is "host". Signed-off-by: Marco Trillo <martri@arantia.com> Signed-off-by: Diego Alvarez <dyako.developer@gmail.com>
* | On Windows, convert paths to use forward slashes before fnmatch callJoffrey F2018-06-282-485/+498
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | Improved .dockerignore pattern processing to better match Docker CLI behaviorJoffrey F2018-06-281-1/+11
|/ | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Fix detach assert function to account for new behavior in engine 18.06Joffrey F2018-06-281-1/+6
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Fix support for legacy .dockercfg auth config formatJoffrey F2018-06-272-52/+54
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Allow passing of env overrides to credstore through APIClient ctorJoffrey F2018-06-081-1/+1
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Fix socket reading function for TCP (non-HTTPS) connections on WindowsJoffrey F2018-06-061-2/+56
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Fix several integration tests on WindowsJoffrey F2018-05-252-15/+7
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Fix create_plugin on WindowsJoffrey F2018-05-251-1/+1
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Avoid unwanted modification of dockerfile pathJoffrey F2018-05-251-9/+44
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add ignore_removed param to containers.list() to control whether toJoffrey F2018-04-252-5/+23
| | | | | | raise or ignore NotFound Signed-off-by: Joffrey F <joffrey@docker.com>
* Merge branch 'master' of github.com:docker/docker-pyJoffrey F2018-04-252-2/+11
|\
| * Fix session timeout = None caseJoffrey F2018-04-251-7/+5
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
| * Total timeout should be HTTP timeout + operation timeoutJoffrey F2018-04-252-5/+5
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
| * stop(), restart(): Adjust request timeout.Matthieu Nottale2018-04-252-2/+13
| | | | | | | | Signed-off-by: Matthieu Nottale <matthieu.nottale@docker.com>
* | prune_builds testJoffrey F2018-04-251-0/+6
|/ | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Support absolute paths for in-context DockerfilesJoffrey F2018-04-121-1/+32
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Properly handle relative Dockerfile paths and Dockerfile on different drivesJoffrey F2018-03-301-0/+32
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add methods for /distribution/<name>/json endpointJoffrey F2018-03-291-0/+9
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Support building with Dockerfile outside of contextJoffrey F2018-03-271-0/+33
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add isolation param to buildJoffrey F2018-03-231-0/+15
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Don't descend into symlinks when building context tarJoffrey F2018-03-211-0/+15
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Remove redundant single-socket select callJoffrey F2018-03-202-17/+3
| | | | | | Clean up + use pytest-timeout Signed-off-by: Joffrey F <joffrey@docker.com>