summaryrefslogtreecommitdiff
path: root/tests/integration/models_containers_test.py
Commit message (Collapse)AuthorAgeFilesLines
* Change use_config_proxy default value to True to match CLI behaviorJoffrey F2019-05-011-6/+7
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Refactor and add testsUlysses Souza2019-03-261-8/+46
| | | | Signed-off-by: Ulysses Souza <ulysses.souza@docker.com>
* add ports to containersKarl Kuehn2019-03-261-0/+22
| | | | Signed-off-by: Karl Kuehn <kuehn.karl@gmail.com>
* Merge pull request #2288 from hannseman/container-run-create-volume_driverIan Campbell2019-03-251-0/+10
|\ | | | | Move volume_driver to RUN_HOST_CONFIG_KWARGS
| * Move volume_driver to RUN_HOST_CONFIG_KWARGSHannes Ljungberg2019-03-231-0/+10
| | | | | | | | | | | | Fixes #2271 Signed-off-by: Hannes Ljungberg <hannes@5monkeys.se>
* | Avoid race condition on short executionUlysses Souza2019-03-251-2/+7
|/ | | | | | | | - Add a sleep of 2 seconds to be sure the logs can be requested before the daemon removes the container when run with auto_remove=True Signed-off-by: Ulysses Souza <ulysses.souza@docker.com>
* Remove use_config_proxy from exec. Add use_config_proxy docs to DockerClientproxy_env_fixesJoffrey F2019-01-091-0/+13
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Clear error for cancellable streams over SSHJoffrey F2018-11-011-0/+3
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Fix several integration tests on WindowsJoffrey F2018-05-251-0/+3
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Remove redundant single-socket select callJoffrey F2018-03-201-6/+1
| | | | | | Clean up + use pytest-timeout Signed-off-by: Joffrey F <joffrey@docker.com>
* Allow cancelling the streams from other threadsViktor Adam2018-03-201-0/+21
| | | | Signed-off-by: Viktor Adam <rycus86@gmail.com>
* Add test for container list with sparse=TrueJoffrey F2018-03-141-0/+22
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Cleanup containers during the testsYong Tang2018-02-231-2/+8
| | | | | | | | | | | | 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>
* Clean up created volume from test_run_with_named_volumeYong Tang2018-02-141-1/+2
| | | | | | | | | | 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>
* Update wait to always return a dictwait_returnJoffrey F2018-01-311-2/+2
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Use pytest assertspytest-assertsJoffrey F2018-01-301-16/+14
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Return tuple instead of dict in exec_runJoffrey F2018-01-261-3/+3
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Merge branch 'add_exit_code_to_exec_run' of ↵Joffrey F2018-01-261-2/+13
|\ | | | | | | https://github.com/hnq90/docker-py into hnq90-add_exit_code_to_exec_run
| * Add exit code to exec_runHuyNQ2017-11-131-2/+13
| | | | | | | | Signed-off-by: HuyNQ <huy@huynq.net>
* | Don't attempt to retrieve container's stderr if `auto_remove` was set1813-autoremove-errorJoffrey F2017-12-191-1/+13
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | Retrieve container logs before container exits / is removed1813-run-autoremoveJoffrey F2017-12-141-3/+20
|/ | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* client.containers.run returns None if none of json-file or journald logging ↵Artem Bolshakov2017-08-171-0/+18
| | | | | | drivers used Signed-off-by: Artem Bolshakov <either.free@gmail.com>
* Replace erroneous networks argument in containers.run with singular1433-run-networksJoffrey F2017-05-121-0/+19
| | | | | | | | network equivalent. Small docfixes Signed-off-by: Joffrey F <joffrey@docker.com>
* Fix volume path passed by run to create_containerBen Firshman2017-02-071-0/+37
| | | | | | | | | | | | Seems like this is pretty much ignored by Docker, so it wasn't causing any visible issues, except when a volume name was used instead of a path. Also, added integration tests. Ref #1380 Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Allow configuring API version for integration test with env varconfig_test_api_versionJoffrey F2017-01-251-22/+22
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add new user-focused APIBen Firshman2016-11-221-0/+204
See #1086 Signed-off-by: Ben Firshman <ben@firshman.co.uk>