moby/integration
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
..
build integration: Don't env cleanup before parallel subtests 2023-07-13 13:41:00 +02:00
config integration: use string-literals for easier grep'ing 2023-07-05 12:27:01 +02:00
container integration/container: use subtests for TestAttach 2023-07-13 18:24:14 +02:00
daemon daemon: daemon.prepareMountPoints(): fix panic if mount is not a volume 2023-07-07 15:31:00 +02:00
distribution bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
image integration: disable iptables in parallel tests 2023-07-05 13:49:53 -04:00
internal integration/internal: format code with gofumpt 2023-06-29 00:31:11 +02:00
network integration: Don't env cleanup before parallel subtests 2023-07-13 13:41:00 +02:00
plugin integration: Don't env cleanup before parallel subtests 2023-07-13 13:41:00 +02:00
secret integration: fix empty-lines (revive) 2022-09-28 01:58:50 +02:00
service integration/service: format code with gofumpt 2023-06-29 00:31:11 +02:00
session testutil/environment: remove Execution.OSType field 2023-06-26 11:18:09 +02:00
system integration/system: format code with gofumpt 2023-06-29 00:31:11 +02:00
testdata/https Update test certificates 2021-05-18 09:43:21 +02:00
volume integration: Don't env cleanup before parallel subtests 2023-07-13 13:41:00 +02:00
doc.go Add canonical import comment 2018-02-05 16:51:57 -05:00