compose/pkg/e2e
Sebastiaan van Stijn 74a4ccdd85 fix various linting issues
Got these when running locally on a more recent version of golangci-lint:

    pkg/compose/build_bake.go:187:3: importShadow: shadow of imported from 'github.com/docker/cli/cli/command/image/build' package 'build' (gocritic)
                    build := *service.Build
                    ^
    pkg/compose/build_bake.go:526:19: importShadow: shadow of imported from 'github.com/docker/cli/cli/command/image/build' package 'build' (gocritic)
    func toBakeAttest(build types.BuildConfig) []string {
                      ^
    pkg/compose/create.go:1453:2: importShadow: shadow of imported from 'github.com/docker/docker/api/types/network' package 'network' (gocritic)
            network string,
            ^
    pkg/compose/create.go:1468:2: importShadow: shadow of imported from 'github.com/docker/docker/api/types/network' package 'network' (gocritic)
            network string,
            ^
    pkg/compose/monitor.go:42:17: importShadow: shadow of imported from 'github.com/docker/compose/v2/pkg/api' package 'api' (gocritic)
    func newMonitor(api client.APIClient, project string) *monitor {
                    ^
    cmd/compose/config.go:337:1: File is not properly formatted (gofumpt)
            return
    ^
    pkg/compose/convergence.go:608:1: File is not properly formatted (gofumpt)
                    return
    ^
    pkg/compose/cp.go:335:1: File is not properly formatted (gofumpt)
                    return
    ^
    pkg/e2e/compose_up_test.go:35:10: go-require: c.RunDockerComposeCmd contains assertions that must only be used in the goroutine running the test function (testifylint)
                    res := c.RunDockerComposeCmd(t, "-f", "fixtures/dependencies/deps-completed-successfully.yaml", "--project-name", projectName, "up", "--wait", "-d")
                           ^
    pkg/e2e/healthcheck_test.go:42:10: go-require: c.RunDockerComposeCmd contains assertions that must only be used in the goroutine running the test function (testifylint)
                    res := c.RunDockerComposeCmd(t, "-f", "fixtures/start_interval/compose.yaml", "--project-name", projectName, "up", "--wait", "-d", "test")
                           ^
    10 issues:
    * gocritic: 5
    * gofumpt: 3
    * testifylint: 2

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-10-31 17:44:38 +01:00
..
fixtures add e2e tests 2025-10-29 10:47:18 +01:00
assert.go up: fix various race/deadlock conditions on exit (#10934) 2023-08-31 10:47:14 -04:00
bridge_test.go use fixed version of compose bridge transformer images 2025-10-14 09:21:59 +02:00
build_test.go bake only interpolates ${*} 2025-10-13 10:40:19 +02:00
cancel_test.go chore(e2e): fix flaky test & standalone behavior (#11382) 2024-01-30 10:49:53 -05:00
cascade_test.go chore(e2e): fix flaky cascade failure test 2024-04-24 11:03:27 +02:00
commit_test.go fix: commit tests 2024-11-27 07:39:46 +01:00
compose_environment_test.go empty env variable with no value must be unset in container 2024-07-10 14:23:34 +02:00
compose_exec_test.go be sure everything has been cleanup at the end of each tests 2024-12-04 15:28:16 +01:00
compose_run_build_once_test.go test checking bake internal load build definition 2025-10-30 21:25:32 +01:00
compose_run_test.go stop progress UI during build to prevent interference with buildkit Display 2025-10-29 10:11:30 +01:00
compose_test.go introduce config --lock-image-digests 2025-05-19 13:53:01 +02:00
compose_up_test.go fix various linting issues 2025-10-31 17:44:38 +01:00
config_test.go e2e: add tests 2025-05-06 22:33:52 +02:00
configs_test.go be sure everything has been cleanup at the end of each tests 2024-12-04 15:28:16 +01:00
container_name_test.go check container_name is not in use by another service we will create 2024-04-16 17:26:50 +02:00
cp_test.go align --format flag and UX with docker cli 2022-12-14 22:53:43 +01:00
e2e_config_plugin.go chore(e2e): fix flaky test & standalone behavior (#11382) 2024-01-30 10:49:53 -05:00
e2e_config_standalone.go Use build tags for selecting e2e test mode 2021-12-09 10:52:18 +01:00
env_file_test.go Add e2e test to verify docker compose down works even when env file is missing 2025-08-25 10:03:55 +02:00
exec_test.go prefer application container vs one-off running exec without index 2025-09-07 14:41:34 +02:00
export_test.go fix: lint 2024-10-02 21:15:59 +02:00
framework.go e2e tests in CI 2025-06-30 19:22:35 +02:00
healthcheck_test.go fix various linting issues 2025-10-31 17:44:38 +01:00
hooks_test.go make sure the post_start hooks fails 2025-06-30 12:37:58 +02:00
ipc_test.go e2e: fix subtests and block parallel unsafe tests 2022-06-15 16:27:30 -04:00
logs_test.go format code with gofumpt 2024-12-17 16:50:14 +01:00
main_test.go Use build tags for selecting e2e test mode 2021-12-09 10:52:18 +01:00
model_test.go run docker model configure 2025-06-30 19:22:35 +02:00
networks_test.go end-to-end test 2025-06-02 18:57:07 +02:00
noDeps_test.go resolve service reference into container based on observed state 2023-09-14 15:29:50 +02:00
orphans_test.go be sure everything has been cleanup at the end of each tests 2024-12-04 15:28:16 +01:00
pause_test.go Remove COMPOSE_MENU env from e2e tests 2024-07-01 16:31:12 +01:00
profiles_test.go COMPOSE_PROFILES can be set by .env file 2024-05-30 07:40:01 +02:00
providers_test.go fix provider concurrent environment map accesses 2025-06-30 19:07:10 +02:00
ps_test.go pkg/e2e: fix contains: use assert.Contains (testifylint) 2025-02-10 17:03:36 +01:00
publish_test.go fix OCI compose override support 2025-10-23 12:04:37 +02:00
pull_test.go stop progress UI during build to prevent interference with buildkit Display 2025-10-29 10:11:30 +01:00
recreate_no_deps_test.go up/start/run: don't wait for disabled service 2022-08-17 12:32:10 -05:00
restart_test.go Fix support for depends_on.restart in up and restart commands 2025-03-19 15:29:50 +01:00
scale_test.go remove obsolete containers first on scale down 2024-11-12 09:47:36 +01:00
secrets_test.go Compose can't create a tar with adequate uid:gid ownership 2025-10-20 09:51:58 +02:00
start_stop_test.go project.Services is a map 2023-12-05 18:54:31 +01:00
up_test.go Unquote volume names in creation events 2025-08-29 11:50:42 +02:00
volumes_test.go introduce volume.type=image 2025-04-09 16:59:42 +02:00
wait_test.go test: fix process leak in wait e2e test 2023-07-10 08:42:09 -04:00
watch_test.go add deprecation warning for x-initialSync + e2e test 2025-09-18 11:06:44 +02:00