summaryrefslogtreecommitdiff
path: root/integration-cli/docker_cli_attach_test.go
Commit message (Collapse)AuthorAgeFilesLines
* Assert error in body of function `inspectField*`Zhang Wei2016-01-291-2/+1
| | | | | | | | | 1. Replace raw `docker inspect -f xxx` with `inspectField`, to make code cleaner and more consistent 2. assert the error in function `inspectField*` so we don't need to assert the return value of it every time, this will make inspect easier. Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
* Make test case name consistentZhang Wei2016-01-241-1/+1
| | | | | | | | Replace `Tty` with `TTY` in all test case names so that we can run a bundle of `TTY` related test cases with TESTFLAGS like `-check.f TestExecTTY*` Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
* Windows CI: Deal with failing tests for TP4John Howard2016-01-081-0/+1
| | | | Signed-off-by: John Howard <jhoward@microsoft.com>
* Add show error when attach to a paused containerLei Jitang2015-10-281-0/+10
| | | | Signed-off-by: Lei Jitang <leijitang@huawei.com>
* refactor integration test to use checkersShijiang Wei2015-10-131-36/+11
| | | | Signed-off-by: Shijiang Wei <mountkin@gmail.com>
* Windows: Get Integration CLI runningJohn Howard2015-09-041-0/+3
| | | | Signed-off-by: John Howard <jhoward@microsoft.com>
* Remove/Comment time.Sleep in integration testsVincent Demeester2015-08-181-3/+1
| | | | | | | Remove what seems unnecessary time.Sleep (1 second even) and comment the ones that seemed necessary. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
* Use dockerCmd when possible (#14603)Vincent Demeester2015-07-141-9/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | - integration-cli/docker_cli_attach_test.go - integration-cli/docker_cli_attach_unix_test.go - integration-cli/docker_cli_build_test.go - integration-cli/docker_cli_build_unix_test.go - integration-cli/docker_cli_by_digest_test.go - integration-cli/docker_cli_commit_test.go - integration-cli/docker_cli_config_test.go - integration-cli/docker_cli_cp_test.go - integration-cli/docker_cli_create_test.go - integration-cli/docker_cli_pause_test.go - integration-cli/docker_cli_port_test.go - integration-cli/docker_cli_port_unix_test.go - integration-cli/docker_cli_proxy_test.go - integration-cli/docker_cli_ps_test.go - integration-cli/docker_cli_pull_test.go - integration-cli/docker_cli_push_test.go - docker_api_attach_test.go - docker_api_containers_test.go - docker_api_events_test.go - docker_api_exec_resize_test.go - docker_api_exec_test.go - docker_api_images_test.go - docker_api_info_test.go Signed-off-by: Vincent Demeester <vincent@sbr.pm>
* c.Fatal won't fail and exit test inside a goroutine, errors should be ↵Antonio Murdaca2015-04-291-7/+10
| | | | | | handled outside with a channel Signed-off-by: Antonio Murdaca <me@runcom.ninja>
* trivial: typo cleanupDavid Mackey2015-04-271-2/+2
| | | | Signed-off-by: David Mackey <tdmackey@booleanhaiku.com>
* Use suite for integration-cliAlexander Morozov2015-04-211-39/+34
| | | | | | | It prints test name and duration for each test. Also performs deleteAllContainers after each test. Signed-off-by: Alexander Morozov <lk4d4@docker.com>
* Removed unnecessary error output from dockerCmdbobby abbott2015-04-171-1/+1
| | | | | | | | | Changed method declaration. Fixed all calls to dockerCmd method to reflect the change. resolves #12355 Signed-off-by: bobby abbott <ttobbaybbob@gmail.com>
* MovetAttachDisconnect to integration-cliBrian Goff2015-04-131-0/+49
| | | | Signed-off-by: Brian Goff <cpuguy83@gmail.com>
* Fix vet errors about formatting directivesAlexander Morozov2014-12-121-1/+1
| | | | Signed-off-by: Alexander Morozov <lk4d4@docker.com>
* Forbid client piping to tty enabled containerArnaud Porterie2014-12-091-0/+47
| | | | | | | | | Forbid `docker run -t` with a redirected stdin (such as `echo test | docker run -ti busybox cat`). Forbid `docker exec -t` with a redirected stdin. Forbid `docker attach` with a redirect stdin toward a tty enabled container. Signed-off-by: Arnaud Porterie <arnaud.porterie@docker.com>
* cleanup: remove startCommand function, only used once, andJessica Frazelle2014-12-031-1/+1
| | | | | | unecessary abstraction. Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com> (github: jfrazelle)
* Use prefix naming for attach testsAlexandr Morozov2014-09-191-1/+1
| | | | Signed-off-by: Alexandr Morozov <lk4d4@docker.com>
* Fix multiple attach test.Erik Hollensbe2014-08-221-24/+60
| | | | Docker-DCO-1.1-Signed-off-by: Erik Hollensbe <github@hollensbe.org> (github: erikh)
* Increase time before exit in TestMultipleAttachRestartLK4D42014-06-131-8/+10
| | | | | | Sometimes third attacher attaching to already stopped container. Also I've changed prefix to attach and fixed cleanup on Fatal. Docker-DCO-1.1-Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com> (github: LK4D4)
* Port multiple attach test to cli testsMichael Crosby2014-04-181-0/+51
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)