summaryrefslogtreecommitdiff
path: root/tests/integration/api_container_test.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix CreateContainerTest.test_invalid_log_driver_raises_exceptionSebastiaan van Stijn2020-07-171-1/+1
| | | | | | | | | | | | | | This test was updated in 7d92fbdee1b8621f54faa595ba53d7ef78ef1acc, but omitted the "error" prefix in the message, causing the test to fail; _________ CreateContainerTest.test_invalid_log_driver_raises_exception _________ tests/integration/api_container_test.py:293: in test_invalid_log_driver_raises_exception assert excinfo.value.explanation in expected_msgs E AssertionError: assert 'error looking up logging plugin asdf: plugin "asdf" not found' in ["logger: no log driver named 'asdf' is registered", 'looking up logging plugin asdf: plugin "asdf" not found'] E + where 'error looking up logging plugin asdf: plugin "asdf" not found' = APIError(HTTPError('400 Client Error: Bad Request for url: http+docker://localhost/v1.39/containers/create')).explanation E + where APIError(HTTPError('400 Client Error: Bad Request for url: http+docker://localhost/v1.39/containers/create')) = <ExceptionInfo APIError tblen=6>.value Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* Fix tests to support both log plugin feedbacksWilson Júnior2020-04-211-3/+6
| | | | | Signed-off-by: Wilson Júnior <wilsonpjunior@gmail.com> Docker-DCO-1.1-Signed-off-by: Wilson Júnior <wilsonpjunior@gmail.com> (github: wpjunior)
* xfail "docker top" tests, and adjust for alpine imageSebastiaan van Stijn2020-02-171-8/+7
| | | | Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* Update alpine version to 3.10, and rename BUSYBOX variableSebastiaan van Stijn2019-08-101-95/+95
| | | | Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* Xfail test_attach_stream_and_cancel on TLSUlysses Souza2019-05-181-0/+3
| | | | | | This test is quite flaky on ssl integration test Signed-off-by: Ulysses Souza <ulysses.souza@docker.com>
* Update some test dependencies / default values with newer versionsJoffrey F2019-05-011-15/+13
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Improve low_timeout test resilienceJoffrey F2019-05-011-4/+4
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Increase timeout on test with long sleepsfix_socket_detach_helperJoffrey F2019-05-011-1/+1
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Remove init_path from createSebastiaan van Stijn2019-04-101-13/+0
| | | | | | | | | | | | This option was never functional, and was not intended to be added to the "container create" API, so let's remove it, because it has been removed in Docker 17.05, and was broken in versions before that; see - https://github.com/moby/moby/issues/32355 --init-path does not seem to work - https://github.com/moby/moby/pull/32470 remove --init-path from client Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* Add 'sleep 2' to avoid race condition on attachUlysses Souza2019-04-041-5/+2
| | | | Signed-off-by: Ulysses Souza <ulysses.souza@docker.com>
* Xfail test_attach_stream_and_cancel on TLSUlysses Souza2019-03-261-1/+3
| | | | | | This test is quite flaky on ssl integration test Signed-off-by: Ulysses Souza <ulysses.souza@docker.com>
* Test port lookup with protocolsHannes Ljungberg2019-03-181-4/+12
| | | | Signed-off-by: Hannes Ljungberg <hannes@5monkeys.se>
* implement stream demultiplexing for exec commandsCorentin Henry2018-11-271-2/+3
| | | | | | fixes https://github.com/docker/docker-py/issues/1952 Signed-off-by: Corentin Henry <corentinhenry@gmail.com>
* Clear error for cancellable streams over SSHJoffrey F2018-11-011-1/+4
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Update tests for ssh protocol compatibilityJoffrey F2018-11-011-0/+1
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add support for `uts_mode` parameter in `Client.create_host_config`.Marco Trillo2018-06-291-0/+10
| | | | | | | | | | 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>
* Fix several integration tests on WindowsJoffrey F2018-05-251-15/+4
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* 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-251-1/+1
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* stop(), restart(): Adjust request timeout.Matthieu Nottale2018-04-251-0/+11
| | | | Signed-off-by: Matthieu Nottale <matthieu.nottale@docker.com>
* Remove redundant single-socket select callJoffrey F2018-03-201-11/+2
| | | | | | Clean up + use pytest-timeout Signed-off-by: Joffrey F <joffrey@docker.com>
* Allow cancelling the streams from other threadsViktor Adam2018-03-201-0/+48
| | | | Signed-off-by: Viktor Adam <rycus86@gmail.com>
* Add support for device_cgroup_rules parameter in host configc5622_device_cgroup_rulesJoffrey F2018-02-131-0/+15
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Update wait to always return a dictwait_returnJoffrey F2018-01-311-17/+19
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Refuse API version < 1.21 ; Remove associated code pathscleanup_deprecatedJoffrey F2018-01-311-33/+13
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Improve separation between auth_configs and general_configsimprove_authconfig_genconfig_separationJoffrey F2018-01-301-1/+1
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Update detach tests to work with AF_INET as wellmtsmfm-masterJoffrey F2018-01-301-16/+15
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Use config.json for detachKeysFumiaki MATSUSHIMA2018-01-301-2/+56
| | | | Signed-off-by: Fumiaki Matsushima <mtsmfm@gmail.com>
* Use pytest assertspytest-assertsJoffrey F2018-01-301-221/+218
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Bump default API version to 1.35Joffrey F2018-01-261-0/+33
| | | | | | | | | 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 integration test for CPU realtime optionsJoffrey F2017-12-131-0/+14
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add support for mounts in HostConfigJoffrey F2017-11-071-0/+65
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Always send attach request as streamingJoffrey F2017-08-221-4/+12
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Make sure data is written in prune test so space can be reclaimedmoby33735Joffrey F2017-06-201-1/+3
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Fix test cases for ``runtime`` configMadhuri Kumari2017-06-071-3/+3
| | | | Signed-off-by: Madhuri Kumari <madhuri.kumari@intel.com>
* Add support for ``runtime`` in container create and run APIMadhuri Kumari2017-06-011-0/+9
|
* init_path removed in Engine 17.05init_path_removedJoffrey F2017-05-091-0/+1
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Move LinksTest to appropriate fileJoffrey F2017-03-091-0/+42
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add init_path parameter to container HostConfigTomasz Madycki2017-03-011-0/+12
| | | | Signed-off-by: Tomasz Madycki <tomasz.madycki@gmail.com>
* Add init parameter to container HostConfigTomasz Madycki2017-03-011-0/+12
| | | | Signed-off-by: Tomasz Madycki <tomasz.madycki@gmail.com>
* Update assert in test_create_with_restart_policyBoaz Shuster2017-03-011-1/+1
| | | | | | | | | | | | In https://github.com/docker/docker/pull/30870 a new error message is displayed if the container is restarting. To make "test_create_with_restart_policy" pass against the above change, the test checks that the error message contains "You cannot remove " instead of "You cannot remove a running container" Signed-off-by: Boaz Shuster <ripcurld.github@gmail.com>
* Add xfail mark to storageopt testJoffrey F2017-02-151-4/+5
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Merge pull request #1459 from shin-/1300-storageoptsJoffrey F2017-02-151-0/+16
|\ | | | | Add support for storage_opt in host_config
| * Add support for storage_opt in host_configJoffrey F2017-02-151-0/+16
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | Add prune_containers methodJoffrey F2017-01-301-0/+14
|/ | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add stop_timeout to create_containerJoffrey F2017-01-271-0/+9
| | | | | | Fix requires_api_version test decorator Signed-off-by: Joffrey F <joffrey@docker.com>
* Add support for auto_remove in HostConfigautoremove_supportJoffrey F2017-01-251-0/+12
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Move config type creation from docker.utils functions to classes inconfig_typesJoffrey F2016-12-011-4/+4
| | | | | | docker.types Signed-off-by: Joffrey F <joffrey@docker.com>
* Re-enable pid_mode checks for API < 1.24stepanstipl-allow_custom_pid_modeJoffrey F2016-11-281-4/+0
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Allow custom PID mode for the containerStepan Stipl2016-11-281-3/+0
| | | | | | | Docker added support for sharing PID namespaces with other containers since version 1.12 (see https://github.com/docker/docker/pull/22481). Signed-off-by: Stepan Stipl <stepan@stipl.net>