Joffrey F
284c3d90d6
Remove redundant single-socket select call
...
Clean up + use pytest-timeout
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-03-20 09:25:29 +01:00
Viktor Adam
719d4e9e20
Allow cancelling the streams from other threads
...
Signed-off-by: Viktor Adam <rycus86@gmail.com>
2018-03-20 09:25:29 +01:00
Joffrey F
884261e241
Fix socket tests for TLS-enabled tests
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-03-15 16:37:58 -07:00
Joffrey F
90c0dbe5f8
Add test for container list with sparse=True
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-03-14 16:53:56 -07:00
Joffrey F
33f1ca9a48
Use same split rules for Dockerfile as other include/exclude patterns
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-03-14 14:11:42 -07:00
Joffrey F
13609359ac
Improve dockerignore comment test
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-03-05 11:49:43 -08:00
Wanzhi Du
74586cdd4c
Fix flake8 case
...
Signed-off-by: Wanzhi Du <wanzhi09@gmail.com>
2018-03-05 19:26:56 +08:00
Wanzhi Du
7a28ff3510
Ignore comment line from the .dockerignore file
...
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>
2018-03-05 18:10:09 +08:00
Joffrey F
9b8e022fa1
Merge pull request #1928 from mnottale/fix-spurious-resolution-macos-slowdown
...
Workaround requests resolving our unix socket URL on macosx.
2018-02-27 08:58:59 -08:00
Joffrey F
fe966764ef
Merge pull request #1927 from mefyl/master
...
Add test for "/.." patterns in .dockerignore.
2018-02-26 10:53:41 -08:00
Matthieu Nottale
15c26e7057
Workaround requests resolving our unix socket URL on macosx.
...
Signed-off-by: Matthieu Nottale <matthieu.nottale@docker.com>
2018-02-26 14:47:26 +01:00
mefyl
4295919103
Add test for "/.." patterns in .dockerignore.
...
Signed-off-by: mefyl <quentin.hocquet@docker.com>
2018-02-26 12:59:46 +01:00
Yong Tang
ab1f90a379
Cleanup containers during the tests
...
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>
2018-02-23 15:22:42 +00:00
Joffrey F
9a4cc53c52
Merge branch 'release' into 3.1.0-release
...
Signed-off-by: Joffrey F <joffrey@docker.com>
Conflicts:
docker/version.py
tests/unit/api_test.py
tests/unit/utils_test.py
2018-02-22 13:36:15 -08:00
Joffrey F
cc6e1b1249
Merge pull request #1914 from mefyl/master
...
Improve .dockerignore compliance
2018-02-22 13:35:41 -08:00
Joffrey F
ad5f49b690
Merge pull request #1918 from rycus86/service-restart-method
...
Shorthand method for service.restart()
2018-02-21 12:05:10 -08:00
Viktor Adam
e54e8f4199
Shorthand method for service.force_update()
...
Signed-off-by: Viktor Adam <rycus86@gmail.com>
2018-02-21 19:55:17 +00:00
mefyl
bb3ad64060
Fix .dockerignore: accept wildcard in inclusion pattern, honor last line precedence.
...
Signed-off-by: mefyl <quentin.hocquet@docker.com>
2018-02-21 17:05:26 +01:00
mefyl
c8f5a5ad40
Fix dockerignore handling of absolute path exceptions.
...
Signed-off-by: mefyl <quentin.hocquet@docker.com>
2018-02-21 17:05:26 +01:00
Joffrey F
8fd9d3c99e
GenericResources was introduced in 1.32
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-02-20 17:11:27 -08:00
Joffrey F
9b6b306e17
Code cleanup and version guards
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-02-20 16:25:17 -08:00
William Myers
820de848fa
Add support for generic resources to docker.types.Resources
...
- Add support for dict and list generic_resources parameter
- Add generic_resources integration test
Signed-off-by: William Myers <mwilliammyers@gmail.com>
2018-02-20 16:25:17 -08:00
Joffrey F
cc455d7fd5
Fix DockerClient pull bug when pulling image by digest
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-02-20 14:51:49 -08:00
mefyl
181c1c8eb9
Revert "Correctly support absolute paths in .dockerignore"
...
This reverts commit 34d50483e2
.
Signed-off-by: mefyl <quentin.hocquet@docker.com>
2018-02-19 13:37:35 +01:00
Joffrey F
4c708f568c
Fix test_login flakes
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-02-14 16:22:33 -08:00
Joffrey F
08803743c5
Merge pull request #1906 from docker/1352-data_stream_control
...
Add chunk_size parameter to data downloading methods
2018-02-14 16:22:02 -08:00
Joffrey F
581ccc9f7e
Add chunk_size parameter to data downloading methods (export, get_archive, save)
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-02-14 16:07:19 -08:00
Joffrey F
dbcf04388a
Merge pull request #1908 from docker/1861-credstore_login
...
Fix authconfig resolution when credStore is used combined with login()
2018-02-14 16:04:47 -08:00
Yong Tang
cbbc37ac7b
Clean up created volume from test_run_with_named_volume
...
This fix adds the volume id to the list so that it could be
cleaned up on test teardown.
The issue was originally from https://github.com/moby/moby/pull/36292
where an additional `somevolume` pre-exists in tests.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2018-02-14 13:01:16 +00:00
Joffrey F
3498b63fb0
Fix authconfig resolution when credStore is used combined with login()
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-02-13 18:55:56 -08:00
Joffrey F
48e45afe88
Add support for device_cgroup_rules parameter in host config
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-02-13 17:05:16 -08:00
Joffrey F
34d50483e2
Correctly support absolute paths in .dockerignore
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-02-12 14:59:41 -08:00
Joffrey F
6de7bab22f
Rewrite access check in create_archive with EAFP
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-02-05 13:38:32 -08:00
Joffrey F
539b321bd1
Add login data to the right subdict in auth_configs
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-02-05 13:38:19 -08:00
Joffrey F
a60011ca3a
Add workaround for bpo-32713
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-02-05 13:38:03 -08:00
Joffrey F
7c19772eb6
Merge pull request #1901 from docker/1899-create_archive_fix
...
Rewrite access check in create_archive with EAFP
2018-02-05 13:37:01 -08:00
Joffrey F
58639aecfa
Rewrite access check in create_archive with EAFP
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-02-05 13:11:19 -08:00
Joffrey F
855b71eabe
Merge pull request #1896 from docker/1895-login-auths
...
Add login data to the right subdict in auth_configs
2018-02-02 10:29:33 -08:00
Joffrey F
04bf470f6e
Add workaround for bpo-32713
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-02-01 16:51:36 -08:00
Joffrey F
83d185d695
Add login data to the right subdict in auth_configs
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-02-01 16:02:09 -08:00
Joffrey F
7fabcdaa4c
Update wait to always return a dict
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-01-31 16:52:26 -08:00
Joffrey F
ea44212969
Merge pull request #1888 from docker/1884-create_volumes_win32
...
Correctly parse volumes with Windows paths
2018-01-31 15:25:49 -08:00
Joffrey F
209ae2423d
Correctly parse volumes with Windows paths
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-01-31 15:12:15 -08:00
Joffrey F
df8422d079
Refuse API version < 1.21 ; Remove associated code paths
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-01-31 14:42:01 -08:00
Joffrey F
5347c168d0
Add support for publish mode for endpointspec ports
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-01-31 12:42:11 -08:00
Joffrey F
ccbde11c8d
Improve separation between auth_configs and general_configs
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-01-30 18:42:38 -08:00
Joffrey F
e304f91b46
Update detach tests to work with AF_INET as well
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-01-30 17:16:23 -08:00
Fumiaki MATSUSHIMA
dd858648a0
Use config.json for detachKeys
...
Signed-off-by: Fumiaki Matsushima <mtsmfm@gmail.com>
2018-01-30 17:16:23 -08:00
Joffrey F
17aa31456d
Properly support pulling all tags in DockerClient.images.pull
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-01-30 16:47:04 -08:00
Joffrey F
a05922e949
Merge pull request #1881 from docker/pytest-asserts
...
Use pytest asserts
2018-01-30 16:29:07 -08:00