summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Allow cancelling the streams from other threadsViktor Adam2018-03-203-0/+89
| | | | Signed-off-by: Viktor Adam <rycus86@gmail.com>
* Fix socket tests for TLS-enabled testsJoffrey F2018-03-151-5/+5
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add test for container list with sparse=TrueJoffrey F2018-03-141-0/+22
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* 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>
* Improve dockerignore comment testJoffrey F2018-03-051-1/+5
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Fix flake8 caseWanzhi Du2018-03-051-1/+1
| | | | Signed-off-by: Wanzhi Du <wanzhi09@gmail.com>
* Ignore comment line from the .dockerignore fileWanzhi Du2018-03-051-1/+2
| | | | | | | | | This fixed the bug that test comment line in .dockerignore file as ignore rule bug. Add test for "# comment" patterns in .dockerignore. Signed-off-by: Wanzhi Du <wanzhi09@gmail.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>
* | Cleanup containers during the testsYong Tang2018-02-232-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | This fix tries to clean up the containers during the tests so that no pre-existing volumes left in docker integration tests. This fix adds `-v` when removing containers, and makes sure containers launched in non-daemon mode are removed. This fix is realted to moby PR 36292 Signed-off-by: Yong Tang <yong.tang.github@outlook.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>