moby/integration/container
Sebastiaan van Stijn 79c72390b9
integration/container: use subtests for TestAttach
- Combine TestAttachWithTTY and TestAttachWithoutTTy to a single test using sub-tests
- Set up and tear-down the test-environment once
- Remove redundant client.ContainerRemove, as it's taken care of by testEnv.Clean()
- Run both tests in parallel

      make TEST_FILTER=TestAttach DOCKER_GRAPHDRIVER=overlay2 TESTDEBUG=1 test-integration
      Loaded image: busybox:latest
      Loaded image: busybox:glibc
      Loaded image: debian:bullseye-slim
      Loaded image: hello-world:latest
      Loaded image: arm32v7/hello-world:latest
      INFO: Testing against a local daemon
      === RUN   TestAttach
      === RUN   TestAttach/without_TTY
      === PAUSE TestAttach/without_TTY
      === RUN   TestAttach/with_TTY
      === PAUSE TestAttach/with_TTY
      === CONT  TestAttach/without_TTY
      === CONT  TestAttach/with_TTY
      --- PASS: TestAttach (0.00s)
          --- PASS: TestAttach/without_TTY (0.03s)
          --- PASS: TestAttach/with_TTY (0.03s)
      PASS

      DONE 3 tests in 1.347s

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-07-13 18:24:14 +02:00
..
testdata/cdi Add support for CDI devices to docker daemon under linux 2023-05-16 17:07:57 +02:00
attach_test.go integration/container: use subtests for TestAttach 2023-07-13 18:24:14 +02:00
cdi_test.go testutil/environment: remove Execution.OSType field 2023-06-26 11:18:09 +02:00
checkpoint_test.go integration(-cli): remove some redundant formatting 2022-10-08 17:41:39 +02:00
container_test.go integration: Don't env cleanup before parallel subtests 2023-07-13 13:41:00 +02:00
copy_test.go integration/container: format code with gofumpt 2023-06-29 00:31:10 +02:00
create_test.go integration: Don't env cleanup before parallel subtests 2023-07-13 13:41:00 +02:00
daemon_linux_test.go integration: disable iptables in parallel tests 2023-07-05 13:49:53 -04:00
daemon_test.go integration: disable iptables in parallel tests 2023-07-05 13:49:53 -04:00
devices_windows_test.go integration: Don't env cleanup before parallel subtests 2023-07-13 13:41:00 +02:00
diff_test.go testutil/environment: remove Execution.OSType field 2023-06-26 11:18:09 +02:00
exec_linux_test.go container/exec: Support ConsoleSize 2022-06-24 11:54:25 +02:00
exec_test.go testutil/environment: remove Execution.OSType field 2023-06-26 11:18:09 +02:00
export_test.go Using test names instead of hardcoded ones in integration/container directory 2020-05-18 16:37:04 +01:00
health_test.go Add health start interval 2023-07-05 23:44:17 +00:00
inspect_test.go daemon: add annotations to container HostConfig 2023-02-23 18:59:00 -05:00
ipcmode_linux_test.go rootless: support --ipc=host 2023-01-21 01:00:27 +09:00
kill_test.go testutil/environment: remove Execution.OSType field 2023-06-26 11:18:09 +02:00
links_linux_test.go integration: inline filters in tests 2023-04-25 15:15:50 +02:00
logs_test.go testutil/environment: remove Execution.OSType field 2023-06-26 11:18:09 +02:00
main_test.go testutil: make testing packages public 2019-09-11 07:47:23 -05:00
mounts_linux_test.go integration: Don't env cleanup before parallel subtests 2023-07-13 13:41:00 +02:00
nat_test.go testutil/environment: remove Execution.OSType field 2023-06-26 11:18:09 +02:00
pause_test.go use consistent alias for containerd's errdefs package 2023-04-08 19:30:33 +02:00
pidmode_linux_test.go rootless: support --pid=host 2021-02-01 14:55:18 +09:00
ps_test.go integration: inline filters in tests 2023-04-25 15:15:50 +02:00
remove_test.go integration/container: format code with gofumpt 2023-06-29 00:31:10 +02:00
rename_test.go testutil/environment: remove Execution.OSType field 2023-06-26 11:18:09 +02:00
resize_test.go Prepare tests for Windows containerd support 2021-04-22 10:50:00 +03:00
restart_test.go integration/container: format code with gofumpt 2023-06-29 00:31:10 +02:00
run_cgroupns_linux_test.go integration: port TestRunModePIDHost from CLI test to API test 2021-02-01 14:54:07 +09:00
run_linux_test.go integration: don't use pkg/system MkNod/mkDev 2023-07-03 18:48:32 +02:00
stats_test.go Merge pull request #40478 from cpuguy83/dont-prime-the-stats 2020-04-16 20:57:06 +02:00
stop_linux_test.go integration: Don't env cleanup before parallel subtests 2023-07-13 13:41:00 +02:00
stop_test.go integration: Extract StopContainerWindowsPollTimeout const 2023-03-06 16:21:55 +01:00
stop_windows_test.go integration: Don't env cleanup before parallel subtests 2023-07-13 13:41:00 +02:00
update_linux_test.go test-integration: support cgroup2 2020-06-22 14:17:45 +09:00
update_test.go testutil/environment: remove Execution.OSType field 2023-06-26 11:18:09 +02:00
wait_test.go integration: Don't env cleanup before parallel subtests 2023-07-13 13:41:00 +02:00